summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-07-16 14:15:47 -0700
committerEric Anholt <eric@anholt.net>2009-09-04 12:19:25 -0700
commit1cbfe0ea6aea4a1bef6528cb72308c9571636c62 (patch)
treeed99e78ab33a7ae5a5ce79b02e8da6aeb779f816 /tools
parentd9e28e63e5a11f0707516b2eff648b1c2c99598a (diff)
intel_gpu_dump: Fix decode for LOAD_STATE_IMMEDIATE_1 with S8 set.
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_gpu_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c
index 4851f8c3..090c65f5 100644
--- a/tools/intel_gpu_dump.c
+++ b/tools/intel_gpu_dump.c
@@ -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");
len = (data[0] & 0x0000000f) + 2;
i = 1;
- for (word = 0; word <= 7; word++) {
+ for (word = 0; word <= 8; word++) {
if (data[0] & (1 << (4 + word))) {
if (i >= count)
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) {
- fprintf(out, "Bad count in 3DSTATE_LOAD_INDIRECT\n");
+ fprintf(out, "Bad count in 3DSTATE_LOAD_STATE_IMMEDIATE_1\n");
(*failures)++;
}
return len;