From fbeb70cbbc56c97d60b291286d1bc93543a0b8a2 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 11 Jul 2025 14:18:14 -0400 Subject: [PATCH] nak/sm20: TexDepBar::textures_left is 6 bits Fixes: 309c48cbb782 ("nak/sm20: Add texture ops") 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 c4bdac3257f..729912133aa 100644 --- a/src/nouveau/compiler/nak/sm20.rs +++ b/src/nouveau/compiler/nak/sm20.rs @@ -2837,7 +2837,7 @@ impl SM20Op for OpTexDepBar { fn encode(&self, e: &mut SM20Encoder<'_>) { e.set_opcode(SM20Unit::Tex, 0x3c); e.set_field(5..9, 0xf_u8); // flags - e.set_field(26..30, self.textures_left); + e.set_field(26..32, self.textures_left); } }