Skip to content

Commit 954529a

Browse files
committed
fixup! drm: apple: Force colour management changes on CRTC enable
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 949b452 commit 954529a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/gpu/drm/apple/apple_drv.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ static void apple_crtc_atomic_enable(struct drm_crtc *crtc,
109109
if (crtc_state->active_changed && crtc_state->active) {
110110
struct apple_crtc *apple_crtc = to_apple_crtc(crtc);
111111
dcp_poweron(apple_crtc->dcp);
112-
}
113-
114-
if (crtc_state->active) {
115112
/* Force the CTM to be set on first swap */
116113
crtc_state->color_mgmt_changed = true;
117-
dcp_crtc_atomic_modeset(crtc, state);
118114
}
115+
116+
if (crtc_state->active)
117+
dcp_crtc_atomic_modeset(crtc, state);
119118
}
120119

121120
static void apple_crtc_atomic_disable(struct drm_crtc *crtc,

0 commit comments

Comments
 (0)