mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-28 10:16:12 +00:00
decode/i965: Show byte lengths for buffers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
7f63b95c06
commit
55950195da
@ -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);
|
return i965_decode_urb_fence(data, hw_offset, len, count, failures);
|
||||||
case 0x6001:
|
case 0x6001:
|
||||||
instr_out(data, hw_offset, 0, "CS_URB_STATE\n");
|
instr_out(data, hw_offset, 0, "CS_URB_STATE\n");
|
||||||
instr_out(data, hw_offset, 1, "entry_size: %d, n_entries: %d\n",
|
instr_out(data, hw_offset, 1, "entry_size: %d [%d bytes], n_entries: %d\n",
|
||||||
(data[1] >> 4) & 0x1f, data[1] & 0x7);
|
(data[1] >> 4) & 0x1f,
|
||||||
|
(((data[1] >> 4) & 0x1f) + 1) * 64,
|
||||||
|
data[1] & 0x7);
|
||||||
return len;
|
return len;
|
||||||
case 0x6002:
|
case 0x6002:
|
||||||
len = (data[0] & 0x000000ff) + 2;
|
len = (data[0] & 0x000000ff) + 2;
|
||||||
instr_out(data, hw_offset, 0, "CONSTANT_BUFFER: %s\n",
|
instr_out(data, hw_offset, 0, "CONSTANT_BUFFER: %s\n",
|
||||||
(data[0] >> 8) & 1 ? "valid" : "invalid");
|
(data[0] >> 8) & 1 ? "valid" : "invalid");
|
||||||
instr_out(data, hw_offset, 1, "offset: 0x%08x, length: 0x%08x\n",
|
instr_out(data, hw_offset, 1, "offset: 0x%08x, length: %d bytes\n",
|
||||||
data[1] >> 6, data[1] & 0x3f);
|
data[1] & ~0x3f, ((data[1] & 0x3f) + 1) * 64);
|
||||||
return len;
|
return len;
|
||||||
case 0x6101:
|
case 0x6101:
|
||||||
if ((IS_IRONLAKE(devid) && len != 8) ||
|
if ((IS_IRONLAKE(devid) && len != 8) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user