diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-05-12 15:37:44 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-05-12 15:37:44 -0700 |
commit | 2cd6c8fa2321ca217ef89db1027dbe9e716ad7aa (patch) | |
tree | 13d0f34e751be2f2aa9e694fc34e7bd0ce6881c5 /src/i830_driver.c | |
parent | 88558ebeed12d6cefd73bba0ddac3c043861ac89 (diff) |
Revert internal shadow module changes back like master, along with RandR
initialization. RandR initialization retains the no-rotation setting for BW.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 53 |
1 files changed, 17 insertions, 36 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index f4cdfdcf..8671e5ae 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -5372,44 +5372,25 @@ I830BIOSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pI830->CloseScreen = pScreen->CloseScreen; pScreen->CloseScreen = I830BIOSCloseScreen; -#if 1 /* ROTATION */ - { - Bool init = TRUE; - - if (!xf86LoadSubModule(pScrn, "intel_randr")) - init = FALSE; - -#if 0 - if (!xf86LoadSubModule(pScrn, "i830_damage")) - init = FALSE; - - if (!xf86LoadSubModule(pScrn, "i830_shadow")) - init = FALSE; -#endif - - if (init && xf86LoaderCheckSymbol("I830RandRInit")) { - Bool (*I830RandRInit)(ScreenPtr pScreen, int rotation) = NULL; - - I830RandRInit = LoaderSymbol("I830RandRInit"); - - if (I830RandRInit) { - xf86DisableRandR(); /* Disable built-in RandR extension */ - I830shadowSetup(pScreen); - if (IS_BROADWATER(pI830)) - /* only 0 degrees for Broadwater */ - (*I830RandRInit)(pScreen, RR_Rotate_0); - else - /* support all rotations */ - (*I830RandRInit)(pScreen, RR_Rotate_0 | RR_Rotate_90 | RR_Rotate_180 | RR_Rotate_270); - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Intel: RandR enabled, ignore the following RandR disabled message.\n"); - pI830->PointerMoved = pScrn->PointerMoved; - pScrn->PointerMoved = I830PointerMoved; - pI830->CreateScreenResources = pScreen->CreateScreenResources; - pScreen->CreateScreenResources = I830CreateScreenResources; - } + if (pI830->shadowReq.minorversion >= 1) { + /* Rotation */ + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "RandR enabled, ignore the following RandR disabled message.\n"); + xf86DisableRandR(); /* Disable built-in RandR extension */ + shadowSetup(pScreen); + /* support all rotations */ + if (IS_BROADWATER(pI830)) { + I830RandRInit(pScreen, RR_Rotate_0); /* only 0 degrees for Broadwater */ + } else { + I830RandRInit(pScreen, RR_Rotate_0 | RR_Rotate_90 | RR_Rotate_180 | RR_Rotate_270); } + pI830->PointerMoved = pScrn->PointerMoved; + pScrn->PointerMoved = I830PointerMoved; + pI830->CreateScreenResources = pScreen->CreateScreenResources; + pScreen->CreateScreenResources = I830CreateScreenResources; + } else { + /* Rotation */ + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "libshadow is version %d.%d.%d, required 1.1.0 or greater for rotation.\n",pI830->shadowReq.majorversion,pI830->shadowReq.minorversion,pI830->shadowReq.patchlevel); } -#endif if (serverGeneration == 1) xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options); |