anv: add helper to get current address of a batch
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 26 Feb 2022 19:58:35 +0000 (21:58 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Dec 2022 19:22:02 +0000 (19:22 +0000)
commit8d21e29be34ec40fdb5e1485722615f73b2d43b7
tree5b5e5f3e5d4306cba6e1bfe149b1d7915cbc1a36
parentc9272e80b1ab539afd6bf7a2f500cb4d9c68e294
anv: add helper to get current address of a batch

And allow the function to get the very first address in the batch.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20295>
src/intel/vulkan/anv_private.h