aco: consider s_cbranch_exec* instructions in needs_exec_mask()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32477>
This commit is contained in:
Daniel Schürmann 2024-12-18 10:57:34 +01:00 committed by Marge Bot
parent de1e38e214
commit eecdb45d61

View file

@ -854,7 +854,8 @@ needs_exec_mask(const Instruction* instr)
return true;
if (instr->isSALU() || instr->isBranch() || instr->isSMEM() || instr->isBarrier())
return instr->reads_exec();
return instr->opcode == aco_opcode::s_cbranch_execz ||
instr->opcode == aco_opcode::s_cbranch_execnz || instr->reads_exec();
if (instr->isPseudo()) {
switch (instr->opcode) {