nak: Fix ALD/AST encoding for vtx and offset

The bit offsets were inverted compared to gv100 codegen.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Mary Guillemard 2023-09-20 15:20:00 +02:00 committed by Marge Bot
parent 66c9c40f68
commit 1a2bed819d

View file

@ -1478,8 +1478,8 @@ impl SM75Instr {
self.set_opcode(0x321);
self.set_dst(op.dst);
self.set_reg_src(24..32, op.vtx);
self.set_reg_src(32..40, op.offset);
self.set_reg_src(32..40, op.vtx);
self.set_reg_src(24..32, op.offset);
self.set_field(40..50, op.access.addr);
self.set_field(74..76, op.access.comps - 1);
@ -1492,8 +1492,8 @@ impl SM75Instr {
self.set_opcode(0x322);
self.set_reg_src(32..40, op.data);
self.set_reg_src(24..32, op.vtx);
self.set_reg_src(64..72, op.offset);
self.set_reg_src(64..72, op.vtx);
self.set_reg_src(24..32, op.offset);
self.set_field(40..50, op.access.addr);
self.set_field(74..76, op.access.comps - 1);