From 84a877511f2a85274ef0f22ea01249b1440e95c5 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 3 Sep 2009 09:33:36 +0800 Subject: [PATCH] Fix the length of CONSTANT_BUFFER Signed-off-by: Xiang, Haihao --- tools/intel_gpu_dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c index 09cae3fe..1793fd79 100644 --- a/tools/intel_gpu_dump.c +++ b/tools/intel_gpu_dump.c @@ -1551,6 +1551,7 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, int *failures) (data[1] >> 4) & 0x1f, data[1] & 0x7); return len; case 0x6002: + len = (data[0] & 0x000000ff) + 2; instr_out(data, hw_offset, 0, "CONSTANT_BUFFER: %s\n", (data[0] >> 8) & 1 ? "valid" : "invalid"); instr_out(data, hw_offset, 1, "offset: 0x%08x, length: 0x%08x\n",