pvr: Use vk_common_GetDeviceQueue API.
authorRajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Thu, 10 Mar 2022 13:01:27 +0000 (13:01 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 18:07:08 +0000 (18:07 +0000)
Removes pvr_GetDeviceQueue implementation. As we are now
using the common vk_queue structure as a base for pvr_queue,
we can use vk_common_GetDeviceQueue implementation instead.

Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15574>

src/imagination/vulkan/pvr_device.c

index 73d4421..156fbbe 100644 (file)
@@ -2134,18 +2134,6 @@ void pvr_GetBufferMemoryRequirements2(
       ALIGN_POT(buffer->size, buffer->alignment);
 }
 
-void pvr_GetDeviceQueue(VkDevice _device,
-                        uint32_t queueFamilyIndex,
-                        uint32_t queueIndex,
-                        VkQueue *pQueue)
-{
-   PVR_FROM_HANDLE(pvr_device, device, _device);
-
-   assert(queueFamilyIndex == 0);
-
-   *pQueue = pvr_queue_to_handle(&device->queues[queueIndex]);
-}
-
 void pvr_GetImageMemoryRequirements2(VkDevice _device,
                                      const VkImageMemoryRequirementsInfo2 *pInfo,
                                      VkMemoryRequirements2 *pMemoryRequirements)