summaryrefslogtreecommitdiff
path: root/src/amd_lx_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd_lx_driver.c')
-rw-r--r--src/amd_lx_driver.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/amd_lx_driver.c b/src/amd_lx_driver.c
index d8cfaa7..a7b352a 100644
--- a/src/amd_lx_driver.c
+++ b/src/amd_lx_driver.c
@@ -299,7 +299,7 @@ LXAllocateMemory(ScreenPtr pScrn, ScrnInfoPtr pScrni, int rotate)
fboffset += size;
fbavail -= size;
-
+
pGeode->Compression = TRUE;
} else {
xf86DrvMsg(pScrni->scrnIndex, X_ERROR,
@@ -325,11 +325,13 @@ LXAllocateMemory(ScreenPtr pScrn, ScrnInfoPtr pScrni, int rotate)
/* Try to set up some EXA scratch memory for blending */
+ pGeode->exaBfrOffset = 0;
+
if (!pGeode->NoAccel) {
if (pGeode->exaBfrSz > 0 && pGeode->exaBfrSz <= fbavail) {
pGeode->exaBfrOffset = fboffset;
- fboffset += pGeode->exaBfrOffset;
- fbavail -= pGeode->exaBfrOffset;
+ fboffset += pGeode->exaBfrSz;
+ fbavail -= pGeode->exaBfrSz;
}
}
@@ -981,17 +983,17 @@ LXCloseScreen(int scrnIndex, ScreenPtr pScrn)
LXUnmapMem(pScrni);
if (pGeode->useVGA)
- vgaHWUnmapMem(pScrn);
+ vgaHWUnmapMem(pScrni);
- Scrni->PointerMoved = pGeode->PointerMoved;
+ pScrni->PointerMoved = pGeode->PointerMoved;
pScrn->CloseScreen = pGeode->CloseScreen;
-
+
if (pScrn->CloseScreen)
return (*pScrn->CloseScreen)(scrnIndex, pScrn);
return TRUE;
}
-
+
static Bool
LXEnterGraphics(ScreenPtr pScrn, ScrnInfoPtr pScrni)
{