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:
@@ -720,7 +720,7 @@ emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction* inst
|
|||||||
uint32_t encoding = 0;
|
uint32_t encoding = 0;
|
||||||
|
|
||||||
if (instr->isVOPC()) {
|
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 |= instr->definitions[0].physReg() << 8;
|
||||||
encoding |= 1 << 15;
|
encoding |= 1 << 15;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user