diff options
author | marha <marha@users.sourceforge.net> | 2010-07-14 06:40:19 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-07-14 06:40:19 +0000 |
commit | 865af20e32591176d03acf984d9b5788d5ebce21 (patch) | |
tree | d5e216fa6fa5cdbb83834cc38bd5b96fc41c97de /xorg-server/exa/exa.c | |
parent | 81124070f120ab658e094b64f6944d701b003a99 (diff) | |
download | vcxsrv-865af20e32591176d03acf984d9b5788d5ebce21.tar.gz vcxsrv-865af20e32591176d03acf984d9b5788d5ebce21.tar.bz2 vcxsrv-865af20e32591176d03acf984d9b5788d5ebce21.zip |
xserver libxcb git update 14/7/2010
Diffstat (limited to 'xorg-server/exa/exa.c')
-rw-r--r-- | xorg-server/exa/exa.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xorg-server/exa/exa.c b/xorg-server/exa/exa.c index 823c9a23f..eda9ad7a7 100644 --- a/xorg-server/exa/exa.c +++ b/xorg-server/exa/exa.c @@ -435,6 +435,29 @@ exaFinishAccess(DrawablePtr pDrawable, int index) (*pExaScr->info->FinishAccess) (pPixmap, i);
}
+
+/**
+ * Helper for things common to all schemes when a pixmap is destroyed
+ */
+void
+exaDestroyPixmap(PixmapPtr pPixmap)
+{
+ ExaScreenPriv(pPixmap->drawable.pScreen);
+ int i;
+
+ /* Finish access if it was prepared (e.g. pixmap created during
+ * software fallback)
+ */
+ for (i = 0; i < EXA_NUM_PREPARE_INDICES; i++) {
+ if (pExaScr->access[i].pixmap == pPixmap) {
+ exaFinishAccess(&pPixmap->drawable, i);
+ pExaScr->access[i].pixmap = NULL;
+ break;
+ }
+ }
+}
+
+
/**
* Here begins EXA's GC code.
* Do not ever access the fb/mi layer directly.
|