mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
3023f31cad
commit
9a1a34836d
1 changed files with 15 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue