diff options
author | Simon Ser <contact@emersion.fr> | 2023-08-25 17:13:43 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-08-25 17:16:05 +0200 |
commit | 717ded9bb0191ea31bf4368be32e7a15fe1b8294 (patch) | |
tree | 429ff6db6f19dae46327ab18087ebf4390a5ea79 | |
parent | 7bf6c1fc6c824bb2e031d464000ae41c86c459e5 (diff) |
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
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 0 insertions, 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); |