nir: Take a mode in remove_unused_io_vars
[mesa.git] / src / compiler / nir / nir.h
index 71143ffb0fcc29befa4d96f022fe017f87426ecc..02d0a6000dae0807e584af69c27e88c9ad848fcc 100644 (file)
@@ -3941,7 +3941,7 @@ void nir_assign_var_locations(struct exec_list *var_list, unsigned *size,
 
 /* Some helpers to do very simple linking */
 bool nir_remove_unused_varyings(nir_shader *producer, nir_shader *consumer);
-bool nir_remove_unused_io_vars(nir_shader *shader, struct exec_list *var_list,
+bool nir_remove_unused_io_vars(nir_shader *shader, nir_variable_mode mode,
                                uint64_t *used_by_other_stage,
                                uint64_t *used_by_other_stage_patches);
 void nir_compact_varyings(nir_shader *producer, nir_shader *consumer,