Implement GetDeviceQueue()
[mesa.git] / src / libre-soc / vulkan / libresoc_device.c
index adf4c31c633e6f53f434b0eff0332517a9d59846..a9da9d96eb19eaefc2c308fda156d6bb4cc9a72b 100644 (file)
@@ -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);
 }