[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: [PATCH] i810: Remove duplicate probed mode if same as fixed mode
From: Tony Lindgren <tony () atomide ! com>
Date: 2007-01-29 6:49:08
Message-ID: 20070129064907.GB32737 () atomide ! com
[Download RAW message or body]
If a probed mode is same as the fixed mode from BIOS,
it will appear twice. This patch removes the duplicate
probed mode.
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -149,6 +149,14 @@ i830_lvds_mode_valid(xf86OutputPtr output, DisplayModePtr pMode)
if (pFixedMode)
{
+ if (!(pMode->type & M_T_PREFERRED) &&
+ xf86ModesEqual(pFixedMode, pMode)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Not using probed mode \"%s\" (same as fixed mode)\n",
+ pMode->name);
+ return MODE_BAD;
+ }
+
if (pMode->HDisplay > pFixedMode->HDisplay)
return MODE_PANEL;
if (pMode->VDisplay > pFixedMode->VDisplay)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic