vulkan/device: Add a common GetDeviceQueue2 implementation
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 23 Sep 2021 17:18:08 +0000 (12:18 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Sep 2021 21:08:25 +0000 (21:08 +0000)
commit3b535d28d2f31455682c09886ebe49ccb99a2ed6
treec3f326ed6d5b6737c45371145c3daeab51d290df
parent0d80799ccd68a11651e51aeb6f2493461ceb7d68
vulkan/device: Add a common GetDeviceQueue2 implementation

If we store the queues in a linked list in the device as vk_queue_init
is called then we can handle enumeration in common code.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13003>
src/vulkan/util/vk_device.c
src/vulkan/util/vk_device.h
src/vulkan/util/vk_queue.c
src/vulkan/util/vk_queue.h