]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Enable pipe gamma for the overlay
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Oct 2019 11:30:35 +0000 (13:30 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 May 2020 17:12:08 +0000 (20:12 +0300)
We pass the plane data through the pipe gamma for all the other
planes. Can't see why we should treat the overlay differently,
so let's enable pipe gamma for it as well.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028113036.27553-5-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/display/intel_overlay.c

index c2d89d7f8852c3d10b1ecabdd28f2789fc9ad98f..84270e65fb525c50d0eff331c84c180e7997653a 100644 (file)
@@ -792,6 +792,8 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay,
                if (crtc_state->gamma_enable &&
                    crtc_state->gamma_mode == GAMMA_MODE_MODE_8BIT)
                        oconfig |= OCONF_CC_OUT_8BIT;
+               if (crtc_state->gamma_enable)
+                       oconfig |= OCONF_GAMMA2_ENABLE;
                if (IS_GEN(dev_priv, 4))
                        oconfig |= OCONF_CSC_MODE_BT709;
                oconfig |= pipe == 0 ?