diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 474449818c7..d01119095cc 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -619,12 +619,12 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_algebraic_late); - OPT(nir_lower_locals_to_regs); - OPT_V(nir_lower_to_source_mods); OPT(nir_copy_prop); OPT(nir_opt_dce); + OPT(nir_lower_locals_to_regs); + if (unlikely(debug_enabled)) { /* Re-index SSA defs so we print more sensible numbers. */ nir_foreach_function(function, nir) {