From 34bcda4367482cea01a6dd0bd276b0b1c7fb4d03 Mon Sep 17 00:00:00 2001 From: Vivek Pandya Date: Sun, 30 Aug 2020 20:56:32 +0530 Subject: [PATCH] Implement GetDeviceQueue() --- src/libre-soc/vulkan/libresoc_device.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/libre-soc/vulkan/libresoc_device.c b/src/libre-soc/vulkan/libresoc_device.c index adf4c31c633..a9da9d96eb1 100644 --- a/src/libre-soc/vulkan/libresoc_device.c +++ b/src/libre-soc/vulkan/libresoc_device.c @@ -987,14 +987,18 @@ libresoc_DestroyDevice(VkDevice _device, /* FIXME: stub */ } -void -libresoc_GetDeviceQueue(VkDevice _device, - uint32_t queueNodeIndex, - uint32_t queueIndex, - VkQueue *pQueue) +void libresoc_GetDeviceQueue( + VkDevice _device, + uint32_t queueFamilyIndex, + uint32_t queueIndex, + VkQueue* pQueue) { if (getenv("LIBRESOC_TRACE")) { fprintf(stderr, "GetDeviceQueue called. \n"); } - /* FIXME: stub */ + LIBRESOC_FROM_HANDLE(libresoc_device, device, _device); + struct libresoc_queue *queue; + + queue = &device->queues[queueFamilyIndex][queueIndex]; + *pQueue = libresoc_queue_to_handle(queue); } -- 2.30.2