From 96bde78fc72ed74e8f2c69ceee4166ec532c4d42 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Fri, 14 Nov 2025 09:53:57 -0800 Subject: [PATCH] vulkan/wsi: Delete ancient libdrm support for the page flip handler. Looks like the "new" page flip handler was in 2.4.78 in 2017. Mesa requires at least 2.4.109, so we can retire this. Reviewed-by: Hans-Kristian Arntzen Part-of: --- src/vulkan/wsi/wsi_common_display.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index 11083cbeb07..3b0962c5386 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -1916,15 +1916,6 @@ wsi_display_page_flip_handler2(int fd, static void wsi_display_fence_event_handler(struct wsi_display_fence *fence); -static void wsi_display_page_flip_handler(int fd, - unsigned int frame, - unsigned int sec, - unsigned int usec, - void *data) -{ - wsi_display_page_flip_handler2(fd, frame, sec, usec, 0, data); -} - /** * libdrm callback for when we get a DRM_EVENT_CRTC_SEQUENCE in response to a * drmCrtcQueueSequence(), indicating that the first pixel of a new frame is @@ -1941,10 +1932,8 @@ static void wsi_display_sequence_handler(int fd, uint64_t frame, static drmEventContext event_context = { .version = DRM_EVENT_CONTEXT_VERSION, - .page_flip_handler = wsi_display_page_flip_handler, -#if DRM_EVENT_CONTEXT_VERSION >= 3 + .page_flip_handler = NULL, .page_flip_handler2 = wsi_display_page_flip_handler2, -#endif .vblank_handler = NULL, .sequence_handler = wsi_display_sequence_handler, };