summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2023-03-18 15:45:42 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2024-05-07 00:32:24 +0300
commit003bca926ee13f71f635808d2bc6f4c2c57795b7 (patch)
tree2baee29fbe80a90d5b499e29478bca36dd3623e3
parentea0b9aa5d0f26f17021e516f11ccf7b316ea1771 (diff)
sna/gen3: Fix 3DSTATE_PIXEL_SHADER_PROGRAM debugs
3DSTATE_PIXEL_SHADER_PROGRAM instruction length is 9 bits, not 8 bits. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r--src/sna/kgem_debug_gen3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem_debug_gen3.c b/src/sna/kgem_debug_gen3.c
index 1634225c..4a7b1aaa 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;