From 8149681f2eac0af3b70a9457c5204e17da56142b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 16 Oct 2006 16:51:04 -0700 Subject: 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. --- src/i830_crt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/i830_crt.c') 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; -- cgit v1.2.3