Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bb56da7 authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira
Browse files

drm/i915/glk: Enable pipe CSC



Now that the pre-csc degamma table is set up correctly in Geminilake,
pipe CSC can be enabled without causing a black screen.

v2: Rebase.
Signed-off-by: default avatarAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170217120630.6143-3-ander.conselvan.de.oliveira@intel.com
parent 8d371db4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3327,6 +3327,7 @@ static void skylake_update_primary_plane(struct drm_plane *plane,
	if (IS_GEMINILAKE(dev_priv)) {
		I915_WRITE(PLANE_COLOR_CTL(pipe, plane_id),
			   PLANE_COLOR_PIPE_GAMMA_ENABLE |
			   PLANE_COLOR_PIPE_CSC_ENABLE |
			   PLANE_COLOR_PLANE_GAMMA_DISABLE);
	} else {
		plane_ctl |=
+1 −0
Original line number Diff line number Diff line
@@ -224,6 +224,7 @@ skl_update_plane(struct drm_plane *drm_plane,
	if (IS_GEMINILAKE(dev_priv)) {
		I915_WRITE(PLANE_COLOR_CTL(pipe, plane_id),
			   PLANE_COLOR_PIPE_GAMMA_ENABLE |
			   PLANE_COLOR_PIPE_CSC_ENABLE |
			   PLANE_COLOR_PLANE_GAMMA_DISABLE);
	} else {
		plane_ctl |=