summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_memory.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 3a3836c5..af866889 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -2044,10 +2044,12 @@ I830UnbindAGPMemory(ScrnInfoPtr pScrn)
}
#endif
#ifdef I830_USE_EXA
- if (!UnbindMemRange(pScrn, &(pI830->Offscreen)))
- return FALSE;
- if (IS_I965G(pI830) && !UnbindMemRange(pScrn, &(pI830->EXAStateMem)))
- return FALSE;
+ if (pI830->useEXA) {
+ if (!UnbindMemRange(pScrn, &(pI830->Offscreen)))
+ return FALSE;
+ if (IS_I965G(pI830) && !UnbindMemRange(pScrn, &(pI830->EXAStateMem)))
+ return FALSE;
+ }
#endif
if (!xf86ReleaseGART(pScrn->scrnIndex))
return FALSE;