From 88be675c79b5317bbfbec9da239e1a40e23bff95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Mon, 23 Sep 2013 11:20:40 +0300 Subject: [PATCH] drm/i915: Add HSW CRT pipe_bpp "readout" support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CRT is limited to 8bpc on LPT. There's no register to read the information so just fill it from intel_crt_get_config(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_crt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index 6f101d5..f7c5aad 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c @@ -105,6 +105,9 @@ static void intel_crt_get_config(struct intel_encoder *encoder, pipe_config->adjusted_mode.flags |= flags; + if (HAS_PCH_LPT(dev_priv->dev)) + pipe_config->pipe_bpp = 24; + dotclock = pipe_config->port_clock; if (HAS_PCH_SPLIT(dev_priv->dev)) -- 1.8.1.5