summaryrefslogtreecommitdiff
path: root/exa/exa.h
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-02-28 21:59:09 +0100
committerMaarten Maathuis <madman2003@gmail.com>2009-03-04 16:51:09 +0100
commitda8ea41a542787691ea1120e5c8c7dc3182cbea5 (patch)
treeda4b006c268b8095082261bc32c9d7afa543348f /exa/exa.h
parent3ea3d505e8128ab3e878edcef697fd5656b0c917 (diff)
exa: increase/rework safety checks in Prepare/FinishAccess.
Diffstat (limited to 'exa/exa.h')
-rw-r--r--exa/exa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/exa/exa.h b/exa/exa.h
index 8339a3e44..d7219f053 100644
--- a/exa/exa.h
+++ b/exa/exa.h
@@ -695,6 +695,11 @@ typedef struct _ExaDriver {
/* Hooks to allow driver to its own pixmap memory management */
void *(*CreatePixmap)(ScreenPtr pScreen, int size, int align);
void (*DestroyPixmap)(ScreenPtr pScreen, void *driverPriv);
+ /**
+ * Returning a pixmap with non-NULL devPrivate.ptr implies a pixmap which is
+ * not offscreen, which will never be accelerated and Prepare/FinishAccess won't
+ * be called.
+ */
Bool (*ModifyPixmapHeader)(PixmapPtr pPixmap, int width, int height,
int depth, int bitsPerPixel, int devKind,
pointer pPixData);