diff options
author | Dave Airlie <airlied@redhat.com> | 2007-10-02 14:03:39 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2007-10-02 14:03:39 +1000 |
commit | ffb58f4fa8d86e87f831430b8627f27d85f971a9 (patch) | |
tree | ee13bd7b3d4196d128123571266f2524a982f77f /exa/exa.h | |
parent | 31555af0005a0bc4d7ef785214696ac84681e29f (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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |