mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 19:06:19 +00:00
intel_gpu_dump: Fix decode for LOAD_STATE_IMMEDIATE_1 with S8 set.
This commit is contained in:
parent
d9e28e63e5
commit
1cbfe0ea6a
@ -914,7 +914,7 @@ decode_3d_1d(uint32_t *data, int count, uint32_t hw_offset, int *failures, int i
|
|||||||
instr_out(data, hw_offset, 0, "3DSTATE_LOAD_STATE_IMMEDIATE_1\n");
|
instr_out(data, hw_offset, 0, "3DSTATE_LOAD_STATE_IMMEDIATE_1\n");
|
||||||
len = (data[0] & 0x0000000f) + 2;
|
len = (data[0] & 0x0000000f) + 2;
|
||||||
i = 1;
|
i = 1;
|
||||||
for (word = 0; word <= 7; word++) {
|
for (word = 0; word <= 8; word++) {
|
||||||
if (data[0] & (1 << (4 + word))) {
|
if (data[0] & (1 << (4 + word))) {
|
||||||
if (i >= count)
|
if (i >= count)
|
||||||
BUFFER_FAIL(count, len, "3DSTATE_LOAD_STATE_IMMEDIATE_1");
|
BUFFER_FAIL(count, len, "3DSTATE_LOAD_STATE_IMMEDIATE_1");
|
||||||
@ -933,7 +933,7 @@ decode_3d_1d(uint32_t *data, int count, uint32_t hw_offset, int *failures, int i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (len != i) {
|
if (len != i) {
|
||||||
fprintf(out, "Bad count in 3DSTATE_LOAD_INDIRECT\n");
|
fprintf(out, "Bad count in 3DSTATE_LOAD_STATE_IMMEDIATE_1\n");
|
||||||
(*failures)++;
|
(*failures)++;
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user