aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRose Hudson <rose@krx.sh>2023-08-10 19:44:33 +0100
committerSimon Ser <contact@emersion.fr>2023-08-23 16:36:43 +0200
commitf7afef0b1fa9a3f83257fd856271ac5634f5805c (patch)
tree3143ebc5028c87eadb480fea0ab3312c28addd82
parent11aba53eada4b8e51b2b592d64ea6dafb3ddf38c (diff)
backend/drm: don't set frame_pending on modeset
https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3664#note_2020392 we're gonna have to trust Simon on this one 🤞
-rw-r--r--backend/drm/drm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index d5f1808e..0765fd14 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -766,12 +766,6 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
}
if (flags & DRM_MODE_PAGE_FLIP_EVENT) {
conn->pending_page_flip_crtc = conn->crtc->id;
-
- // wlr_output's API guarantees that submitting a buffer will schedule a
- // frame event. However the DRM backend will also schedule a frame event
- // when performing a modeset. Set frame_pending to true so that
- // wlr_output_schedule_frame doesn't trigger a synthetic frame event.
- conn->output.frame_pending = true;
}
out: