drm/nouveau: Don't pick an interlaced mode as the panel native mode.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 18 Jul 2010 14:19:16 +0000 (16:19 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 26 Jul 2010 01:42:04 +0000 (11:42 +1000)
Rescaling interlaced modes isn't going to work correctly, and even if
it did, come on, interlaced flat panels? are you pulling my leg?

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c

index 5070428..7f749d2 100644 (file)
@@ -506,7 +506,8 @@ nouveau_connector_native_mode(struct drm_connector *connector)
        int high_w = 0, high_h = 0, high_v = 0;
 
        list_for_each_entry(mode, &nv_connector->base.probed_modes, head) {
-               if (helper->mode_valid(connector, mode) != MODE_OK)
+               if (helper->mode_valid(connector, mode) != MODE_OK ||
+                   (mode->flags & DRM_MODE_FLAG_INTERLACE))
                        continue;
 
                /* Use preferred mode if there is one.. */