nak/sm20: Use the correct index field for OpS2R

It's 10 bits, not 6.

Fixes: 078ffb860b ("nak/sm20: Add initial SM20 encoding")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34619>
This commit is contained in:
Faith Ekstrand 2025-04-19 14:54:41 -05:00
parent 4d8d6a28c8
commit 7d3a99a46c

View file

@ -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);
}
}