anv: Stop picking our own blit queue

This reverts commit 1f0fdcb619 ("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 d7938de8fe ("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 <ajax@redhat.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36827>
This commit is contained in:
Faith Ekstrand 2025-08-15 16:19:59 -04:00 committed by Marge Bot
parent 4f56ff70ff
commit 650debdf40

View file

@ -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;