50f2416
From 50552b0ee81b23b997bebd798b19b4a7e234a55f Mon Sep 17 00:00:00 2001
50f2416
From: Adam Jackson <ajax@redhat.com>
50f2416
Date: Fri, 21 Aug 2009 13:51:45 -0400
50f2416
Subject: [PATCH] tweak default mode list yet again
50f2416
50f2416
---
50f2416
 hw/xfree86/modes/xf86Crtc.c |    5 ++++-
50f2416
 1 files changed, 4 insertions(+), 1 deletions(-)
50f2416
50f2416
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
50f2416
index 4f14a75..c6fd910 100644
50f2416
--- a/hw/xfree86/modes/xf86Crtc.c
50f2416
+++ b/hw/xfree86/modes/xf86Crtc.c
50f2416
@@ -1567,7 +1567,7 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
50f2416
 	int		    min_clock = 0;
50f2416
 	int		    max_clock = 0;
50f2416
 	double		    clock;
50f2416
-	Bool                add_default_modes = TRUE;
50f2416
+	Bool                add_default_modes;
50f2416
 	enum { sync_config, sync_edid, sync_default } sync_source = sync_default;
50f2416
 	
50f2416
 	while (output->probed_modes != NULL)
50f2416
@@ -1610,6 +1610,9 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
50f2416
 	}
50f2416
 	
50f2416
 	output_modes = (*output->funcs->get_modes) (output);
50f2416
+
50f2416
+	/* if the driver found modes, don't second-guess it */
50f2416
+	add_default_modes = (output_modes == NULL);
50f2416
 	
50f2416
 	edid_monitor = output->MonInfo;
50f2416
 	
50f2416
-- 
50f2416
1.6.4
50f2416