Mesa (main): pvr: Use vk_common_GetDeviceQueue API.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Mar 25 18:33:48 UTC 2022


Module: Mesa
Branch: main
Commit: df1c7ca0e5753550e62621dd00d62b5fbc1750c5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df1c7ca0e5753550e62621dd00d62b5fbc1750c5

Author: Rajnesh Kanwal <rajnesh.kanwal at imgtec.com>
Date:   Thu Mar 10 13:01:27 2022 +0000

pvr: Use vk_common_GetDeviceQueue API.

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 at imgtec.com>
Reviewed-by: Frank Binns <frank.binns at imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15574>

---

 src/imagination/vulkan/pvr_device.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/imagination/vulkan/pvr_device.c b/src/imagination/vulkan/pvr_device.c
index 73d4421b7eb..156fbbe0285 100644
--- a/src/imagination/vulkan/pvr_device.c
+++ b/src/imagination/vulkan/pvr_device.c
@@ -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)



More information about the mesa-commit mailing list