venus: switch to lazy VkBuffer cache
authorJuston Li <justonli@google.com>
Thu, 9 Feb 2023 01:01:31 +0000 (17:01 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Feb 2023 03:38:10 +0000 (03:38 +0000)
commitef255444c195b387d2c8bfc301f69e260bc41679
treecac2e688a87b205e5a4458c7b878329e7abf9bf0
parent56a9aad4010ff9f2c0afcadec0ac61a6274de0a3
venus: switch to lazy VkBuffer cache

Instead of creating a static VkBuffer cache at init with hardcoded
CreateInfo's, lazily cache VkBuffers that the app requests.

Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21324>
src/virtio/vulkan/vn_buffer.c
src/virtio/vulkan/vn_buffer.h