[Mesa-dev] [PATCH] squash! i965/fs: Merge CMP and SEL into CSEL on Gen8+

Ian Romanick idr at freedesktop.org
Thu Mar 8 00:53:16 UTC 2018


From: Ian Romanick <ian.d.romanick at intel.com>

v4: Report progress.  This actually helps one more shader!
---
 src/intel/compiler/brw_fs.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index 7b51b1f..4937361 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -2900,8 +2900,10 @@ fs_visitor::opt_peephole_csel()
                csel_inst->src[1].abs = true;
             }
 
-            if (csel_inst != NULL)
+            if (csel_inst != NULL) {
+               progress = true;
                inst->remove(block);
+            }
 
             break;
          }
-- 
2.9.5



More information about the mesa-dev mailing list