mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-11 13:29:45 -05:00
backend/drm: fix VRR test
We were calling drm_connector_supports_vrr() before
drm_connector_alloc_crtc(). Thus, when an output is currently off,
the VRR test would always fail, because it checks that the
vrr_enabled CRTC prop exists.
(cherry picked from commit 90a6c7b7e1)
This commit is contained in:
parent
cdd510a65c
commit
8cf1bd5582
1 changed files with 6 additions and 6 deletions
|
|
@ -459,12 +459,6 @@ static bool drm_connector_test(struct wlr_output *output,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((state->committed & WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED) &&
|
|
||||||
state->adaptive_sync_enabled &&
|
|
||||||
!drm_connector_supports_vrr(conn)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct wlr_drm_connector_state pending = {0};
|
struct wlr_drm_connector_state pending = {0};
|
||||||
drm_connector_state_init(&pending, conn, state);
|
drm_connector_state_init(&pending, conn, state);
|
||||||
|
|
||||||
|
|
@ -484,6 +478,12 @@ static bool drm_connector_test(struct wlr_output *output,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((state->committed & WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED) &&
|
||||||
|
state->adaptive_sync_enabled &&
|
||||||
|
!drm_connector_supports_vrr(conn)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (conn->backend->parent) {
|
if (conn->backend->parent) {
|
||||||
// If we're running as a secondary GPU, we can't perform an atomic
|
// If we're running as a secondary GPU, we can't perform an atomic
|
||||||
// commit without blitting a buffer.
|
// commit without blitting a buffer.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue