wsi/display: Add support for PresentWait2

It's really just the same as PresentWait here, and always available.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35414>
This commit is contained in:
Derek Foreman 2024-06-19 09:06:07 -05:00 committed by Marge Bot
parent 3023f31cad
commit 9a1a34836d

View file

@ -984,6 +984,20 @@ wsi_display_surface_get_capabilities2(VkIcdSurfaceBase *icd_surface,
break;
}
case VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_PRESENT_ID_2_KHR: {
VkSurfaceCapabilitiesPresentId2KHR *pid2 = (void *)ext;
pid2->presentId2Supported = VK_TRUE;
break;
}
case VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_PRESENT_WAIT_2_KHR: {
VkSurfaceCapabilitiesPresentWait2KHR *pwait2 = (void *)ext;
pwait2->presentWait2Supported = VK_TRUE;
break;
}
default:
/* Ignored */
break;
@ -2155,6 +2169,7 @@ wsi_display_surface_create_swapchain(
chain->base.release_images = wsi_display_release_images;
chain->base.queue_present = wsi_display_queue_present;
chain->base.wait_for_present = wsi_display_wait_for_present;
chain->base.wait_for_present2 = wsi_display_wait_for_present;
chain->base.present_mode = wsi_swapchain_get_present_mode(wsi_device, create_info);
chain->base.image_count = num_images;