aco/lower_to_hw_instr: Check the right instruction's opcode
instr is the branch instruction, its opcode won't ever be writelane. We should check inst instead. Found by inspection. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32389>
This commit is contained in:

committed by
Marge Bot

parent
28ab7f0168
commit
845660f2b7
@@ -2898,8 +2898,8 @@ lower_to_hw_instr(Program* program)
|
||||
} else if (inst->isSALU()) {
|
||||
num_scalar++;
|
||||
} else if (inst->isVALU() || inst->isVINTRP()) {
|
||||
if (instr->opcode == aco_opcode::v_writelane_b32 ||
|
||||
instr->opcode == aco_opcode::v_writelane_b32_e64) {
|
||||
if (inst->opcode == aco_opcode::v_writelane_b32 ||
|
||||
inst->opcode == aco_opcode::v_writelane_b32_e64) {
|
||||
/* writelane ignores exec, writing inactive lanes results in UB. */
|
||||
can_remove = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user