diff --git a/exa/exa.c b/exa/exa.c index 518a5f1e9..bd0f4f783 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -74,6 +74,14 @@ exaGetPixmapOffset(PixmapPtr pPix) (unsigned long)pExaScr->info->memoryBase); } +void * +exaGetPixmapDriverPrivate(PixmapPtr pPix) +{ + ExaPixmapPriv(pPix); + + return pExaPixmap->driverPriv; +} + /** * exaGetPixmapPitch() returns the pitch (in bytes) of the given pixmap. * diff --git a/exa/exa.h b/exa/exa.h index 491e6b16b..c7e39fa64 100644 --- a/exa/exa.h +++ b/exa/exa.h @@ -773,6 +773,9 @@ exaMoveInPixmap (PixmapPtr pPixmap); void exaMoveOutPixmap (PixmapPtr pPixmap); +void * +exaGetPixmapDriverPrivate(PixmapPtr p); + /** * Returns TRUE if the given planemask covers all the significant bits in the * pixel values for pDrawable. diff --git a/exa/exa_priv.h b/exa/exa_priv.h index a26933d11..523a76f60 100644 --- a/exa/exa_priv.h +++ b/exa/exa_priv.h @@ -192,6 +192,10 @@ typedef struct { * damage, which may be overreported) of a pixmap's system and FB copies. */ RegionRec validSys, validFB; + /** + * Driver private storage per EXA pixmap + */ + void *driverPriv; } ExaPixmapPrivRec, *ExaPixmapPrivPtr; typedef struct _ExaMigrationRec {