exa: add a pixmap private pointer for drivers to retrieve.

This commit is contained in:
Dave Airlie 2007-10-02 13:32:57 +10:00
parent 2d93e69690
commit 31555af000
3 changed files with 15 additions and 0 deletions

View File

@ -74,6 +74,14 @@ exaGetPixmapOffset(PixmapPtr pPix)
(unsigned long)pExaScr->info->memoryBase); (unsigned long)pExaScr->info->memoryBase);
} }
void *
exaGetPixmapDriverPrivate(PixmapPtr pPix)
{
ExaPixmapPriv(pPix);
return pExaPixmap->driverPriv;
}
/** /**
* exaGetPixmapPitch() returns the pitch (in bytes) of the given pixmap. * exaGetPixmapPitch() returns the pitch (in bytes) of the given pixmap.
* *

View File

@ -773,6 +773,9 @@ exaMoveInPixmap (PixmapPtr pPixmap);
void void
exaMoveOutPixmap (PixmapPtr pPixmap); exaMoveOutPixmap (PixmapPtr pPixmap);
void *
exaGetPixmapDriverPrivate(PixmapPtr p);
/** /**
* Returns TRUE if the given planemask covers all the significant bits in the * Returns TRUE if the given planemask covers all the significant bits in the
* pixel values for pDrawable. * pixel values for pDrawable.

View File

@ -192,6 +192,10 @@ typedef struct {
* damage, which may be overreported) of a pixmap's system and FB copies. * damage, which may be overreported) of a pixmap's system and FB copies.
*/ */
RegionRec validSys, validFB; RegionRec validSys, validFB;
/**
* Driver private storage per EXA pixmap
*/
void *driverPriv;
} ExaPixmapPrivRec, *ExaPixmapPrivPtr; } ExaPixmapPrivRec, *ExaPixmapPrivPtr;
typedef struct _ExaMigrationRec { typedef struct _ExaMigrationRec {