From a1679c92ce77185843050d6633b4d55e425211d7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 2 Oct 2023 10:26:47 +0200 Subject: 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") --- backend/drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3