nir: Add bool return value to nir_fixup_deref_modes.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33609>
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 2f42a10..43b527b 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -4818,7 +4818,7 @@
bool nir_opt_memcpy(nir_shader *shader);
bool nir_lower_memcpy(nir_shader *shader);
-void nir_fixup_deref_modes(nir_shader *shader);
+bool nir_fixup_deref_modes(nir_shader *shader);
void nir_fixup_deref_types(nir_shader *shader);
bool nir_lower_global_vars_to_local(nir_shader *shader);
diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c
index e4c13f4..3ac7d0f 100644
--- a/src/compiler/nir/nir_deref.c
+++ b/src/compiler/nir/nir_deref.c
@@ -448,14 +448,14 @@
return true;
}
-void
+bool
nir_fixup_deref_modes(nir_shader *shader)
{
- nir_shader_instructions_pass(shader, nir_fixup_deref_modes_instr,
- nir_metadata_control_flow |
- nir_metadata_live_defs |
- nir_metadata_instr_index,
- NULL);
+ return nir_shader_instructions_pass(shader, nir_fixup_deref_modes_instr,
+ nir_metadata_control_flow |
+ nir_metadata_live_defs |
+ nir_metadata_instr_index,
+ NULL);
}
static bool