diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 31d26e372b8..86df5f52f3d 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -5583,7 +5583,7 @@ bool nir_lower_load_const_to_scalar(nir_shader *shader); bool nir_lower_read_invocation_to_scalar(nir_shader *shader); bool nir_lower_phis_to_scalar(nir_shader *shader, bool lower_all); void nir_lower_io_arrays_to_elements(nir_shader *producer, nir_shader *consumer); -void nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader, +bool nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader, bool outputs_only); bool nir_lower_io_to_scalar(nir_shader *shader, nir_variable_mode mask, nir_instr_filter_cb filter, void *filter_data); bool nir_lower_io_to_scalar_early(nir_shader *shader, nir_variable_mode mask); diff --git a/src/compiler/nir/nir_lower_io_arrays_to_elements.c b/src/compiler/nir/nir_lower_io_arrays_to_elements.c index 8c8780adc85..ff9e7b3bdac 100644 --- a/src/compiler/nir/nir_lower_io_arrays_to_elements.c +++ b/src/compiler/nir/nir_lower_io_arrays_to_elements.c @@ -350,7 +350,7 @@ lower_io_arrays_to_elements(nir_shader *shader, nir_variable_mode mask, } } -void +bool nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader, bool outputs_only) { @@ -387,6 +387,7 @@ nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader, _mesa_hash_table_destroy(split_outputs, NULL); nir_remove_dead_derefs(shader); + return true; } void