From 7a2300c88ae59f5b7c3ce89d33147e3f0ca23c18 Mon Sep 17 00:00:00 2001 From: Wang Zhenyu Date: Wed, 27 Jun 2007 09:19:22 +0800 Subject: EXA: don't have to check offscreen size DDX will check it for EXA_OFFSCREEN_PIXMAPS flag --- src/i830_exa.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/i830_exa.c b/src/i830_exa.c index 22618dcd..fed4067b 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -400,7 +400,7 @@ I830EXAInit(ScreenPtr pScreen) return FALSE; } memset(pI830->EXADriverPtr, 0, sizeof(*pI830->EXADriverPtr)); - + pI830->bufferOffset = 0; pI830->EXADriverPtr->exa_major = 2; pI830->EXADriverPtr->exa_minor = 1; @@ -408,21 +408,14 @@ I830EXAInit(ScreenPtr pScreen) pI830->EXADriverPtr->offScreenBase = pI830->exa_offscreen->offset; pI830->EXADriverPtr->memorySize = pI830->exa_offscreen->offset + pI830->exa_offscreen->size; - + pI830->EXADriverPtr->flags = EXA_OFFSCREEN_PIXMAPS; + DPRINTF(PFX, "EXA Mem: memoryBase 0x%x, end 0x%x, offscreen base 0x%x, memorySize 0x%x\n", pI830->EXADriverPtr->memoryBase, pI830->EXADriverPtr->memoryBase + pI830->EXADriverPtr->memorySize, pI830->EXADriverPtr->offScreenBase, pI830->EXADriverPtr->memorySize); - if(pI830->EXADriverPtr->memorySize > - pI830->EXADriverPtr->offScreenBase) - pI830->EXADriverPtr->flags = EXA_OFFSCREEN_PIXMAPS; - else { - xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Not enough video RAM for " - "offscreen memory manager. Xv disabled\n"); - /* disable Xv here... */ - } /* Limits are described in the BLT engine chapter under Graphics Data Size * Limitations, and the descriptions of SURFACE_STATE, 3DSTATE_BUFFER_INFO, -- cgit v1.2.3