mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 15:12:26 +00:00
backend/drm: drop unnecessary flags in legacy interface
drm_crtc_commit() already ensures that atomic-only flags are disallowed.
This commit is contained in:
parent
8c44e86077
commit
bd18d5ccfc
@ -175,13 +175,7 @@ static bool legacy_crtc_commit(struct wlr_drm_connector *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (flags & DRM_MODE_PAGE_FLIP_EVENT) {
|
if (flags & DRM_MODE_PAGE_FLIP_EVENT) {
|
||||||
uint32_t page_flags = DRM_MODE_PAGE_FLIP_EVENT;
|
if (drmModePageFlip(drm->fd, crtc->id, fb_id, flags, page_flip)) {
|
||||||
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)) {
|
|
||||||
wlr_drm_conn_log_errno(conn, WLR_ERROR, "drmModePageFlip failed");
|
wlr_drm_conn_log_errno(conn, WLR_ERROR, "drmModePageFlip failed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user