venus: add VN_CS_ENCODER_STORAGE_SHMEM_POOL for VkCommandBuffer
authorChia-I Wu <olvaffe@gmail.com>
Wed, 8 Dec 2021 23:55:12 +0000 (15:55 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Dec 2021 19:02:29 +0000 (19:02 +0000)
commit7bec2a0b2397d73583bc678c7531ad82d5b28c90
tree2d617b9dfa8c0823c7be651f7d2c4bab1c520adf
parent487926aa8658fe3e533ab68a36f3b2aff07db716
venus: add VN_CS_ENCODER_STORAGE_SHMEM_POOL for VkCommandBuffer

It suballocates from a shmem pool owned by vn_instance.  The goals are
to speed up shmem allocations for VkCommandBuffer and to reduce the
number of BOs.  Both are crucial when shmems are HOST3D BOs, because
they require roundtrips to the renderer to allocate and they take up KVM
memslots.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14179>
src/virtio/vulkan/vn_command_buffer.c
src/virtio/vulkan/vn_cs.c
src/virtio/vulkan/vn_cs.h
src/virtio/vulkan/vn_instance.c
src/virtio/vulkan/vn_instance.h