NV50: LVDS always needs some kind of gpu scaling
authorMaarten Maathuis <madman2003@gmail.com>
Sun, 20 Jul 2008 12:55:59 +0000 (14:55 +0200)
committerMaarten Maathuis <madman2003@gmail.com>
Sun, 20 Jul 2008 12:55:59 +0000 (14:55 +0200)
linux-core/nv50_kms_wrapper.c

index 009972c..6e0805f 100644 (file)
@@ -1119,6 +1119,10 @@ static int nv50_kms_connector_set_property(struct drm_connector *drm_connector,
                                break;
                }
 
                                break;
                }
 
+               /* LVDS always needs gpu scaling */
+               if (connector->type == CONNECTOR_LVDS && internal_value == SCALE_NON_GPU)
+                       return -EINVAL;
+
                connector->scaling_mode = internal_value;
 
                if (drm_connector->encoder && drm_connector->encoder->crtc)
                connector->scaling_mode = internal_value;
 
                if (drm_connector->encoder && drm_connector->encoder->crtc)