projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2e0991
)
intel: Correct decoding of 3DSTATE_PIXEL_SHADER_CONSTANTS
author
Chris Wilson
<chris@chris-wilson.co.uk>
Wed, 4 Feb 2009 20:25:08 +0000
(20:25 +0000)
committer
Kristian Høgsberg
<krh@redhat.com>
Wed, 4 Feb 2009 21:56:31 +0000
(16:56 -0500)
A couple of minor typos that proclaimed an error in the wrong command, and
failed to offset the mask.
src/mesa/drivers/dri/intel/intel_decode.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_decode.c
b/src/mesa/drivers/dri/intel/intel_decode.c
index 5f90ca22ece4244e443aa943247c8db0f1d84c3e..cbee7dc5d9bca3633d5c8127568ea2115f69d0a8 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_decode.c
+++ b/
src/mesa/drivers/dri/intel/intel_decode.c
@@
-932,7
+932,7
@@
decode_3d_1d(uint32_t *data, int count, uint32_t hw_offset, int *failures, int i
instr_out(data, hw_offset, 0, "3DSTATE_PIXEL_SHADER_CONSTANTS\n");
len = (data[0] & 0x000000ff) + 2;
- i =
1
;
+ i =
2
;
for (c = 0; c <= 31; c++) {
if (data[1] & (1 << c)) {
if (i + 4 >= count)
@@
-952,7
+952,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_
MAP_STATE
\n");
+ fprintf(out, "Bad count in 3DSTATE_
PIXEL_SHADER_CONSTANTS
\n");
(*failures)++;
}
return len;