From 7222bb397d04695f3a85c05882f9927457e940b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Mon, 17 Feb 2025 23:25:03 +0100 Subject: [PATCH] nir: Add bool return value to nir_fixup_deref_types. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir.h | 2 +- src/compiler/nir/nir_deref.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 43b527be5c9..c04bf50e057 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4819,7 +4819,7 @@ bool nir_opt_memcpy(nir_shader *shader); bool nir_lower_memcpy(nir_shader *shader); bool nir_fixup_deref_modes(nir_shader *shader); -void nir_fixup_deref_types(nir_shader *shader); +bool nir_fixup_deref_types(nir_shader *shader); bool nir_lower_global_vars_to_local(nir_shader *shader); void nir_lower_constant_to_temp(nir_shader *shader); diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 3ac7d0f3eda..1adc2e99ff3 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -492,14 +492,14 @@ nir_fixup_deref_types_instr(UNUSED struct nir_builder *b, nir_instr *instr, UNUS } /* Update deref types when array sizes have changed. */ -void +bool nir_fixup_deref_types(nir_shader *shader) { - nir_shader_instructions_pass(shader, nir_fixup_deref_types_instr, - nir_metadata_control_flow | - nir_metadata_live_defs | - nir_metadata_instr_index, - NULL); + return nir_shader_instructions_pass(shader, nir_fixup_deref_types_instr, + nir_metadata_control_flow | + nir_metadata_live_defs | + nir_metadata_instr_index, + NULL); } static bool