Upstream commit a6a1785

I would like this backported to v3.2, v3.3 and v3.4

v3.2 requires patch 6322175 and c843536 as pre-depend
v3.3 requires c843536

---

commit a6a17859f1bdf607650ee055101f54c5f207762b
Author: Ben Skeggs <[email protected]>
Date:   Sat May 5 00:39:21 2012 +1000

    drm/nouveau/disp: fix dithering not being enabled on some eDP macbooks
    
    Signed-off-by: Ben Skeggs <[email protected]>

diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c 
b/drivers/gpu/drm/nouveau/nouveau_connector.c
index fa86035..7b11edb 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)
        if (nv_connector->edid && connector->display_info.bpc)
                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->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) {
                connector->display_info.bpc = 8;
                return;


--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to