From 717ded9bb0191ea31bf4368be32e7a15fe1b8294 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Aug 2023 17:13:43 +0200 Subject: backend/drm: drop no-op shortcut Since e5fc8cd4c734 ("output: trigger frame/present events on all commits on enabled output"), any commit on an enabled output is supposed to trigger frame/present events. The DRM backend was skipping the commit completely for no-op commits. Stop doing so. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3719 --- backend/drm/drm.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index a012e678..9f9a105b 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -692,11 +692,6 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn, return false; } - if ((base->committed & COMMIT_OUTPUT_STATE) == 0) { - // This commit doesn't change the KMS state - return true; - } - bool ok = false; struct wlr_drm_connector_state pending = {0}; drm_connector_state_init(&pending, conn, base); -- cgit v1.2.3