aco: fix off-by-one error with 16-bit MTBUF opcodes on GFX10
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4966>
This commit is contained in:
committed by
Marge Bot
parent
1647e098e9
commit
cc1a1da8ab
@@ -408,7 +408,7 @@ void emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction*
|
||||
encoding |= (0xFF & instr->operands[1].physReg());
|
||||
|
||||
if (ctx.chip_class >= GFX10) {
|
||||
encoding |= (((opcode & 0x08) >> 4) << 21); /* MSB of 4-bit OPCODE */
|
||||
encoding |= (((opcode & 0x08) >> 3) << 21); /* MSB of 4-bit OPCODE */
|
||||
}
|
||||
|
||||
out.push_back(encoding);
|
||||
|
||||
Reference in New Issue
Block a user