mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user