mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 16:46:39 +07:00
drm/nouveau/kms: avoid adding scaler-only modes the same as the panel's native mode
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
576f79116e
commit
f0d15402a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user