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>
This commit is contained in:
Kenneth Graunke
2018-05-01 21:49:17 -07:00
parent 7c22c150c4
commit bf91b81a0b
4 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -595,7 +595,7 @@ read_data_file(FILE *file)
struct gen_batch_decode_ctx batch_ctx;
gen_batch_decode_ctx_init(&batch_ctx, &devinfo, stdout, batch_flags,
xml_path, get_gen_batch_bo, NULL);
xml_path, get_gen_batch_bo, NULL, NULL);
for (int s = 0; s < sect_num; s++) {