From 650debdf40a53b08dca5acf2cdc10cd9c041915b Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 15 Aug 2025 16:19:59 -0400 Subject: [PATCH] anv: Stop picking our own blit queue This reverts commit 1f0fdcb6194b ("anv: always pick graphics queue to execute prime blits on.") which was added to avoid prime blits on video queues. However, this was fixed properly in d7938de8feea ("vulkan/wsi: don't support present with queues where blit is unsupported") which made us stop advertising presentation on video queues entirely. We no longer need the code in ANV. Acked-by: Adam Jackson Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_wsi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index d56e409707b..99e4f65487f 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -38,19 +38,6 @@ anv_wsi_proc_addr(VkPhysicalDevice physicalDevice, const char *pName) return vk_instance_get_proc_addr_unchecked(&pdevice->instance->vk, pName); } -static VkQueue -anv_wsi_get_prime_blit_queue(VkDevice _device) -{ - ANV_FROM_HANDLE(anv_device, device, _device); - - vk_foreach_queue(_queue, &device->vk) { - struct anv_queue *queue = (struct anv_queue *)_queue; - if (queue->family->queueFlags & (VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT)) - return vk_queue_to_handle(_queue); - } - return NULL; -} - VkResult anv_init_wsi(struct anv_physical_device *physical_device) { @@ -74,7 +61,6 @@ anv_init_wsi(struct anv_physical_device *physical_device) physical_device->has_protected_contexts && i == VK_ICD_WSI_PLATFORM_DISPLAY; } - wsi_device->get_blit_queue = anv_wsi_get_prime_blit_queue; physical_device->vk.wsi_device = wsi_device;