]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Fixup non-24bpp support for VGA screens on Haswell
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Apr 2013 09:24:39 +0000 (11:24 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Apr 2013 12:46:30 +0000 (14:46 +0200)
The LPT PCH only supports 8bpc, so we need to force the pipe bpp
to the right value.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_crt.c

index c063b9f0dd519e9a2ba167b585f8f78ba6c49544..991e53047e1dede413b8703de2b9d577e9d23e6a 100644 (file)
@@ -214,6 +214,10 @@ static bool intel_crt_compute_config(struct intel_encoder *encoder,
        if (HAS_PCH_SPLIT(dev))
                pipe_config->has_pch_encoder = true;
 
+       /* LPT FDI RX only supports 8bpc. */
+       if (HAS_PCH_LPT(dev))
+               pipe_config->pipe_bpp = 24;
+
        return true;
 }