i965: Reuse batch decoder infrastructure rather than open coding it.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 00:16:06 +0000 (17:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 16:27:56 +0000 (09:27 -0700)
commit0ab423388cd5a74472a84adb557527b1589fc652
treeb4b8639b94ff0311e93942f10e7fad9325ee669a
parentbf91b81a0bfc549b861d17caa42eb3ce98db49b5
i965: Reuse batch decoder infrastructure rather than open coding it.

With the new callback, Jason's newer batch decoder infrastructure
should be able to do just as well as the old open coded INTEL_DEBUG=bat
handling, with much less code.  If there are any limitations, we'd like
to improve the common code rather than doing one-off hacks here.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/intel_batchbuffer.c