From 773a51e77260bc7766dd6caf93152808f320d78c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 5 Oct 2017 19:29:27 -0700 Subject: [PATCH] anv: Implement GetDeviceQueue2 This belongs to the protected memory feature but there's nothing about it that's specific to protected memory. Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index faf32a0..a721847 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1740,6 +1740,18 @@ void anv_GetDeviceQueue( *pQueue = anv_queue_to_handle(&device->queue); } +void anv_GetDeviceQueue2( + VkDevice _device, + const VkDeviceQueueInfo2* pQueueInfo, + VkQueue* pQueue) +{ + ANV_FROM_HANDLE(anv_device, device, _device); + + assert(pQueueInfo->queueIndex == 0); + + *pQueue = anv_queue_to_handle(&device->queue); +} + VkResult anv_device_query_status(struct anv_device *device) { -- 2.7.4