anv: defer binding table block allocation to when necessary
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 17 May 2023 12:48:55 +0000 (15:48 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 19 May 2023 18:11:10 +0000 (18:11 +0000)
commiteb2b3093282aeb671beed011778c9bfcd3cc196c
tree54705eed61b5150b9c08193361248547199adfb3
parent29d324cc75c66b64e4b26514d0d89eac822efc78
anv: defer binding table block allocation to when necessary

There are cases where we never need a binding table block, for example
compute only command buffers.

This has also the nice effect of not having
dEQP-VK.api.object_management.* tests allocate 1Gb of binding tables
which are staying around forever after you run those tests.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8806
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23079>
src/intel/vulkan/anv_batch_chain.c