summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-10-05 19:29:27 -0700
committerJason Ekstrand <[email protected]>2018-03-07 12:13:47 -0800
commit773a51e77260bc7766dd6caf93152808f320d78c (patch)
tree128459bed92bb2775a3864b26c5d474c82c37166 /src/intel/vulkan
parent68df93ecbcee6215ac49e0c6f62ae818d2bc9962 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_device.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index faf32a00a8e..a721847b2a4 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)
{