summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellström <thomas@shipmail.org>2009-02-18 22:53:45 +0000
committerThomas Hellström <thomas@shipmail.org>2009-02-18 22:53:45 +0000
commit1682e4e288b8e44df836658e861067d545098ff3 (patch)
tree04a36be6fd7ab3bc746107da499bcc0ecad409a7
parent36d55ab2df3aa79d3f6d26ff0afe67eee437310a (diff)
Work around another core EXA bug.
-rw-r--r--src/via_accel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/via_accel.c b/src/via_accel.c
index ddbae16..cb9f7b8 100644
--- a/src/via_accel.c
+++ b/src/via_accel.c
@@ -597,11 +597,15 @@ viaExaPixmapIsOffscreen(PixmapPtr p)
ScreenPtr pScreen = p->drawable.pScreen;
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
VIAPtr pVia = VIAPTR(pScrn);
+ void *ptr;
if (pVia->vtNotified == TRUE)
return FALSE;
- return (viaInBuffer(&pVia->offscreen, p->devPrivate.ptr) != NULL);
+ ptr = (void *) (exaGetPixmapOffset(p) +
+ (unsigned long) pVia->exaMem.virtual);
+
+ return (viaInBuffer(&pVia->offscreen, ptr) != NULL);
}
static Bool