From fcae4b469f25831641355b01821f9909d3bcc4a5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 10 Jan 2024 10:19:00 -0400 Subject: [PATCH] nir/lower_io_arrays_to_elements: return prog Signed-off-by: Alyssa Rosenzweig Reviewed-by: Konstantin Seurer Part-of: --- src/compiler/nir/nir.h | 2 +- src/compiler/nir/nir_lower_io_arrays_to_elements.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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