summaryrefslogtreecommitdiff
path: root/exa/exa.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-04-04 12:28:48 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-04-04 14:04:52 +0200
commitf8482967ae8080f49dd1bbb0b79cc65020df679f (patch)
tree98b9255e93dffec1082f261f2cd1b26f527641ad /exa/exa.c
parentc10df5b967d4da4e11786520317e2917de5541fa (diff)
Add an EXA driver callback to determine whether a pixmap is
"offscreen" in exa terms, which means accessible to the GPU. Bump exa minor. The change is backwards-compatible.
Diffstat (limited to 'exa/exa.c')
-rw-r--r--exa/exa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/exa/exa.c b/exa/exa.c
index dd27d5e89..23fe55516 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -322,6 +322,9 @@ exaPixmapIsOffscreen(PixmapPtr p)
if (p->devPrivate.ptr == NULL)
return TRUE;
+ if (pExaScr->info->PixmapIsOffscreen)
+ return pExaScr->info->PixmapIsOffscreen(p);
+
return ((unsigned long) ((CARD8 *) p->devPrivate.ptr -
(CARD8 *) pExaScr->info->memoryBase) <
pExaScr->info->memorySize);