i965: Make INTEL_DEBUG=bat decode VS/CLIP/GS/SF/WM/CC_STATE on Gen4-5.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 4 May 2017 05:07:16 +0000 (22:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 May 2017 18:58:20 +0000 (11:58 -0700)
commit32f0dc3a2919f8d8ba01fab811b2d63e4c6823e8
treef9376a7ccd7a653c7d8be5aa94ab9207e12a4bb9
parent0f34b674ed597dcaf9e6e3af8c074b9cd62bde06
i965: Make INTEL_DEBUG=bat decode VS/CLIP/GS/SF/WM/CC_STATE on Gen4-5.

This is something the original decoder did, but I didn't bother with
until now.  I recently had to debug an Ironlake issue, and wanted to
inspect VS_STATE.  So, now it's back.

The other packets in the switch statement are all Gen6/7+, where we
use offsets from dynamic state base address, so we don't need the
gtt_offset subtraction introduced here.  We might want to make a
helper for this hack at some point - perhaps when we introduce the
next occurance.

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_batchbuffer.c