venus: refactor vn_device_memory to track VkMemoryType
authorYiwei Zhang <zzyiwei@chromium.org>
Sat, 3 Jun 2023 07:16:06 +0000 (00:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 04:00:40 +0000 (04:00 +0000)
commit26567183d81d6e2cf64da9fa74fd2b6040a12238
tree3d06ac257e3cf5b48b5f31af185b5c75ba328fe3
parent7b387997244679dcc995f3b5cb6cd50ce6e132c7
venus: refactor vn_device_memory to track VkMemoryType

The VkMemoryType::heapIndex will be used by device memory report.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23411>
src/virtio/vulkan/vn_device_memory.c
src/virtio/vulkan/vn_device_memory.h