diff options
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index a60b1c8928b..c6f8f6c9dbf 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4468,8 +4468,15 @@ bool nir_lower_vars_to_ssa(nir_shader *shader); bool nir_remove_dead_derefs(nir_shader *shader); bool nir_remove_dead_derefs_impl(nir_function_impl *impl); + +typedef struct nir_remove_dead_variables_options { + bool (*can_remove_var)(nir_variable *var, void *data); + void *can_remove_var_data; +} nir_remove_dead_variables_options; + bool nir_remove_dead_variables(nir_shader *shader, nir_variable_mode modes, - bool (*can_remove_var)(nir_variable *var)); + const nir_remove_dead_variables_options *options); + bool nir_lower_variable_initializers(nir_shader *shader, nir_variable_mode modes); |