aco/assembler: fix MTBUF opcode encoding on GFX11

We have accidentally set the tfe bit for some opcodes.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29692>
(cherry picked from commit 14f4906e53)
This commit is contained in:
Daniel Schürmann 2024-06-12 09:05:38 +02:00 committed by Eric Engestrom
parent 65ba289754
commit 8a2842291d
2 changed files with 2 additions and 2 deletions

View file

@ -3174,7 +3174,7 @@
"description": "aco/assembler: fix MTBUF opcode encoding on GFX11",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -611,7 +611,7 @@ emit_mtbuf_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction
encoding |= reg(ctx, instr->definitions[0], 8) << 8;
encoding |= reg(ctx, instr->operands[1], 8);
if (ctx.gfx_level >= GFX10) {
if (ctx.gfx_level >= GFX10 && ctx.gfx_level < GFX11) {
encoding |= (((opcode & 0x08) >> 3) << 21); /* MSB of 4-bit OPCODE */
}