xfree86: Remove TargetRefresh option
This was a vestige from the days before we'd make the mode list from the EDID data, and from CRT technology when you could reasonably assume that higher refresh rates were better. Also it did not function as advertised, acting as a high-pass filter instead of a band-pass.
This commit is contained in:
parent
b4ee3bf700
commit
1a8c89683f
|
@ -1863,16 +1863,6 @@ configScreen(confScreenPtr screenp, XF86ConfScreenPtr conf_screen, int scrnum,
|
|||
|
||||
bzero(&defMon, sizeof(defMon));
|
||||
defMon.mon_identifier = "<default monitor>";
|
||||
/*
|
||||
* TARGET_REFRESH_RATE may be defined to effectively limit the
|
||||
* default resolution to the largest that has a "good" refresh
|
||||
* rate.
|
||||
*/
|
||||
#ifdef TARGET_REFRESH_RATE
|
||||
defMon.mon_option_lst = xf86ReplaceRealOption(defMon.mon_option_lst,
|
||||
"TargetRefresh",
|
||||
TARGET_REFRESH_RATE);
|
||||
#endif
|
||||
if (!configMonitor(screenp->monitor, &defMon))
|
||||
return FALSE;
|
||||
defaultMonitor = TRUE;
|
||||
|
|
|
@ -1200,7 +1200,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
|||
PixmapFormatRec *BankFormat;
|
||||
ClockRangePtr cp;
|
||||
ClockRangesPtr storeClockRanges;
|
||||
double targetRefresh = 0.0;
|
||||
int numTimings = 0;
|
||||
range hsync[MAX_HSYNC];
|
||||
range vrefresh[MAX_VREFRESH];
|
||||
|
@ -1459,26 +1458,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Go through the mode pool and see if any modes match the target
|
||||
* refresh rate, (if specified). If no modes match, abandon the target.
|
||||
*/
|
||||
targetRefresh = xf86SetRealOption(scrp->options,
|
||||
"TargetRefresh", 0.0);
|
||||
if (targetRefresh > 0.0) {
|
||||
for (p = scrp->modePool; p != NULL; p = p->next) {
|
||||
if (xf86ModeVRefresh(p) > targetRefresh * (1.0 - SYNC_TOLERANCE))
|
||||
break;
|
||||
}
|
||||
if (!p)
|
||||
targetRefresh = 0.0;
|
||||
}
|
||||
|
||||
if (targetRefresh > 0.0) {
|
||||
xf86DrvMsg(scrp->scrnIndex, X_CONFIG,
|
||||
"Target refresh rate is %.1f Hz\n", targetRefresh);
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate one entry in scrp->modes for each named mode.
|
||||
*/
|
||||
|
@ -1552,14 +1531,6 @@ xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
|||
((double)q->HTotal / (double)q->HDisplay) < 1.15)
|
||||
continue;
|
||||
|
||||
/*
|
||||
* If there is a target refresh rate, skip modes that
|
||||
* don't match up.
|
||||
*/
|
||||
if (xf86ModeVRefresh(q) <
|
||||
(1.0 - SYNC_TOLERANCE) * targetRefresh)
|
||||
continue;
|
||||
|
||||
if (modeSize < (q->HDisplay * q->VDisplay)) {
|
||||
r = q;
|
||||
modeSize = q->HDisplay * q->VDisplay;
|
||||
|
|
|
@ -1389,11 +1389,6 @@ This option controls whether the video card should drive the sync signal
|
|||
on the green color pin. Not all cards support this option, and most
|
||||
monitors do not require it. The default is off.
|
||||
.TP 7
|
||||
.BI "Option " "\*qTargetRefresh\*q " \*qrate\*q
|
||||
This optional entry specifies the vertical refresh rate that the server
|
||||
should aim for when selecting video modes. Without this option, the
|
||||
default is to prefer modes with higher refresh rates.
|
||||
.TP 7
|
||||
.BI "Option " "\*qPreferredMode\*q " \*qstring\*q
|
||||
This optional entry specifies a mode to be marked as the preferred initial mode
|
||||
of the monitor.
|
||||
|
|
Loading…
Reference in New Issue