kms/impl-device: Remember the expected deadline dispatch time
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3265>
This commit is contained in:
parent
052def76e6
commit
cf87eae00b
@ -71,6 +71,7 @@ typedef struct _CrtcDeadline
|
|||||||
GSource *source;
|
GSource *source;
|
||||||
gboolean armed;
|
gboolean armed;
|
||||||
gboolean is_deadline_page_flip;
|
gboolean is_deadline_page_flip;
|
||||||
|
int64_t expected_deadline_time_us;
|
||||||
int64_t expected_presentation_time_us;
|
int64_t expected_presentation_time_us;
|
||||||
gboolean has_expected_presentation_time;
|
gboolean has_expected_presentation_time;
|
||||||
} deadline;
|
} deadline;
|
||||||
@ -1165,6 +1166,7 @@ arm_crtc_frame_deadline_timer (CrtcFrame *crtc_frame,
|
|||||||
timerfd_settime (crtc_frame->deadline.timer_fd,
|
timerfd_settime (crtc_frame->deadline.timer_fd,
|
||||||
TFD_TIMER_ABSTIME, &its, NULL);
|
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.expected_presentation_time_us = next_presentation_us;
|
||||||
crtc_frame->deadline.has_expected_presentation_time = next_presentation_us != 0;
|
crtc_frame->deadline.has_expected_presentation_time = next_presentation_us != 0;
|
||||||
crtc_frame->deadline.armed = TRUE;
|
crtc_frame->deadline.armed = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user