From cf87eae00b0e37df2ee55f8068dc02ef1dbe68d3 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Tue, 12 Sep 2023 17:11:07 +0800 Subject: [PATCH] kms/impl-device: Remember the expected deadline dispatch time Part-of: --- src/backends/native/meta-kms-impl-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c index 6758982a6..ee0c2f7c1 100644 --- a/src/backends/native/meta-kms-impl-device.c +++ b/src/backends/native/meta-kms-impl-device.c @@ -71,6 +71,7 @@ typedef struct _CrtcDeadline GSource *source; gboolean armed; gboolean is_deadline_page_flip; + int64_t expected_deadline_time_us; int64_t expected_presentation_time_us; gboolean has_expected_presentation_time; } deadline; @@ -1165,6 +1166,7 @@ arm_crtc_frame_deadline_timer (CrtcFrame *crtc_frame, timerfd_settime (crtc_frame->deadline.timer_fd, TFD_TIMER_ABSTIME, &its, NULL); + crtc_frame->deadline.expected_deadline_time_us = next_deadline_us; crtc_frame->deadline.expected_presentation_time_us = next_presentation_us; crtc_frame->deadline.has_expected_presentation_time = next_presentation_us != 0; crtc_frame->deadline.armed = TRUE;