r600/sfn: When splitting an ALU CF update possible start of next CF

Without this update a very long ALU block may not be splitted as
required and lowering to assembly may fail because the maximum
supported length of a ALU CF is overrun.

Fixes: 6aafa2bb49 ("r600/sfn: Split ALU blocks in scheduler to fit into 128 slots")

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36742>
(cherry picked from commit 63c801e8c2)
This commit is contained in:
Gert Wollny 2025-08-11 14:44:17 +02:00 committed by Eric Engestrom
parent 3ceca2beb7
commit a24427b5cf
2 changed files with 2 additions and 1 deletions

View file

@ -7914,7 +7914,7 @@
"description": "r600/sfn: When splitting an ALU CF update possible start of next CF",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "6aafa2bb4903db20269b3062dfa73b3fe781facd",
"notes": null

View file

@ -788,6 +788,7 @@ void BlockScheduler::maybe_split_alu_block(Shader::ShaderBlocks& out_blocks)
next_block_start->set_instr_flag(Instr::force_cf);
used_slots = pending_slots;
pending_slots = cur_group->slots();
next_block_start = cur_group;
}
}