summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-05 12:31:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-05 12:35:02 +0000
commit55950195da6ab0cb6d931dae2733628a97286bde (patch)
tree9285be980cb71003f5122e852b1e1d6f81f660a7 /tools
parent7f63b95c06ee49afcc6547128f8d582b91694d40 (diff)
decode/i965: Show byte lengths for buffers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_decode.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/intel_decode.c b/tools/intel_decode.c
index 37d6a0cc..5b93be7c 100644
--- a/tools/intel_decode.c
+++ b/tools/intel_decode.c
@@ -1521,15 +1521,17 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int
return i965_decode_urb_fence(data, hw_offset, len, count, failures);
case 0x6001:
instr_out(data, hw_offset, 0, "CS_URB_STATE\n");
- instr_out(data, hw_offset, 1, "entry_size: %d, n_entries: %d\n",
- (data[1] >> 4) & 0x1f, data[1] & 0x7);
+ instr_out(data, hw_offset, 1, "entry_size: %d [%d bytes], n_entries: %d\n",
+ (data[1] >> 4) & 0x1f,
+ (((data[1] >> 4) & 0x1f) + 1) * 64,
+ 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",
- data[1] >> 6, data[1] & 0x3f);
+ instr_out(data, hw_offset, 1, "offset: 0x%08x, length: %d bytes\n",
+ data[1] & ~0x3f, ((data[1] & 0x3f) + 1) * 64);
return len;
case 0x6101:
if ((IS_IRONLAKE(devid) && len != 8) ||