intel-decode: Fix gen6 HIER_DEPTH_BUFFER decoding
PATCH 1/1 intel-decode: Fix gen6 HIER_DEPTH_BUFFER decoding
It accidentally used the cmd id for the gen7 command and had an outdated lenght field. Spotted while trying to make sense of an ivb error_state from mesa 7.11 ...
Signed-off-by Daniel Vetter <[email protected]>
--- intel/intel_decode.c | 2 +- intel/tests/gen6-3d.batch-ref.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
intel/intel_decode.c +1 -1
@@ -3162,7 +3162,7 @@ decode_3d_965(struct drm_intel_decode *ctx) { 0x7805, 0x00ff, 3, 3, "3DSTATE_URB" }, { 0x7804, 0x00ff, 3, 3, "3DSTATE_CLEAR_PARAMS" }, { 0x7806, 0x00ff, 3, 3, "3DSTATE_STENCIL_BUFFER" }, - { 0x7807, 0x00ff, 4, 4, "3DSTATE_HIER_DEPTH_BUFFER", 6 }, + { 0x790f, 0x00ff, 3, 3, "3DSTATE_HIER_DEPTH_BUFFER", 6 }, { 0x7807, 0x00ff, 3, 3, "3DSTATE_HIER_DEPTH_BUFFER", 7, gen7_3DSTATE_HIER_DEPTH_BUFFER }, { 0x7808, 0x00ff, 5, 257, "3DSTATE_VERTEX_BUFFERS" }, { 0x7809, 0x00ff, 3, 256, "3DSTATE_VERTEX_ELEMENTS" },
intel/tests/gen6-3d.batch-ref.txt +3 -3
@@ -146,9 +146,9 @@ 0x12300244: 0x00000000: volume depth 0x12300248: 0x00000000: 0x1230024c: 0x00000000: -0x12300250: 0x790f0001: 3D UNKNOWN: 3d_965 opcode = 0x790f -0x12300254: 0x000005ff: MI_NOOP -0x12300258: 0x00000000: MI_NOOP +0x12300250: 0x790f0001: 3DSTATE_HIER_DEPTH_BUFFER +0x12300254: 0x000005ff: dword 1 +0x12300258: 0x00000000: dword 2 0x1230025c: 0x790e0001: 3D UNKNOWN: 3d_965 opcode = 0x790e 0x12300260: 0x0000027f: MI_NOOP 0x12300264: 0x00000000: MI_NOOP
Signature · 1 line
1.7.10.4
Quoted 3 lines · Daniel Vetter
It accidentally used the cmd id for the gen7 command and had an outdated lenght field. Spotted while trying to make sense of an ivb
error_statefrom mesa 7.11 ...
Reviewed-by Eric Anholt <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx