nir/radv: remove restrictions on opt_if_loop_last_continue()
[mesa.git] / src / mesa / state_tracker / st_glsl_to_nir.cpp
index 9a4e030413bf93a0841ebcadb48f7caab6f64c2e..fb10869c9f968f5660f267f9f0adf030fb7698d3 100644 (file)
@@ -324,7 +324,7 @@ st_nir_opts(nir_shader *nir, bool scalar)
          NIR_PASS(progress, nir, nir_copy_prop);
          NIR_PASS(progress, nir, nir_opt_dce);
       }
-      NIR_PASS(progress, nir, nir_opt_if);
+      NIR_PASS(progress, nir, nir_opt_if, false);
       NIR_PASS(progress, nir, nir_opt_dead_cf);
       NIR_PASS(progress, nir, nir_opt_cse);
       NIR_PASS(progress, nir, nir_opt_peephole_select, 8, true, true);