aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-02 10:26:47 +0200
committerSimon Ser <contact@emersion.fr>2023-10-02 10:26:47 +0200
commita1679c92ce77185843050d6633b4d55e425211d7 (patch)
treefb386bfbf820b123391c38c6b730e6681f2dc342
parentc044aef5f0c0fae57e6354b64a59481824c59c3e (diff)
backend/drm: restore pending page-flip check when tearing
DRM_MODE_PAGE_FLIP_ASYNC doesn't allow user-space to submit new buffers before waiting for the uevent: the kernel will return EBUSY in that case. Fixes: c2aa7fd965cb ("backend/drm: Add async page flip support to legacy")
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 0f118c17..80d62fa8 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -734,7 +734,7 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
// page-flip, either a blocking modeset. When performing a blocking modeset
// we'll wait for all queued page-flips to complete, so we don't need this
// safeguard.
- if (conn->pending_page_flip_crtc && !pending.modeset && !pending.base->tearing_page_flip) {
+ if (conn->pending_page_flip_crtc && !pending.modeset) {
wlr_drm_conn_log(conn, WLR_ERROR, "Failed to page-flip output: "
"a page-flip is already pending");
goto out;