From 0ab8e2622e932593f39e5a634808567322bd669b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 28 May 2009 10:34:08 -0700 Subject: i965: Support OPCODE_TRUNC in the brw_wm_fp.c code. This gets two more glean glsl1 tests using the non-GLSL path. --- src/mesa/drivers/dri/i965/brw_wm_emit.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_wm_emit.c') diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c index 72fc21d2eb..14ab9042de 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_emit.c +++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c @@ -353,6 +353,19 @@ static void emit_mad( struct brw_compile *p, } } +static void emit_trunc( struct brw_compile *p, + const struct brw_reg *dst, + GLuint mask, + const struct brw_reg *arg0) +{ + GLuint i; + + for (i = 0; i < 4; i++) { + if (mask & (1<