i965/fs_nir: Turn on the peephole select optimization
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 8 Nov 2014 00:07:22 +0000 (16:07 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:01 +0000 (07:19 -0800)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 05fe396629214a8395fd37890865982e8171a6e3..22c8c0a39f574f022bf405c5a74e14ad5ba5d4d5 100644 (file)
@@ -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);