drm/atomic: Don't fixup modes that haven't been reset

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
Dave Stevenson
2021-01-07 16:30:55 +00:00
committed by Dom Cobley
parent e8e6b21545
commit 2e7d1fa2e2

View File

@@ -430,6 +430,11 @@ mode_fixup(struct drm_atomic_state *state)
new_crtc_state = new_crtc_state =
drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); drm_atomic_get_new_crtc_state(state, new_conn_state->crtc);
if (!new_crtc_state->mode_changed &&
!new_crtc_state->connectors_changed) {
continue;
}
/* /*
* Each encoder has at most one connector (since we always steal * Each encoder has at most one connector (since we always steal
* it away), so we won't call ->mode_fixup twice. * it away), so we won't call ->mode_fixup twice.