mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-15 08:22:07 -04:00
backend/drm: Use cached vrr support flag
We do not expect the connector support to change throughout the lifetime of the link on this connector, so use the value we initially probed.
This commit is contained in:
parent
f10327f915
commit
bedc890935
4 changed files with 5 additions and 30 deletions
|
|
@ -276,7 +276,7 @@ bool drm_atomic_connector_prepare(struct wlr_drm_connector_state *state, bool mo
|
|||
output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED;
|
||||
bool vrr_enabled = prev_vrr_enabled;
|
||||
if ((state->base->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED)) {
|
||||
if (state->base->adaptive_sync_enabled && !drm_connector_supports_vrr(conn)) {
|
||||
if (state->base->adaptive_sync_enabled && !output->adaptive_sync_supported) {
|
||||
return false;
|
||||
}
|
||||
vrr_enabled = state->base->adaptive_sync_enabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue