diff --git a/src/i830.h b/src/i830.h index 207d4ecd..0d8726c5 100644 --- a/src/i830.h +++ b/src/i830.h @@ -692,8 +692,7 @@ extern void I830SetupForSolidFill(ScrnInfoPtr pScrn, int color, int rop, extern void I830SubsequentSolidFillRect(ScrnInfoPtr pScrn, int x, int y, int w, int h); -Bool i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, - unsigned long size); +Bool i830_allocator_init(ScrnInfoPtr pScrn, unsigned long size); void i830_allocator_fini(ScrnInfoPtr pScrn); i830_memory * i830_allocate_memory(ScrnInfoPtr pScrn, const char *name, unsigned long size, unsigned long pitch, diff --git a/src/i830_driver.c b/src/i830_driver.c index 1887a518..0f66d63f 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2319,7 +2319,7 @@ i830_memory_init(ScrnInfoPtr pScrn) tiled = i830_tiled_width(pI830, &pScrn->displayWidth, pI830->cpp); /* Set up our video memory allocator for the chosen videoRam */ - if (!i830_allocator_init(pScrn, 0, pScrn->videoRam * KB(1))) { + if (!i830_allocator_init(pScrn, pScrn->videoRam * KB(1))) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Couldn't initialize video memory allocator\n"); PreInitCleanup(pScrn); diff --git a/src/i830_memory.c b/src/i830_memory.c index d5827f81..18ddff4f 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -364,7 +364,7 @@ i830_reset_allocations(ScrnInfoPtr pScrn) * addresses to reference. */ Bool -i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, unsigned long size) +i830_allocator_init(ScrnInfoPtr pScrn, unsigned long size) { I830Ptr pI830 = I830PTR(pScrn); i830_memory *start, *end; @@ -395,12 +395,12 @@ i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, unsigned long size) } start->key = -1; - start->offset = offset; + start->offset = 0; start->end = start->offset; start->size = 0; start->next = end; end->key = -1; - end->offset = offset + size; + end->offset = size; end->end = end->offset; end->size = 0; end->prev = start;