mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
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:
parent
bdcc1afd80
commit
6d681cdb98
1 changed files with 12 additions and 3 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue