aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-07-18 10:19:16 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-07-25 21:42:04 -0400
commita5afb7758fcf558d6a8cd2546bc18aeedfc6192a (patch)
treec879d698674318cd2e87218cb9ae4636888823f1
parenteae6192a9d0d31f657b50873789175794767bf38 (diff)
drm/nouveau: Don't pick an interlaced mode as the panel native mode.
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>
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index 50704287a8c2..7f749d281df9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -506,7 +506,8 @@ nouveau_connector_native_mode(struct drm_connector *connector)
506 int high_w = 0, high_h = 0, high_v = 0; 506 int high_w = 0, high_h = 0, high_v = 0;
507 507
508 list_for_each_entry(mode, &nv_connector->base.probed_modes, head) { 508 list_for_each_entry(mode, &nv_connector->base.probed_modes, head) {
509 if (helper->mode_valid(connector, mode) != MODE_OK) 509 if (helper->mode_valid(connector, mode) != MODE_OK ||
510 (mode->flags & DRM_MODE_FLAG_INTERLACE))
510 continue; 511 continue;
511 512
512 /* Use preferred mode if there is one.. */ 513 /* Use preferred mode if there is one.. */