diff options
author | Eric Anholt <eric@anholt.net> | 2006-10-16 16:51:04 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-10-16 16:51:04 -0700 |
commit | 8149681f2eac0af3b70a9457c5204e17da56142b (patch) | |
tree | a7634dbbf81c73d87324e01d0169dbbf8f940667 /src/i830_crt.c | |
parent | 1838671476875e9f5b3dde235eacf9fb43afb66c (diff) |
Add a per-output mode-valid method.
This is currently disconnected, but will be used in more overhaul work.
This should be where any output limitations, such as clocks, resolution,
scaling limits, or other options, are validated. Other limitations, such as
chipset resolution limits, CRTC clock limits, etc. should be elsewhere.
Diffstat (limited to 'src/i830_crt.c')
-rw-r--r-- | src/i830_crt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/i830_crt.c b/src/i830_crt.c index 1cf1687e..7721a0c2 100644 --- a/src/i830_crt.c +++ b/src/i830_crt.c @@ -76,6 +76,13 @@ i830_crt_restore(ScrnInfoPtr pScrn, I830OutputPtr output) OUTREG(ADPA, pI830->saveADPA); } +static int +i830_crt_mode_valid(ScrnInfoPtr pScrn, I830OutputPtr output, + DisplayModePtr pMode) +{ + return MODE_OK; +} + static void i830_crt_pre_set_mode(ScrnInfoPtr pScrn, I830OutputPtr output, DisplayModePtr pMode) @@ -114,6 +121,7 @@ i830_crt_init(ScrnInfoPtr pScrn) pI830->output[pI830->num_outputs].dpms = i830_crt_dpms; pI830->output[pI830->num_outputs].save = i830_crt_save; pI830->output[pI830->num_outputs].restore = i830_crt_restore; + pI830->output[pI830->num_outputs].mode_valid = i830_crt_mode_valid; pI830->output[pI830->num_outputs].pre_set_mode = i830_crt_pre_set_mode; pI830->output[pI830->num_outputs].post_set_mode = i830_crt_post_set_mode; |