[Intel-gfx] [PATCH xf86-video-intel 6/8] sna/gen3: Fix 3DSTATE_PIXEL_SHADER_PROGRAM debugs
Ville Syrjala
ville.syrjala at linux.intel.com
Sat Mar 18 13:45:42 UTC 2023
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
3DSTATE_PIXEL_SHADER_PROGRAM instruction length is
9 bits, not 8 bits.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
src/sna/kgem_debug_gen3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sna/kgem_debug_gen3.c b/src/sna/kgem_debug_gen3.c
index 1634225c4193..4a7b1aaaeafa 100644
--- a/src/sna/kgem_debug_gen3.c
+++ b/src/sna/kgem_debug_gen3.c
@@ -1279,7 +1279,7 @@ gen3_decode_3d_1d(struct kgem *kgem, uint32_t offset)
return len;
case 0x05:
kgem_debug_print(data, offset, 0, "3DSTATE_PIXEL_SHADER_PROGRAM\n");
- len = (data[0] & 0x000000ff) + 2;
+ len = (data[0] & 0x000001ff) + 2;
assert(((len-1) % 3) == 0);
assert(len <= 370);
i = 1;
--
2.39.2
More information about the Intel-gfx
mailing list