diff options
author | Isaac Freund <mail@isaacfreund.com> | 2022-06-02 20:18:16 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-06-02 20:18:16 +0200 |
commit | 2b10ae62ad9c1a3de5d96dafbf0f86a9e897fc8e (patch) | |
tree | e0f9d55368d9674919a13ba6a38cda65fd0fa4f8 /backend/drm | |
parent | cc5a02e75deccf1006b3f231556b9fbbcd64edf8 (diff) |
backend/drm: fix check for no-op commits
Since 6936e163b, we short-circut no-op commits as an optimization.
However, the logic in the check was slightly off.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 97e473b6..3a4a683f 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -477,7 +477,7 @@ static bool drm_connector_test(struct wlr_output *output, return false; } - if ((state->committed & ~COMMIT_OUTPUT_STATE) == 0) { + if ((state->committed & COMMIT_OUTPUT_STATE) == 0) { // This commit doesn't change the KMS state return true; } @@ -568,7 +568,7 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn, return false; } - if ((base->committed & ~COMMIT_OUTPUT_STATE) == 0) { + if ((base->committed & COMMIT_OUTPUT_STATE) == 0) { // This commit doesn't change the KMS state return true; } |