From: Marek Olšák Date: Sat, 29 Oct 2022 21:28:43 +0000 (-0400) Subject: nir: return progress from nir_lower_io_to_scalar X-Git-Tag: upstream/23.3.3~12271 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec38758e8612aa8f2da4b6455d7bfc51d42a158b;p=platform%2Fupstream%2Fmesa.git nir: return progress from nir_lower_io_to_scalar oversight? Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Faith Ekstrand Reviewed-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- 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 **