anv: Fix output of INTEL_DEBUG=bat for chained batches
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 28 Oct 2019 21:46:23 +0000 (14:46 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 29 Oct 2019 02:34:54 +0000 (19:34 -0700)
commite2155158e99e405313d6bc4d4478b92b4234dc4e
treeab7e5cb4aeb765de94102339d990ae626f1119e1
parentf9fe86e02adaeddae5ce2241b0c539be6dc0b0ef
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@intel.com>
src/intel/vulkan/anv_batch_chain.c