summaryrefslogtreecommitdiff
path: root/src/glamo-driver.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-03-11 21:55:34 +0100
committerLars-Peter Clausen <lars@metafoo.de>2009-03-11 21:55:34 +0100
commit7d8b282c8d5cc53ec2c660fd740e15288226346d (patch)
tree7eeb666e1175f43461119ba315ce524c310710fe /src/glamo-driver.c
parent177215e1b3b723cff6d9e3503cb6cc053f6b7616 (diff)
Implement memory managment which allows us to allocate static memory areas in
the framebuffer without exa.
Diffstat (limited to 'src/glamo-driver.c')
-rw-r--r--src/glamo-driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glamo-driver.c b/src/glamo-driver.c
index babf57d..ac3db86 100644
--- a/src/glamo-driver.c
+++ b/src/glamo-driver.c
@@ -522,6 +522,8 @@ GlamoScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
GlamoPtr pGlamo = GlamoPTR(pScrn);
VisualPtr visual;
int ret, flags;
+ size_t mem_start = 0;
+ size_t mem_size = 1024 * 1024 * 4;
TRACE_ENTER("GlamoScreenInit");
@@ -594,7 +596,7 @@ GlamoScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
xf86LoadSubModule(pScrn, "exa");
xf86LoaderReqSymLists(exaSymbols, NULL);
- if (!GLAMODrawInit(pScrn)) {
+ if (!GLAMODrawInit(pScrn, mem_start, mem_size)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"EXA hardware acceleration initialization failed\n");
} else {
@@ -805,7 +807,7 @@ GlamoEnterVT(int scrnIndex, int flags) {
GlamoSaveHW(pScrn);
if (pGlamo->accel)
- GLAMODrawEnable(pScrn);
+ pGlamo->accel = GLAMODrawEnable(pScrn);
if (!xf86SetDesiredModes(pScrn))
return FALSE;