Commit f0d15402 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms: avoid adding scaler-only modes the same as the panel's native mode

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 576f7911
...@@ -672,7 +672,9 @@ nouveau_connector_scaler_modes_add(struct drm_connector *connector) ...@@ -672,7 +672,9 @@ nouveau_connector_scaler_modes_add(struct drm_connector *connector)
while (mode->hdisplay) { while (mode->hdisplay) {
if (mode->hdisplay <= native->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, m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay,
drm_mode_vrefresh(native), false, drm_mode_vrefresh(native), false,
false, false); false, false);
......
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