From: Vivek Pandya Date: Sun, 30 Aug 2020 15:26:32 +0000 (+0530) Subject: Implement GetDeviceQueue() X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=34bcda4367482cea01a6dd0bd276b0b1c7fb4d03;hp=e945b89480a213080f38988c59ee3ac4352f4780 Implement GetDeviceQueue() --- 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); }