summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-mobile.amr.corp.intel.com>2007-03-06 10:12:42 -0800
committerJesse Barnes <jbarnes@jbarnes-mobile.amr.corp.intel.com>2007-03-06 10:12:42 -0800
commit703c6fc0142ffc600285c13fe6dafecf988c0a1d (patch)
tree460a2be80e683ec80c424c6d33bf650b5582402f
parent58ee31d015cf8bec0edca62a46faec0b3505be8c (diff)
Update for new CRTC resize hooks.
-rw-r--r--src/radeon_driver.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 8de9eefb..a5805832 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2542,6 +2542,18 @@ RADEONProbeDDC(ScrnInfoPtr pScrn, int indx)
}
}
+static Bool
+RADEONCRTCResize(ScrnInfoPtr scrn, int width, int height)
+{
+ scrn->virtualX = width;
+ scrn->virtualY = height;
+ return TRUE;
+}
+
+static const xf86CrtcConfigFuncsRec RADEONCRTCResizeFuncs = {
+ RADEONCRTCResize
+};
+
_X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
{
xf86CrtcConfigPtr xf86_config;
@@ -2651,7 +2663,7 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
pScrn->monitor = pScrn->confScreen->monitor;
/* Allocate an xf86CrtcConfig */
- xf86CrtcConfigInit (pScrn);
+ xf86CrtcConfigInit (pScrn, &RADEONCRTCResizeFuncs);
xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
@@ -2779,7 +2791,7 @@ _X_EXPORT Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
goto fail;
- if (!xf86InitialConfiguration (pScrn))
+ if (!xf86InitialConfiguration (pScrn, FALSE))
{
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No valid modes.\n");
goto fail;