OSDN Git Service

intel-decode: Fix gen6 HIER_DEPTH_BUFFER decoding
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Apr 2013 16:25:12 +0000 (18:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Apr 2013 07:59:20 +0000 (09:59 +0200)
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 ...

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
intel/intel_decode.c
intel/tests/gen6-3d.batch-ref.txt

index 842921b..ff19f92 100644 (file)
@@ -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" },
index 9499ed1..9035663 100644 (file)
 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