anv: Implement GetDeviceQueue2
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 6 Oct 2017 02:29:27 +0000 (19:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Mar 2018 20:13:47 +0000 (12:13 -0800)
This belongs to the protected memory feature but there's nothing about
it that's specific to protected memory.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index faf32a00a8e7ad2abf2fa637e7ba77efbae0a259..a721847b2a4eecd60debf5e86b3ca5964dd7153e 100644 (file)
@@ -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)
 {