diff options
author | Simon Ser <contact@emersion.fr> | 2023-11-19 15:18:05 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-11-19 15:32:30 +0100 |
commit | bd18d5ccfcfcbd5165103fdb46745207c69f173d (patch) | |
tree | a64d25ca8f598f8a24b959ba333b1411cfab455e | |
parent | 8c44e86077e97c2281475cd99baf85b117a8411c (diff) |
backend/drm: drop unnecessary flags in legacy interface
drm_crtc_commit() already ensures that atomic-only flags are
disallowed.
-rw-r--r-- | backend/drm/legacy.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c index 7663c0be..117fb9e5 100644 --- a/backend/drm/legacy.c +++ b/backend/drm/legacy.c @@ -175,13 +175,7 @@ static bool legacy_crtc_commit(struct wlr_drm_connector *conn, } if (flags & DRM_MODE_PAGE_FLIP_EVENT) { - uint32_t page_flags = DRM_MODE_PAGE_FLIP_EVENT; - if (flags & DRM_MODE_PAGE_FLIP_ASYNC) { - page_flags |= DRM_MODE_PAGE_FLIP_ASYNC; - } - - if (drmModePageFlip(drm->fd, crtc->id, fb_id, - page_flags, page_flip)) { + if (drmModePageFlip(drm->fd, crtc->id, fb_id, flags, page_flip)) { wlr_drm_conn_log_errno(conn, WLR_ERROR, "drmModePageFlip failed"); return false; } |