diff options
author | Dave Airlie <airlied@ppcg5.localdomain> | 2007-05-06 17:26:51 +1000 |
---|---|---|
committer | Dave Airlie <airlied@ppcg5.localdomain> | 2007-05-06 17:26:51 +1000 |
commit | 4d9a8f1cdafcbb609ccabba56e2dccec103337f1 (patch) | |
tree | 63bfe71f3edf0b2016122887ac41d1cad37a5b42 | |
parent | afcf8ce4b418f53e1dce805809f200cf2c16d331 (diff) | |
download | xorg-driver-xf86-video-nouveau-4d9a8f1cdafcbb609ccabba56e2dccec103337f1.tar.gz |
use newer randr setup code
-rw-r--r-- | src/nv_driver.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index 6bc4135..9899424 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -540,22 +540,6 @@ NVFreeRec(ScrnInfoPtr pScrn) pScrn->driverPrivate = NULL; } -static Bool -NvCreateScreenResources (ScreenPtr pScreen) -{ - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; - NVPtr pNv = NVPTR(pScrn); - - pScreen->CreateScreenResources = pNv->CreateScreenResources; - if (!(*pScreen->CreateScreenResources)(pScreen)) - return FALSE; - - if (!xf86RandR12CreateScreenResources (pScreen)) - return FALSE; - - return TRUE; -} - static pointer nouveauSetup(pointer module, pointer opts, int *errmaj, int *errmin) { @@ -1593,6 +1577,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags) NvSetupOutputs(pScrn); +#if 0 /* Do an initial detection of the outputs while none are configured on yet. * This will give us some likely legitimate response for later if both * pipes are already allocated and we're asked to do a detect. @@ -1602,6 +1587,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags) output->status = (*output->funcs->detect) (output); } +#endif if (!xf86InitialConfiguration (pScrn, FALSE)) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No valid modes.\n"); @@ -2178,13 +2164,12 @@ NVScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) xf86DPMSInit(pScreen, xf86DPMSSet, 0); - xf86DisableRandR(); /* Disable built-in RandR extension */ - xf86RandR12Init (pScreen); - xf86RandR12SetRotations (pScreen, RR_Rotate_0); /* only 0 degrees for I965G */ + if (!xf86CrtcScreenInit (pScreen)) + return FALSE; + pNv->PointerMoved = pScrn->PointerMoved; pScrn->PointerMoved = NVPointerMoved; - pNv->CreateScreenResources = pScreen->CreateScreenResources; - pScreen->CreateScreenResources = NvCreateScreenResources; + if(pNv->ShadowFB) { RefreshAreaFuncPtr refreshArea = NVRefreshArea; |