diff --git a/src/nouveau/compiler/nak_nir.c b/src/nouveau/compiler/nak_nir.c index 6ff52683db3..88aed928b54 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -164,6 +164,7 @@ optimize_nir(nir_shader *nir, const struct nak_compiler *nak, bool allow_copies) OPT(nir, nir_opt_dce); } OPT(nir, nir_opt_if, nir_opt_if_optimize_phi_true_false); + OPT(nir, nir_opt_phi_to_bool); if (nir->options->max_unroll_iterations != 0) { OPT(nir, nir_opt_loop_unroll); }