From: Eric Anholt Date: Wed, 12 Aug 2009 01:13:57 +0000 (-0700) Subject: i965: Drop GLSL ABS code, which is translated away in brw_wm_fp. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=863ae3a527947e43136e20a784455738d3221bf3;p=mesa.git i965: Drop GLSL ABS code, which is translated away in brw_wm_fp. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index 3a68e05173c..f480609b532 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -640,23 +640,6 @@ static void invoke_subroutine( struct brw_wm_compile *c, } } -static void emit_abs( struct brw_wm_compile *c, - const struct prog_instruction *inst) -{ - int i; - struct brw_compile *p = &c->func; - brw_set_saturate(p, inst->SaturateMode != SATURATE_OFF); - for (i = 0; i < 4; i++) { - if (inst->DstReg.WriteMask & (1<