anv: store queue creation flags on anv_queue

v2 (Jason Ekstrand):
 - Pass the whole VkDeviceQueueCreateInfo into anv_queue_init()

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8667>
This commit is contained in:
Lionel Landwerlin
2020-12-10 18:34:52 +02:00
committed by Marge Bot
parent e18d045b69
commit 4b920ba5ab
3 changed files with 7 additions and 4 deletions

View File

@@ -485,12 +485,13 @@ _anv_queue_submit(struct anv_queue *queue, struct anv_queue_submit **_submit,
}
VkResult
anv_queue_init(struct anv_device *device, struct anv_queue *queue)
anv_queue_init(struct anv_device *device, struct anv_queue *queue,
const VkDeviceQueueCreateInfo *pCreateInfo)
{
VkResult result;
queue->device = device;
queue->flags = 0;
queue->flags = pCreateInfo->flags;
queue->lost = false;
queue->quit = false;