vulkan/cmd_queue: Add a common vk_cmd_enqueue_CmdBindDescriptorSets
authorJason Ekstrand <jason.ekstrand@collabora.com>
Wed, 9 Mar 2022 21:27:33 +0000 (15:27 -0600)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Mar 2022 21:08:36 +0000 (21:08 +0000)
commit94ea3b9c03158433d2ef5a4cfba4aa2765ba1cbe
tree3a0e5726f15d6e20b28c4ba55b69a2f8d6363622
parentc1070556a0c7f2e78188b0893d541ac6adeb1c9e
vulkan/cmd_queue: Add a common vk_cmd_enqueue_CmdBindDescriptorSets

In order for this to work, the driver must reference-count pipeline
layouts so we can take a reference while the command is in the queue.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15329>
src/vulkan/runtime/vk_cmd_enqueue.c
src/vulkan/runtime/vk_device.h