Commit 0ea5fe8a authored by Ben Skeggs's avatar Ben Skeggs
Browse files

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: default avatarBen Skeggs <bskeggs@redhat.com>
parent 7d95216e
...@@ -1199,14 +1199,18 @@ nouveau_connector_create(struct drm_device *dev, int index) ...@@ -1199,14 +1199,18 @@ nouveau_connector_create(struct drm_device *dev, int index)
/* default scaling mode */ /* default scaling mode */
switch (nv_connector->type) { switch (nv_connector->type) {
case DCB_CONNECTOR_TV_0: case DCB_CONNECTOR_LVDS:
case DCB_CONNECTOR_TV_1: case DCB_CONNECTOR_LVDS_SPWG:
case DCB_CONNECTOR_TV_3: case DCB_CONNECTOR_eDP:
case DCB_CONNECTOR_VGA: /* see note in nouveau_connector_set_property() */
if (disp->disp.oclass < NV50_DISP) {
nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN;
break;
}
nv_connector->scaling_mode = DRM_MODE_SCALE_NONE; nv_connector->scaling_mode = DRM_MODE_SCALE_NONE;
break; break;
default: default:
nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN; nv_connector->scaling_mode = DRM_MODE_SCALE_NONE;
break; break;
} }
......
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