mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
vulkan/wsi: Add no-op present timing support to most backends.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38770>
This commit is contained in:
parent
c18b14aea2
commit
9f32fc6d3c
6 changed files with 60 additions and 0 deletions
|
|
@ -1327,6 +1327,16 @@ wsi_display_surface_get_capabilities2(VkIcdSurfaceBase *icd_surface,
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PRESENT_TIMING_SURFACE_CAPABILITIES_EXT: {
|
||||
VkPresentTimingSurfaceCapabilitiesEXT *wait = (void *)ext;
|
||||
|
||||
wait->presentStageQueries = 0;
|
||||
wait->presentTimingSupported = VK_FALSE;
|
||||
wait->presentAtAbsoluteTimeSupported = VK_FALSE;
|
||||
wait->presentAtRelativeTimeSupported = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
/* Ignored */
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -142,6 +142,16 @@ wsi_headless_surface_get_capabilities2(VkIcdSurfaceBase *surface,
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PRESENT_TIMING_SURFACE_CAPABILITIES_EXT: {
|
||||
VkPresentTimingSurfaceCapabilitiesEXT *wait = (void *)ext;
|
||||
|
||||
wait->presentStageQueries = 0;
|
||||
wait->presentTimingSupported = VK_FALSE;
|
||||
wait->presentAtAbsoluteTimeSupported = VK_FALSE;
|
||||
wait->presentAtRelativeTimeSupported = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
/* Ignored */
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -139,6 +139,16 @@ wsi_metal_surface_get_capabilities2(VkIcdSurfaceBase *surface,
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PRESENT_TIMING_SURFACE_CAPABILITIES_EXT: {
|
||||
VkPresentTimingSurfaceCapabilitiesEXT *wait = (void *)ext;
|
||||
|
||||
wait->presentStageQueries = 0;
|
||||
wait->presentTimingSupported = VK_FALSE;
|
||||
wait->presentAtAbsoluteTimeSupported = VK_FALSE;
|
||||
wait->presentAtRelativeTimeSupported = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
/* Ignored */
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1914,6 +1914,16 @@ wsi_wl_surface_get_capabilities2(VkIcdSurfaceBase *surface,
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PRESENT_TIMING_SURFACE_CAPABILITIES_EXT: {
|
||||
VkPresentTimingSurfaceCapabilitiesEXT *wait = (void *)ext;
|
||||
|
||||
wait->presentStageQueries = 0;
|
||||
wait->presentTimingSupported = VK_FALSE;
|
||||
wait->presentAtAbsoluteTimeSupported = VK_FALSE;
|
||||
wait->presentAtRelativeTimeSupported = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
/* Ignored */
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -276,6 +276,16 @@ wsi_win32_surface_get_capabilities2(VkIcdSurfaceBase *surface,
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PRESENT_TIMING_SURFACE_CAPABILITIES_EXT: {
|
||||
VkPresentTimingSurfaceCapabilitiesEXT *wait = (VkPresentTimingSurfaceCapabilitiesEXT *)ext;
|
||||
|
||||
wait->presentStageQueries = 0;
|
||||
wait->presentTimingSupported = VK_FALSE;
|
||||
wait->presentAtAbsoluteTimeSupported = VK_FALSE;
|
||||
wait->presentAtRelativeTimeSupported = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
/* Ignored */
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -863,6 +863,16 @@ x11_surface_get_capabilities2(VkIcdSurfaceBase *icd_surface,
|
|||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PRESENT_TIMING_SURFACE_CAPABILITIES_EXT: {
|
||||
VkPresentTimingSurfaceCapabilitiesEXT *wait = (void *)ext;
|
||||
|
||||
wait->presentStageQueries = 0;
|
||||
wait->presentTimingSupported = VK_FALSE;
|
||||
wait->presentAtAbsoluteTimeSupported = VK_FALSE;
|
||||
wait->presentAtRelativeTimeSupported = VK_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
/* Ignored */
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue