summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-10-02 13:32:57 +1000
committerDave Airlie <airlied@redhat.com>2007-10-02 13:57:55 +1000
commit31555af0005a0bc4d7ef785214696ac84681e29f (patch)
tree55240cd291ce27a9abc3b7cbe7d7e79314625b86 /exa
parent2d93e69690d2c5d4a89a795ede6423796528e5df (diff)
exa: add a pixmap private pointer for drivers to retrieve.
Diffstat (limited to 'exa')
-rw-r--r--exa/exa.c8
-rw-r--r--exa/exa.h3
-rw-r--r--exa/exa_priv.h4
3 files changed, 15 insertions, 0 deletions
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 {