summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/fb/fb_dri.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2004-06-29 04:50:29 +0000
committerJon Smirl <jonsmirl@gmail.com>2004-06-29 04:50:29 +0000
commitc61c7cb8e4100476d5feb976c39a23b1ed7b564a (patch)
treedae0f702901adf64da9b1ead97df078b90e00725 /src/mesa/drivers/dri/fb/fb_dri.c
parent7c1207a2ec3f548921caad2e41807f3df9e1536d (diff)
This should make most linux-solo drivers work again. Mainly a fix
for changing SAREA size form DRM_PAGE_SIZE to SAREA_MAX. fb driver is still broken.
Diffstat (limited to 'src/mesa/drivers/dri/fb/fb_dri.c')
-rw-r--r--src/mesa/drivers/dri/fb/fb_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_dri.c b/src/mesa/drivers/dri/fb/fb_dri.c
index d5ea98b5be..97f4e34f15 100644
--- a/src/mesa/drivers/dri/fb/fb_dri.c
+++ b/src/mesa/drivers/dri/fb/fb_dri.c
@@ -657,7 +657,7 @@ __driInitFBDev( struct DRIDriverContextRec *ctx )
ctx->shared.hFrameBuffer = ctx->FBStart;
ctx->shared.fbSize = ctx->FBSize;
ctx->shared.hSAREA = 0xB37D;
- ctx->shared.SAREASize = DRM_PAGE_SIZE;
+ ctx->shared.SAREASize = SAREA_MAX;
id = shmget(ctx->shared.hSAREA, ctx->shared.SAREASize, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR);
if (id == -1) {
/* segment will already exist if previous server segfaulted */
@@ -672,7 +672,7 @@ __driInitFBDev( struct DRIDriverContextRec *ctx )
fprintf(stderr, "fb: shmat failed\n");
return 0;
}
- memset(ctx->pSAREA, 0, DRM_PAGE_SIZE);
+ memset(ctx->pSAREA, 0, SAREA_MAX);
return 1;
}