From: Eric Anholt Date: Tue, 11 Aug 2009 23:47:15 +0000 (-0700) Subject: i965: Use a normal alu1 emit for OPCODE_TRUNC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90629704ef51de4018055ee4b8ff68531f6712ae;p=mesa.git i965: Use a normal alu1 emit for OPCODE_TRUNC. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c index 5e41a3f5711..215515d10bd 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_emit.c +++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c @@ -422,20 +422,6 @@ 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<func; - GLuint mask = inst->DstReg.WriteMask; - brw_set_saturate(p, inst->SaturateMode != SATURATE_OFF); - for (i = 0; i < 4; i++) { - if (mask & (1<