mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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:
committed by
Dom Cobley
parent
e8e6b21545
commit
2e7d1fa2e2
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user