Commit c8435362 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie
Browse files

drm/nouveau: default to 8bpc for non-LVDS panels if EDID isn't useful



A few reports of bad behaviour since the autodetection defaulted to 6bpc,
lets fix this.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent c61205b2
...@@ -654,10 +654,13 @@ nouveau_connector_detect_depth(struct drm_connector *connector) ...@@ -654,10 +654,13 @@ nouveau_connector_detect_depth(struct drm_connector *connector)
if (nv_connector->edid && connector->display_info.bpc) if (nv_connector->edid && connector->display_info.bpc)
return; return;
/* if not, we're out of options unless we're LVDS, default to 6bpc */ /* if not, we're out of options unless we're LVDS, default to 8bpc */
connector->display_info.bpc = 6; if (nv_encoder->dcb->type != OUTPUT_LVDS) {
if (nv_encoder->dcb->type != OUTPUT_LVDS) connector->display_info.bpc = 8;
return; return;
}
connector->display_info.bpc = 6;
/* LVDS: panel straps */ /* LVDS: panel straps */
if (bios->fp_no_ddc) { if (bios->fp_no_ddc) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment