summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-10-28 14:46:23 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-10-28 19:34:54 -0700
commite2155158e99e405313d6bc4d4478b92b4234dc4e (patch)
treeab7e5cb4aeb765de94102339d990ae626f1119e1 /src/intel
parentf9fe86e02adaeddae5ce2241b0c539be6dc0b0ef (diff)
anv: Fix output of INTEL_DEBUG=bat for chained batches
The anv_batch_bo contents are linked one to another, and when printing we have to start with the first of those. Since in `u_vector` new elements are added to the head, to get the first element we need the vector's tail. Fixes: 32ffd90002b ("anv: add support for INTEL_DEBUG=bat") Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_batch_chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c
index 0d4da389da1..0e1a2e496ec 100644
--- a/src/intel/vulkan/anv_batch_chain.c
+++ b/src/intel/vulkan/anv_batch_chain.c
@@ -1732,7 +1732,7 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
if (cmd_buffer) {
if (unlikely(INTEL_DEBUG & DEBUG_BATCH)) {
- struct anv_batch_bo **bo = u_vector_head(&cmd_buffer->seen_bbos);
+ struct anv_batch_bo **bo = u_vector_tail(&cmd_buffer->seen_bbos);
device->cmd_buffer_being_decoded = cmd_buffer;
gen_print_batch(&device->decoder_ctx, (*bo)->bo.map,