Commit 5a8bd352 authored by Ben Skeggs's avatar Ben Skeggs Committed by Ben Hutchings

drm/nouveau/disp: fix dithering not being enabled on some eDP macbooks

commit a6a17859 upstream.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
[Maarten Lankhorst backported to 3.2,
 changing nv_connector->type to nv_connector->dcb->type]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 863b3ff8
...@@ -616,7 +616,13 @@ nouveau_connector_detect_depth(struct drm_connector *connector) ...@@ -616,7 +616,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 8bpc */ /* EDID 1.4 is *supposed* to be supported on eDP, but, Apple... */
if (nv_connector->dcb->type == DCB_CONNECTOR_eDP) {
connector->display_info.bpc = 6;
return;
}
/* we're out of options unless we're LVDS, default to 8bpc */
if (nv_encoder->dcb->type != OUTPUT_LVDS) { if (nv_encoder->dcb->type != OUTPUT_LVDS) {
connector->display_info.bpc = 8; connector->display_info.bpc = 8;
return; return;
......
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