aco/assembler: Fix v_cmpx with SDWA.

We need to use the implicit destination.

Fixes: baab6f18c9 ("aco: Optimize branching sequence during SSA elimination.")
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18049>
This commit is contained in:
Georg Lehmann
2022-08-15 11:51:55 +02:00
committed by Marge Bot
parent 9e5f311efe
commit 5ffc73896f

View File

@@ -720,7 +720,7 @@ emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction* inst
uint32_t encoding = 0;
if (instr->isVOPC()) {
if (instr->definitions[0].physReg() != vcc) {
if (instr->definitions[0].physReg() != vcc && instr->definitions[0].physReg() != exec) {
encoding |= instr->definitions[0].physReg() << 8;
encoding |= 1 << 15;
}