vulkan/wsi: Take a vk_queue in wsi_common_queue_present()

The common entrypoint wrapper already depends on vk_queue, as do all the
drivers that implement drv_QueuePresentKHR() so there's no point in
passing through Vulkan API types anymore.

The one functional change here is that ANV is no longer forcing the
queue index to be zero, which I suspect was a mistake in the first
place.

Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-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-18 11:04:24 -04:00
committed by Marge Bot
parent 81325cf887
commit 59f85e678f
5 changed files with 36 additions and 39 deletions
+1 -3
View File
@@ -109,9 +109,7 @@ VkResult anv_QueuePresentKHR(
anv_queue_trace(queue, NULL, true /* frame */, false /* begin */);
result = wsi_common_queue_present(&device->physical->wsi_device,
anv_device_to_handle(queue->device),
_queue, 0,
pPresentInfo);
&queue->vk, pPresentInfo);
if (u_trace_should_process(&device->ds.trace_context))
anv_queue_trace(queue, NULL, true /* frame */, true /* begin */);
+1 -3
View File
@@ -106,9 +106,7 @@ VkResult anv_QueuePresentKHR(
}
result = wsi_common_queue_present(&device->physical->wsi_device,
anv_device_to_handle(queue->device),
_queue, 0,
pPresentInfo);
&queue->vk, pPresentInfo);
intel_ds_device_process(&device->ds, true);