@@ -92,6 +92,7 @@ EXTENSIONS = [
Extension('VK_EXT_display_surface_counter', 1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
Extension('VK_EXT_display_control', 1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
Extension('VK_MESA_query_timestamp', 1, True),
+ Extension('VK_GOOGLE_display_timing', 1, True),
]
class VkVersion:
@@ -239,3 +239,32 @@ VkResult anv_QueuePresentKHR(
_queue, 0,
pPresentInfo);
}
+
+/* VK_GOOGLE_display_timing */
+VkResult
+anv_GetRefreshCycleDurationGOOGLE(VkDevice _device,
+ VkSwapchainKHR swapchain,
+ VkRefreshCycleDurationGOOGLE *pDisplayTimingProperties)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+
+ return wsi_common_get_refresh_cycle_duration(&device->instance->physicalDevice.wsi_device,
+ _device,
+ swapchain,
+ pDisplayTimingProperties);
+}
+
+VkResult
+anv_GetPastPresentationTimingGOOGLE(VkDevice _device,
+ VkSwapchainKHR swapchain,
+ uint32_t *pPresentationTimingCount,
+ VkPastPresentationTimingGOOGLE *pPresentationTimings)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+
+ return wsi_common_get_past_presentation_timing(&device->instance->physicalDevice.wsi_device,
+ _device,
+ swapchain,
+ pPresentationTimingCount,
+ pPresentationTimings);
+}
This adds support for the VK_GOOGLE_display timing extension. Signed-off-by: Keith Packard <keithp@keithp.com> --- src/intel/vulkan/anv_extensions.py | 1 + src/intel/vulkan/anv_wsi.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+)