intel/tools/error: Decode compute shaders.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Oct 2017 21:54:29 +0000 (14:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 01:11:02 +0000 (17:11 -0800)
commit866158b4b6f07671fee7cf3d7d62a91a52ec3dc2
tree121a698c654a038ed55a53a8c17290e4e1ab472a
parent7049c3865530f9157bce6f18a156b855d9290615
intel/tools/error: Decode compute shaders.

This is a bit more annoying than your average shader - we need to look
at MEDIA_INTERFACE_DESCRIPTOR_LOAD in the batch buffer, then hop over
to the dynamic state buffer to read the INTERFACE_DESCRIPTOR_DATA, then
hop over to the instruction buffer to decode the program.

Now that we store all the buffers before decoding, we can actually do
this fairly easily.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_error_decode.c