nir: add callback to nir_remove_dead_variables()
[mesa.git] / src / gallium / drivers / r600 / sfn / sfn_nir.cpp
index 3f8badf6fc330e58ce5aa5ab502e8b2b5b156dfd..571498a8f4b976790f00f4bed23284e754cefe3d 100644 (file)
@@ -635,8 +635,8 @@ int r600_shader_from_nir(struct r600_context *rctx,
    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,