intel/tools/error: Decode shaders while decoding batch commands.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Nov 2017 07:26:19 +0000 (23:26 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 01:11:02 +0000 (17:11 -0800)
commit8b749ee0eaf935481ee37697e5a28b278d616885
tree5d268777aba3ea0ae102e6bf3d599c6064f5212b
parent4979bf2728724a05c201ed4c1a7998ad6e37f06a
intel/tools/error: Decode shaders while decoding batch commands.

This makes aubinator_error_decode's shader dumping work like aubinator.
Instead of printing them after the fact, it prints them right inside the
3DSTATE_VS/HS/DS/GS/PS packet that references them.  This saves you the
effort of cross-referencing things and jumping back and forth.

It also reduces a bunch of book-keeping, and eliminates the limitation
that we could only handle 4096 programs.  That code was also broken and
failed to print any shaders if there were under 4096 programs.

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