提交 22ce5628 编写于 作者: T Thulasimani,Sivakumar 提交者: Daniel Vetter

drm/i915: read bpp from vbt only for older panels

BPP bits defined in VBT should be used only on panels whose
edid version is 1.3 or older. EDID version 1.4 introduced offsets
where bpp is defined and read into display_info, hence bpp from
VBT will be used only when bpc in display_info is zero.

v2: use display_info.bpc for deciding when to use vbt_bpp (Jani)
Signed-off-by: NSivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Reviewed-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 d37ae19a
...@@ -1409,7 +1409,10 @@ intel_dp_compute_config(struct intel_encoder *encoder, ...@@ -1409,7 +1409,10 @@ intel_dp_compute_config(struct intel_encoder *encoder,
* bpc in between. */ * bpc in between. */
bpp = pipe_config->pipe_bpp; bpp = pipe_config->pipe_bpp;
if (is_edp(intel_dp)) { if (is_edp(intel_dp)) {
if (dev_priv->vbt.edp_bpp && dev_priv->vbt.edp_bpp < bpp) {
/* Get bpp from vbt only for panels that dont have bpp in edid */
if (intel_connector->base.display_info.bpc == 0 &&
(dev_priv->vbt.edp_bpp && dev_priv->vbt.edp_bpp < bpp)) {
DRM_DEBUG_KMS("clamping bpp for eDP panel to BIOS-provided %i\n", DRM_DEBUG_KMS("clamping bpp for eDP panel to BIOS-provided %i\n",
dev_priv->vbt.edp_bpp); dev_priv->vbt.edp_bpp);
bpp = dev_priv->vbt.edp_bpp; bpp = dev_priv->vbt.edp_bpp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册