From ec38758e8612aa8f2da4b6455d7bfc51d42a158b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 29 Oct 2022 17:28:43 -0400 Subject: [PATCH] nir: return progress from nir_lower_io_to_scalar MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit oversight? Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Faith Ekstrand Reviewed-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/compiler/nir/nir.h | 2 +- src/compiler/nir/nir_lower_io_to_scalar.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 7bf23df..4d51659 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -5070,7 +5070,7 @@ 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 outputs_only); -void nir_lower_io_to_scalar(nir_shader *shader, nir_variable_mode mask); +bool nir_lower_io_to_scalar(nir_shader *shader, nir_variable_mode mask); bool nir_lower_io_to_scalar_early(nir_shader *shader, nir_variable_mode mask); bool nir_lower_io_to_vector(nir_shader *shader, nir_variable_mode mask); bool nir_vectorize_tess_levels(nir_shader *shader); diff --git a/src/compiler/nir/nir_lower_io_to_scalar.c b/src/compiler/nir/nir_lower_io_to_scalar.c index 6e14b3d..6b15792 100644 --- a/src/compiler/nir/nir_lower_io_to_scalar.c +++ b/src/compiler/nir/nir_lower_io_to_scalar.c @@ -268,14 +268,14 @@ nir_lower_io_to_scalar_instr(nir_builder *b, nir_instr *instr, void *data) return false; } -void +bool nir_lower_io_to_scalar(nir_shader *shader, nir_variable_mode mask) { - nir_shader_instructions_pass(shader, - nir_lower_io_to_scalar_instr, - nir_metadata_block_index | - nir_metadata_dominance, - &mask); + return nir_shader_instructions_pass(shader, + nir_lower_io_to_scalar_instr, + nir_metadata_block_index | + nir_metadata_dominance, + &mask); } static nir_variable ** -- 2.7.4