diff --git a/src/nouveau/compiler/nak_nir.c b/src/nouveau/compiler/nak_nir.c index cbc236b45ef..977c999670b 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -172,6 +172,7 @@ optimize_nir(nir_shader *nir, const struct nak_compiler *nak, bool allow_copies) OPT(nir, nir_opt_gcm, false); OPT(nir, nir_opt_undef); } while (progress); + OPT(nir, nir_lower_undef_to_zero); OPT(nir, nir_remove_dead_variables, nir_var_function_temp, NULL); }