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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user