From 7e8f4df4ff8dc0f6a6abba428390d31d033554a4 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Mon, 16 Jun 2025 12:13:12 +0200 Subject: [PATCH] nouveau/nir: Return progress for nv_nir_move_stores_to_end(..) Signed-off-by: Christian Gmeiner Reviewed-by: Karol Herbst Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index 551f3dae6e8..f6908700d46 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -3275,12 +3275,13 @@ Converter::visit(nir_tex_instr *insn) * shader, so we need all the store_outputs to appear at the end of the shader * with no other instructions that might generate a temp value in between them. */ -static void +static bool nv_nir_move_stores_to_end(nir_shader *s) { nir_function_impl *impl = nir_shader_get_entrypoint(s); nir_block *block = nir_impl_last_block(impl); nir_instr *first_store = NULL; + bool progress = false; nir_foreach_instr_safe(instr, block) { if (instr == first_store) @@ -3294,9 +3295,11 @@ nv_nir_move_stores_to_end(nir_shader *s) if (!first_store) first_store = instr; + + progress = true; } } - nir_progress(true, impl, nir_metadata_control_flow); + return nir_progress(progress, impl, nir_metadata_control_flow); } unsigned