OSDN Git Service

intel: Give the batch decoder a callback to ask about state size.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 04:49:17 +0000 (21:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 May 2018 16:27:56 +0000 (09:27 -0700)
commitbf91b81a0bfc549b861d17caa42eb3ce98db49b5
tree08563f0de0a961ca81cb4393f2e2fbf56a979938
parent7c22c150c40b3e2da892604d21c749aaec0b3cfd
intel: Give the batch decoder a callback to ask about state size.

Given an arbitrary batch, we don't always know what the size of certain
things are, such as how many entries are in a binding table.  But it's
easy for the driver to track that information, so with a simple callback
we can calculate this correctly for INTEL_DEBUG=bat.

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