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
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);
}
void *
exaGetPixmapDriverPrivate(PixmapPtr pPix)
{
ExaPixmapPriv(pPix);
return pExaPixmap->driverPriv;
}
/**
* exaGetPixmapPitch() returns the pitch (in bytes) of the given pixmap.
*