nouveau/nir: Return progress for nv_nir_move_stores_to_end(..)

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35544>
This commit is contained in:
Christian Gmeiner 2025-06-16 12:13:12 +02:00 committed by Marge Bot
parent 4dad9d443b
commit 7e8f4df4ff

View file

@ -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