From: Eric Anholt Date: Tue, 11 Aug 2009 23:40:20 +0000 (-0700) Subject: i965: Drop code for emitting OPCODE_SUB, since brw_wm_fp.c makes it an ADD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4de8b8902f66843a99f5fb703658fecd5a117133;p=mesa.git i965: Drop code for emitting OPCODE_SUB, since brw_wm_fp.c makes it an ADD. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index 5f49279f0e6..3a68e05173c 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -1208,24 +1208,6 @@ static void emit_arl(struct brw_wm_compile *c, brw_set_saturate(p, 0); } -static void emit_sub(struct brw_wm_compile *c, - const struct prog_instruction *inst) -{ - struct brw_compile *p = &c->func; - struct brw_reg src0, src1, dst; - GLuint mask = inst->DstReg.WriteMask; - int i; - brw_set_saturate(p, (inst->SaturateMode != SATURATE_OFF) ? 1 : 0); - for (i = 0 ; i < 4; i++) { - if (mask & (1<