summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang, FrankR <FrankR.Huang@amd.com>2010-10-28 15:17:19 +0800
committerMartin-Éric Racine <q-funk@iki.fi>2010-10-28 12:01:19 +0300
commitfab58e111b6655602b4f739260a01247ff478f35 (patch)
tree125e64f718882d9353c0cb9d828567992ebba21d
parentfb72a210d7de61c49fc66aafa057d8c6a028b907 (diff)
Simplify the mode_valid function
Signed-off-by: Frank Huang<frankr.huang@amd.com>
-rw-r--r--src/lx_output.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/src/lx_output.c b/src/lx_output.c
index cd1809b..17634d4 100644
--- a/src/lx_output.c
+++ b/src/lx_output.c
@@ -152,35 +152,8 @@ lx_output_restore(xf86OutputPtr output)
static int
lx_output_mode_valid(xf86OutputPtr output, DisplayModePtr pMode)
{
- ScrnInfoPtr pScrni = output->scrn;
- GeodeRec *pGeode = GEODEPTR(pScrni);
-
- /* DCON Panel specific resolution - OLPC's one */
- if (pGeode->Output & OUTPUT_DCON) {
- if (pGeode->panelMode->HDisplay == 1200 &&
- pGeode->panelMode->VDisplay == 900)
- return MODE_OK;
- }
-
- if ((pGeode->Output & OUTPUT_PANEL) &&
- gfx_is_panel_mode_supported(pGeode->panelMode->HDisplay,
- pGeode->panelMode->VDisplay,
- pMode->HDisplay,
- pMode->VDisplay,
- pScrni->bitsPerPixel) != -1) {
-
- return MODE_OK;
- }
-
- if (gfx_is_display_mode_supported(pMode->HDisplay,
- pMode->VDisplay,
- pScrni->bitsPerPixel,
- GeodeGetRefreshRate(pMode)) != -1) {
- return MODE_OK;
- }
-
- if (pMode->type & (M_T_DRIVER | M_T_PREFERRED))
- return MODE_OK;
+ /* FIXME: Mode validation code should be placed here for the modes
+ * that geode can not support */
return MODE_OK;
}