aco/lower_branches: consider jump target of conditional branches based on vcc

Cc: mesa-stable

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
(cherry picked from commit 421a4dacf0)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39969>
This commit is contained in:
Georg Lehmann 2026-02-10 11:06:50 +01:00 committed by Dylan Baker
parent 790570ae43
commit 30debe18b6
2 changed files with 4 additions and 2 deletions

View file

@ -64,7 +64,7 @@
"description": "aco/lower_branches: consider jump target of conditional branches based on vcc",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -298,7 +298,9 @@ eliminate_useless_exec_writes_in_block(branch_ctx& ctx, Block& block)
/* blocks_incoming_exec_used is initialized to true, so this is correct even for loops. */
if (instr->opcode == aco_opcode::s_cbranch_scc0 ||
instr->opcode == aco_opcode::s_cbranch_scc1) {
instr->opcode == aco_opcode::s_cbranch_scc1 ||
instr->opcode == aco_opcode::s_cbranch_vccz ||
instr->opcode == aco_opcode::s_cbranch_vccnz) {
exec_write_used |= ctx.blocks_incoming_exec_used[instr->salu().imm];
}