Skip to content

Commit 949b452

Browse files
chadmedjannau
authored andcommitted
drm: apple: Force colour management changes on CRTC enable
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
1 parent f6fafa4 commit 949b452

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/apple/apple_drv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ static void apple_crtc_atomic_enable(struct drm_crtc *crtc,
111111
dcp_poweron(apple_crtc->dcp);
112112
}
113113

114-
if (crtc_state->active)
114+
if (crtc_state->active) {
115+
/* Force the CTM to be set on first swap */
116+
crtc_state->color_mgmt_changed = true;
115117
dcp_crtc_atomic_modeset(crtc, state);
118+
}
116119
}
117120

118121
static void apple_crtc_atomic_disable(struct drm_crtc *crtc,

0 commit comments

Comments
 (0)