kms/impl-device: Remember the expected deadline dispatch time
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3265> Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
parent
7f88fd419b
commit
739ad5590b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
@ -1167,6 +1168,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue