i965: Use aubinator/genxml for INTEL_DEBUG=bat state decoding.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 16 Mar 2017 00:53:44 +0000 (17:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Mar 2017 20:49:15 +0000 (13:49 -0700)
commit705c38e96f1ea732dd85c72c85f988171697867c
treebd1d669354ff78d95c7d0ee95c1cbed1e9e82759
parent5fab46572f18cc62052a1d446f6709a4bfa88249
i965: Use aubinator/genxml for INTEL_DEBUG=bat state decoding.

This deletes all of our handwritten code in favor of autogenerated
genxml-based decoding.  This should be much more usable, as the old
code isn't entirely accurate - we updated some things for new
generations, but not everything.

Aubinator has one annoying limitation: it has no idea how many entries
to print when encountering e.g. 3DSTATE_BINDING_TABLE_POINTERS_VS.  It
picks an arbitrary number, which may skip decoding valid data, and may
print extra garbage entries.

We do a better job here by making brw_state_batch track the size of the
data stored at a particular batchbuffer offset.  Then, we can divide by
the structure size to obtain the exact number of entries.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_batch.c
src/mesa/drivers/dri/i965/brw_state_dump.c [deleted file]
src/mesa/drivers/dri/i965/intel_batchbuffer.c