r600/sfn: Move exports emission to helper

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945>
This commit is contained in:
Gert Wollny 2026-04-26 22:18:03 +02:00 committed by Marge Bot
parent bdcc1afd80
commit 6d681cdb98

View file

@ -167,6 +167,8 @@ private:
SchedulerState& current_scheduler,
SchedulerState& last_scheduler);
void maybe_switch_to_waitack_scheduler(SchedulerState& current_scheduler);
void emit_pending_exports(CollectInstructions& cir,
Shader::ShaderBlocks& out_blocks);
bool collect_ready(CollectInstructions& available);
@ -391,9 +393,7 @@ BlockScheduler::schedule_block(Block& in_block, Shader::ShaderBlocks& out_blocks
maybe_switch_to_waitack_scheduler(current_scheduler);
}
/* Emit exports always at end of a block */
while (collect_ready_type(exports_ready, cir.exports))
schedule_exports(out_blocks, exports_ready);
emit_pending_exports(cir, out_blocks);
ASSERTED bool fail = false;
@ -601,6 +601,15 @@ BlockScheduler::maybe_switch_to_waitack_scheduler(SchedulerState& current_schedu
}
}
void
BlockScheduler::emit_pending_exports(CollectInstructions& cir,
Shader::ShaderBlocks& out_blocks)
{
/* Emit exports always at end of a block */
while (collect_ready_type(exports_ready, cir.exports))
schedule_exports(out_blocks, exports_ready);
}
void
BlockScheduler::finalize()
{