drm/i915/glk: Enable pipe CSC
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 17 Feb 2017 12:06:29 +0000 (14:06 +0200)
committerAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 17 Feb 2017 15:15:01 +0000 (17:15 +0200)
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: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170217120630.6143-3-ander.conselvan.de.oliveira@intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_sprite.c

index 5443ba8430da78adbb5547f33e04ee87004539c0..b60373812d34180ac7dd9aeed40404730f22c623 100644 (file)
@@ -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 |=
index b16a295918036c969feb4b17b41010a0ede93d07..27e0752d157882089f3fc79c9a7505d80b8c873c 100644 (file)
@@ -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 |=