nir/radv: remove restrictions on opt_if_loop_last_continue()
[mesa.git] / src / gallium / drivers / radeonsi / si_shader_nir.c
index 5ac18e2ebc81fce020cca530f7d9e3d7b7b061b2..938b0efcb7679aa28ec4ede1b54a539d9a9c58d8 100644 (file)
@@ -880,7 +880,7 @@ si_lower_nir(struct si_shader_selector* sel)
                        NIR_PASS(progress, sel->nir, nir_copy_prop);
                        NIR_PASS(progress, sel->nir, nir_opt_dce);
                }
-               NIR_PASS(progress, sel->nir, nir_opt_if);
+               NIR_PASS(progress, sel->nir, nir_opt_if, true);
                NIR_PASS(progress, sel->nir, nir_opt_dead_cf);
                NIR_PASS(progress, sel->nir, nir_opt_cse);
                NIR_PASS(progress, sel->nir, nir_opt_peephole_select, 8, true, true);