mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 05:05:57 +01:00
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.
This commit is contained in:
parent
cc5a02e75d
commit
2b10ae62ad
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue