aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_connector.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-12-22 03:19:45 -0500
committerBen Skeggs <bskeggs@redhat.com>2015-01-21 21:15:00 -0500
commit0ea5fe8a83c2d1d59bcf1a59ba685a6452c41205 (patch)
tree75bd1718d3626b322bf34bc81c4bb3eae8edfad7 /drivers/gpu/drm/nouveau/nouveau_connector.c
parent7d95216e1ca4be5964ce3f1949c07fb87bef0565 (diff)
drm/nouveau/kms: default to panel scaling, except for fixed panels prior to nv50
On NV50 and up, we'll allow fixed panels to use EDID-provided modes without the GPU scaler, and force scaling (even for NONE) otherwise. 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.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index 938de24da7dd..9c871f93cc1e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -1199,14 +1199,18 @@ nouveau_connector_create(struct drm_device *dev, int index)
1199 1199
1200 /* default scaling mode */ 1200 /* default scaling mode */
1201 switch (nv_connector->type) { 1201 switch (nv_connector->type) {
1202 case DCB_CONNECTOR_TV_0: 1202 case DCB_CONNECTOR_LVDS:
1203 case DCB_CONNECTOR_TV_1: 1203 case DCB_CONNECTOR_LVDS_SPWG:
1204 case DCB_CONNECTOR_TV_3: 1204 case DCB_CONNECTOR_eDP:
1205 case DCB_CONNECTOR_VGA: 1205 /* see note in nouveau_connector_set_property() */
1206 if (disp->disp.oclass < NV50_DISP) {
1207 nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN;
1208 break;
1209 }
1206 nv_connector->scaling_mode = DRM_MODE_SCALE_NONE; 1210 nv_connector->scaling_mode = DRM_MODE_SCALE_NONE;
1207 break; 1211 break;
1208 default: 1212 default:
1209 nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN; 1213 nv_connector->scaling_mode = DRM_MODE_SCALE_NONE;
1210 break; 1214 break;
1211 } 1215 }
1212 1216