diff options
author | Eric Anholt <eric@anholt.net> | 2006-11-01 12:23:50 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-11-01 12:23:50 -0800 |
commit | fb94c1210966f7875e5f034f10ea31c06c502c3a (patch) | |
tree | d7915f0f38b71d76cba50801aa7ed14b4ca3d442 /src/i830_dvo.c | |
parent | f30d7f912f36b110c3af7dc795e35456593781ab (diff) |
Move mode lists from per-pipe to per-output.
This should let RandR do the right thing in exposing the modes to userland.
As a side effect of getting this working, the SDVO pixel clock range code
was fixed and the mode valid tests for various outputs got extended. Also,
LVDS grew a get_modes for the fixed panel mode.
Note that we now no longer do automatic enabling of outputs at xrandr -s 0,
hotkey, or VT switch. That will be left to generic RandR code later. Also,
generic modes and user-defined modes are once again not validated into the
lists, so this is a regression there.
Diffstat (limited to 'src/i830_dvo.c')
-rw-r--r-- | src/i830_dvo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i830_dvo.c b/src/i830_dvo.c index c788e4f4..31fb76ba 100644 --- a/src/i830_dvo.c +++ b/src/i830_dvo.c @@ -96,6 +96,11 @@ static int i830_dvo_mode_valid(ScrnInfoPtr pScrn, I830OutputPtr output, DisplayModePtr pMode) { + if (pMode->Flags & V_DBLSCAN) + return MODE_NO_DBLESCAN; + + /* XXX: Validate clock range */ + if (output->i2c_drv->vid_rec->ModeValid(output->i2c_drv->dev_priv, pMode)) return MODE_OK; else |