venus: clean up vn_AllocateMemory
authorChia-I Wu <olvaffe@gmail.com>
Mon, 26 Jul 2021 23:58:53 +0000 (16:58 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 27 Jul 2021 03:53:52 +0000 (03:53 +0000)
commitf06b0df741e018bb02218e149ef5e4e17f339162
tree6102ab3ca165b3eb1dbca71ec62fb082217d160d
parentcac5711d433fa1519be101ad3dae1e1d53c9a55a
venus: clean up vn_AllocateMemory

Mainly to add vn_device_memory_should_suballocate.

Cc: 21.2 mesa-stable
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12072>
src/virtio/vulkan/vn_device_memory.c