[Mesa-dev] [PATCH 069/133] i965/fs_nir: Turn on the peephole select optimization

Jason Ekstrand jason at jlekstrand.net
Mon Dec 15 22:05:19 PST 2014


---
 src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index d7a2d0b..b2c5863 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -61,6 +61,8 @@ fs_visitor::emit_nir_code()
       nir_validate_shader(nir);
       nir_opt_dce(nir);
       nir_validate_shader(nir);
+      nir_opt_peephole_select(nir);
+      nir_validate_shader(nir);
       nir_print_shader(nir, stderr);
 
       nir_convert_from_ssa(nir);
-- 
2.2.0



More information about the mesa-dev mailing list