mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 09:00:08 +01:00
aco/assembler: handle ds_(add|sub)_gs_reg_rtn encoding
They are different than normal DS instructions, only use DATA[0], not use ADDR. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23094>
This commit is contained in:
parent
460b528c9e
commit
438dcf6d0f
1 changed files with 2 additions and 1 deletions
|
|
@ -473,7 +473,8 @@ emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction* inst
|
|||
encoding |= reg(ctx, instr->operands[2], 8) << 16;
|
||||
if (instr->operands.size() >= 2 && instr->operands[1].physReg() != m0)
|
||||
encoding |= reg(ctx, instr->operands[1], 8) << 8;
|
||||
encoding |= reg(ctx, instr->operands[0], 8);
|
||||
if (!instr->operands[0].isUndefined())
|
||||
encoding |= reg(ctx, instr->operands[0], 8);
|
||||
out.push_back(encoding);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue