diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2009-02-28 21:59:09 +0100 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2009-03-04 16:51:09 +0100 |
commit | da8ea41a542787691ea1120e5c8c7dc3182cbea5 (patch) | |
tree | da4b006c268b8095082261bc32c9d7afa543348f /exa/exa.h | |
parent | 3ea3d505e8128ab3e878edcef697fd5656b0c917 (diff) |
exa: increase/rework safety checks in Prepare/FinishAccess.
Diffstat (limited to 'exa/exa.h')
-rw-r--r-- | exa/exa.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |