nir: add callback to nir_remove_dead_variables()
[mesa.git] / src / gallium / drivers / vc4 / vc4_program.c
index 66a095e12161c15c9ed3fd954b417b92d0d2c2e3..2d16c479313dd92b7e95dcf900e80f9d99c0ee9a 100644 (file)
@@ -2482,7 +2482,7 @@ vc4_shader_state_create(struct pipe_context *pctx,
 
         vc4_optimize_nir(s);
 
-        NIR_PASS_V(s, nir_remove_dead_variables, nir_var_function_temp);
+        NIR_PASS_V(s, nir_remove_dead_variables, nir_var_function_temp, NULL);
 
         /* Garbage collect dead instructions */
         nir_sweep(s);