freedreno/ir3/nir: lower if/else
[mesa.git] / src / gallium / drivers / freedreno / ir3 / ir3_compiler_nir.c
index 13ae7c2cac46eeb59851fa8c457bec8251b96933..0b42cd70381c7cfcd6adc5607d29a27dd1e7971d 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "ir3_compiler.h"
 #include "ir3_shader.h"
+#include "ir3_nir.h"
 
 #include "instr-a3xx.h"
 #include "ir3.h"
@@ -149,7 +150,7 @@ static struct nir_shader *to_nir(const struct tgsi_token *tokens)
                progress |= nir_copy_prop(s);
                progress |= nir_opt_dce(s);
                progress |= nir_opt_cse(s);
-               progress |= nir_opt_peephole_select(s);
+               progress |= ir3_nir_lower_if_else(s);
                progress |= nir_opt_algebraic(s);
                progress |= nir_opt_constant_folding(s);