From 7d3a99a46cc9f0527cfe9da0a0b5b75731cd614d Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Sat, 19 Apr 2025 14:54:41 -0500 Subject: [PATCH] nak/sm20: Use the correct index field for OpS2R It's 10 bits, not 6. Fixes: 078ffb860b43 ("nak/sm20: Add initial SM20 encoding") Part-of: --- src/nouveau/compiler/nak/sm20.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak/sm20.rs b/src/nouveau/compiler/nak/sm20.rs index 6069e0f6a38..d0e15cfffa6 100644 --- a/src/nouveau/compiler/nak/sm20.rs +++ b/src/nouveau/compiler/nak/sm20.rs @@ -2597,7 +2597,7 @@ impl SM20Op for OpS2R { fn encode(&self, e: &mut SM20Encoder<'_>) { e.set_opcode(SM20Unit::Move, 0xb); e.set_dst(14..20, self.dst); - e.set_field(26..32, self.idx); + e.set_field(26..36, self.idx); } }