i965/fs: Remove conditional mod when optimizing a SEL into a MOV.
authorMatt Turner <mattst88@gmail.com>
Wed, 11 Feb 2015 05:36:26 +0000 (21:36 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 11 Feb 2015 18:26:49 +0000 (10:26 -0800)
Missed in commit ca675b73, but got right in the companion commit 3c28b2c0.

src/mesa/drivers/dri/i965/brw_fs.cpp

index f149ab5..c7c6acc 100644 (file)
@@ -2393,6 +2393,7 @@ fs_visitor::opt_algebraic()
                   if (inst->src[1].fixed_hw_reg.dw1.f >= 1.0f) {
                      inst->opcode = BRW_OPCODE_MOV;
                      inst->src[1] = reg_undef;
+                     inst->conditional_mod = BRW_CONDITIONAL_NONE;
                      progress = true;
                   }
                   break;