aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_connector.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-05-04 10:39:21 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-05-24 02:56:26 -0400
commita6a17859f1bdf607650ee055101f54c5f207762b (patch)
treefcee3566bfb597111a957406e84171fd79c0e8e2 /drivers/gpu/drm/nouveau/nouveau_connector.c
parent0c75f332e50949b62add5d5fc3f7ee4829c8972a (diff)
drm/nouveau/disp: fix dithering not being enabled on some eDP macbooks
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_connector.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index fa860358add1..7b11edb077d0 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -654,7 +654,13 @@ nouveau_connector_detect_depth(struct drm_connector *connector)
654 if (nv_connector->edid && connector->display_info.bpc) 654 if (nv_connector->edid && connector->display_info.bpc)
655 return; 655 return;
656 656
657 /* if not, we're out of options unless we're LVDS, default to 8bpc */ 657 /* EDID 1.4 is *supposed* to be supported on eDP, but, Apple... */
658 if (nv_connector->type == DCB_CONNECTOR_eDP) {
659 connector->display_info.bpc = 6;
660 return;
661 }
662
663 /* we're out of options unless we're LVDS, default to 8bpc */
658 if (nv_encoder->dcb->type != OUTPUT_LVDS) { 664 if (nv_encoder->dcb->type != OUTPUT_LVDS) {
659 connector->display_info.bpc = 8; 665 connector->display_info.bpc = 8;
660 return; 666 return;