nir: add callback to nir_remove_dead_variables()
[mesa.git] / src / freedreno / ir3 / ir3_nir.c
index 48dc9a340abf10332552cd719c62de048e335543..148186050bfcf7530d3203fa3705e289cf6fc853 100644 (file)
@@ -352,7 +352,7 @@ ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
                OPT_V(s, nir_opt_cse);
        }
 
-       OPT_V(s, nir_remove_dead_variables, nir_var_function_temp);
+       OPT_V(s, nir_remove_dead_variables, nir_var_function_temp, NULL);
 
        OPT_V(s, nir_opt_sink, nir_move_const_undef);