diff options
author | Dave Airlie <airlied@redhat.com> | 2007-10-02 13:32:57 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2007-10-02 13:57:55 +1000 |
commit | 31555af0005a0bc4d7ef785214696ac84681e29f (patch) | |
tree | 55240cd291ce27a9abc3b7cbe7d7e79314625b86 | |
parent | 2d93e69690d2c5d4a89a795ede6423796528e5df (diff) |
exa: add a pixmap private pointer for drivers to retrieve.
-rw-r--r-- | exa/exa.c | 8 | ||||
-rw-r--r-- | exa/exa.h | 3 | ||||
-rw-r--r-- | exa/exa_priv.h | 4 |
3 files changed, 15 insertions, 0 deletions
@@ -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. * @@ -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 { |