presentation-time: implement support for presentation-time v3

See: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/459
This commit is contained in:
llyyr 2025-12-06 21:49:01 +05:30
parent a962d58727
commit e6e57da34f
3 changed files with 15 additions and 1 deletions

View file

@ -2037,6 +2037,12 @@ static void handle_page_flip(int fd, unsigned seq,
present_flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
}
if (conn->output.adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED) {
present_flags |= WLR_OUTPUT_PRESENT_VARIABLE_RATE;
} else {
present_flags |= WLR_OUTPUT_PRESENT_FIXED_RATE;
}
struct wlr_output_event_present present_event = {
/* The DRM backend guarantees that the presentation event will be for
* the last submitted frame. */