summaryrefslogtreecommitdiff
path: root/src/i830_exa.c
diff options
context:
space:
mode:
authorWang Zhenyu <zhenyu.z.wang@intel.com>2007-06-27 09:19:22 +0800
committerWang Zhenyu <zhenyu.z.wang@intel.com>2007-06-27 09:19:22 +0800
commit7a2300c88ae59f5b7c3ce89d33147e3f0ca23c18 (patch)
tree47eda2487049174beb2f0387d0e2761f3f66cd5d /src/i830_exa.c
parentfff4a3b58fa18ee2ad91f998d190e90b77c051ab (diff)
EXA: don't have to check offscreen size
DDX will check it for EXA_OFFSCREEN_PIXMAPS flag
Diffstat (limited to 'src/i830_exa.c')
-rw-r--r--src/i830_exa.c13
1 files changed, 3 insertions, 10 deletions
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,