summaryrefslogtreecommitdiff
path: root/exa/exa.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-10-02 14:03:39 +1000
committerDave Airlie <airlied@redhat.com>2007-10-02 14:03:39 +1000
commitffb58f4fa8d86e87f831430b8627f27d85f971a9 (patch)
treeee13bd7b3d4196d128123571266f2524a982f77f /exa/exa.h
parent31555af0005a0bc4d7ef785214696ac84681e29f (diff)
exa: add hooks for drivers to take over pixmap allocation
This adds hooks for the driver to access Create/DestroyPixmap and ModifyPixmapHe ader. It allocates a 0 sized pixmap using fb and calls the driver routine to do work of allocating the actual memory. ModifyPixmapHeader is mainly required for hooking the screen pixmap which isn't create by normal methods
Diffstat (limited to 'exa/exa.h')
-rw-r--r--exa/exa.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/exa/exa.h b/exa/exa.h
index c7e39fa64..0eeb1f062 100644
--- a/exa/exa.h
+++ b/exa/exa.h
@@ -702,6 +702,13 @@ typedef struct _ExaDriver {
*/
int maxPitchBytes;
+ /* Hooks to allow driver to its own pixmap memory management */
+ void *(*CreatePixmap)(ScreenPtr pScreen, int size, int align);
+ void (*DestroyPixmap)(ScreenPtr pScreen, void *driverPriv);
+ Bool (*ModifyPixmapHeader)(PixmapPtr pPixmap, int width, int height,
+ int depth, int bitsPerPixel, int devKind,
+ pointer pPixData);
+
/** @} */
} ExaDriverRec, *ExaDriverPtr;