Mesa (master): i965/fs: Remove conditional mod when optimizing a SEL into a MOV.

Matt Turner mattst88 at kemper.freedesktop.org
Wed Feb 11 18:26:57 UTC 2015


Module: Mesa
Branch: master
Commit: 09d6ea9ae3c487be20fb3157368003d30856d3bc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=09d6ea9ae3c487be20fb3157368003d30856d3bc

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Feb 10 21:36:26 2015 -0800

i965/fs: Remove conditional mod when optimizing a SEL into a MOV.

Missed in commit ca675b73, but got right in the companion commit 3c28b2c0.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index f149ab5..c7c6acc 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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;




More information about the mesa-commit mailing list