summaryrefslogtreecommitdiff
path: root/src/i830_crt.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-12-28 16:27:22 -0800
committerKeith Packard <keithp@neko.keithp.com>2006-12-28 16:27:22 -0800
commitbb238a8fc234a8e5e86cd2f42c58c9816a15732c (patch)
tree247723448fe816dbf04c2dbc43d16784f667616a /src/i830_crt.c
parentc87462ded20904dbc6c6cbdb9547523b75fe5471 (diff)
Configuration support: per-output mode lines, preferred mode.
Add the modelines specified in the per-output monitor and all of the default modes to the list to each output. Prune the resulting list to specified sync limits and virtual sizes. Sort the resulting mode list on preferred/size/refresh.
Diffstat (limited to 'src/i830_crt.c')
-rw-r--r--src/i830_crt.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/i830_crt.c b/src/i830_crt.c
index 3be10ecc..85c25de1 100644
--- a/src/i830_crt.c
+++ b/src/i830_crt.c
@@ -328,38 +328,6 @@ i830_crt_detect(xf86OutputPtr output)
return XF86OutputStatusUnknown;
}
-static DisplayModePtr
-i830_crt_get_modes(xf86OutputPtr output)
-{
- ScrnInfoPtr pScrn = output->scrn;
- DisplayModePtr modes;
- MonRec fixed_mon;
-
- modes = i830_ddc_get_modes(output);
- if (modes != NULL)
- return modes;
-
- if ((*output->funcs->detect)(output) == XF86OutputStatusDisconnected)
- return NULL;
-
- /* We've got a potentially-connected monitor that we can't DDC. Return a
- * fixed set of VESA plus user modes for a presumed multisync monitor with
- * some reasonable limits.
- */
- fixed_mon.nHsync = 1;
- fixed_mon.hsync[0].lo = 31.0;
- fixed_mon.hsync[0].hi = 100.0;
- fixed_mon.nVrefresh = 1;
- fixed_mon.vrefresh[0].lo = 50.0;
- fixed_mon.vrefresh[0].hi = 70.0;
-
- modes = xf86DuplicateModes(pScrn, pScrn->monitor->Modes);
- i830xf86ValidateModesSync(pScrn, modes, &fixed_mon);
- i830xf86PruneInvalidModes(pScrn, &modes, TRUE);
-
- return modes;
-}
-
static void
i830_crt_destroy (xf86OutputPtr output)
{
@@ -375,7 +343,7 @@ static const xf86OutputFuncsRec i830_crt_output_funcs = {
.mode_fixup = i830_crt_mode_fixup,
.mode_set = i830_crt_mode_set,
.detect = i830_crt_detect,
- .get_modes = i830_crt_get_modes,
+ .get_modes = i830_ddc_get_modes,
.destroy = i830_crt_destroy
};