diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-12-22 17:28:35 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-01-22 12:14:58 +1000 |
commit | f0d15402a38654a987e5ebb844d06db4a8f98435 (patch) | |
tree | 8ccd940928d69e73daf4918f23c660a45cdab491 /drivers | |
parent | 576f79116ee8ed6f41f0f9f1fc295eaad5d5aeee (diff) | |
download | op-kernel-dev-f0d15402a38654a987e5ebb844d06db4a8f98435.zip op-kernel-dev-f0d15402a38654a987e5ebb844d06db4a8f98435.tar.gz |
drm/nouveau/kms: avoid adding scaler-only modes the same as the panel's native mode
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_connector.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index d13f50d..660d0e7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -672,7 +672,9 @@ nouveau_connector_scaler_modes_add(struct drm_connector *connector) while (mode->hdisplay) { if (mode->hdisplay <= native->hdisplay && - mode->vdisplay <= native->vdisplay) { + mode->vdisplay <= native->vdisplay && + (mode->hdisplay != native->hdisplay || + mode->vdisplay != native->vdisplay)) { m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, drm_mode_vrefresh(native), false, false, false); |