Mesa (staging/19.2): anv: Fix output of INTEL_DEBUG=bat for chained batches
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 29 15:19:42 UTC 2019
Module: Mesa
Branch: staging/19.2
Commit: 5290062a3f1c039c6b94069dd503cf1ddb6365cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5290062a3f1c039c6b94069dd503cf1ddb6365cd
Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date: Mon Oct 28 14:46:23 2019 -0700
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 <lionel.g.landwerlin at intel.com>
(cherry picked from commit e2155158e99e405313d6bc4d4478b92b4234dc4e)
---
src/intel/vulkan/anv_batch_chain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c
index 3b1f713ef5b..e5d8b3b568d 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,
More information about the mesa-commit
mailing list