diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2006-08-05 03:16:15 +0300 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2006-08-05 03:16:15 +0300 |
commit | 0fb8503d60cf646c91a806f9ed322f9ceff18baa (patch) | |
tree | 6882695699e03edefccbd7b797895841b9732214 /src/atiaccel.c | |
parent | e203d86643d5d70bf18248712d05b72b79aee705 (diff) |
[mach64] XAA: minor refactoring of memory manager setup.
- DRI: factor out to separate function and add comments on layout
- no DRI: factor out to separate function, maxScanlines is always equal to
ATIMach64MaxY
Diffstat (limited to 'src/atiaccel.c')
-rw-r--r-- | src/atiaccel.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/atiaccel.c b/src/atiaccel.c index f573a63a..99efae95 100644 --- a/src/atiaccel.c +++ b/src/atiaccel.c @@ -48,8 +48,6 @@ ATIInitializeAcceleration ATIPtr pATI ) { - int maxScanlines = 32767, maxPixelArea, PixelArea; - if (pATI->OptionAccel) { if (!(pATI->pXAAInfo = XAACreateInfoRec())) @@ -58,7 +56,7 @@ ATIInitializeAcceleration switch (pATI->Adapter) { case ATI_ADAPTER_MACH64: - maxScanlines = ATIMach64AccelInit(pATI, pATI->pXAAInfo); + ATIMach64AccelInit(pATI, pATI->pXAAInfo); break; default: @@ -66,31 +64,6 @@ ATIInitializeAcceleration } } -#ifndef AVOID_CPIO - - if (!pATI->BankInfo.BankSize) - -#endif /* AVOID_CPIO */ - -#ifdef XF86DRI_DEVEL - - /* If DRI is enabled, we've already set up the FB manager in ATIScreenInit */ - if (!pATI->directRenderingEnabled) - -#endif /* XF86DRI */ - { - /* - * Note: If PixelArea exceeds the engine's maximum, the excess is - * never used, even though it would be useful for such things - * as XVideo buffers. - */ - maxPixelArea = maxScanlines * pScreenInfo->displayWidth; - PixelArea = pScreenInfo->videoRam * 1024 * 8 / pATI->bitsPerPixel; - if (PixelArea > maxPixelArea) - PixelArea = maxPixelArea; - xf86InitFBManagerArea(pScreen, PixelArea, 2); - } - if (!pATI->OptionAccel || XAAInit(pScreen, pATI->pXAAInfo)) return TRUE; |