From c61c7cb8e4100476d5feb976c39a23b1ed7b564a Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 29 Jun 2004 04:50:29 +0000 Subject: 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. --- src/mesa/drivers/dri/fb/fb_dri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/fb') 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; } -- cgit v1.2.3