diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-07-28 10:32:12 +0100 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2006-07-28 10:32:12 +0100 |
commit | e71108f1e05b7a8d8edd174eb64edd6cccacbcdc (patch) | |
tree | d488d5bac5b482187d7351172ee8c3a8e3fa35ec /src/i830_driver.c | |
parent | a91a4f95c664f6905fef61dab251707bf2548bb8 (diff) |
Fix DGA with MergedFB
Turn off rotation support when MergedFB enabled
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index d32efa31..256ae22e 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -7088,22 +7088,6 @@ I830BIOSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pI830->CloseScreen = pScreen->CloseScreen; pScreen->CloseScreen = I830BIOSCloseScreen; - if (!pI830->MergedFB && 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 */ - 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); - } - if (pI830->MergedFB) { pI830->PointerMoved = pScrn->PointerMoved; pScrn->PointerMoved = I830MergedPointerMoved; @@ -7120,6 +7104,20 @@ I830BIOSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) } else { pI830->MouseRestrictions = FALSE; } + } else 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 */ + 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); } if (serverGeneration == 1) |