if (optimize)
while(optimize_once(sel->nir));
- NIR_PASS_V(sel->nir, nir_remove_dead_variables, nir_var_shader_in);
- NIR_PASS_V(sel->nir, nir_remove_dead_variables, nir_var_shader_out);
+ NIR_PASS_V(sel->nir, nir_remove_dead_variables, nir_var_shader_in, NULL);
+ NIR_PASS_V(sel->nir, nir_remove_dead_variables, nir_var_shader_out, NULL);
NIR_PASS_V(sel->nir, nir_lower_vars_to_scratch,