[PATCH 2/3] exa: Only call driver FinishAccess hook if PrepareAccess hook succeeded.
Maarten Maathuis
madman2003 at gmail.com
Thu Jan 27 11:40:12 PST 2011
Reviewed-by: Michel Dänzer <michel at daenzer.net>
Signed-off-by: Maarten Maathuis <madman2003 at gmail.com>
---
exa/exa.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/exa/exa.c b/exa/exa.c
index 8adf847..a4e294a 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -421,7 +421,8 @@ exaFinishAccess(DrawablePtr pDrawable, int index)
/* We always hide the devPrivate.ptr. */
pPixmap->devPrivate.ptr = NULL;
- if (!pExaScr->info->FinishAccess || !exaPixmapHasGpuCopy(pPixmap))
+ /* Only call FinishAccess if PrepareAccess was called and succeeded. */
+ if (!pExaScr->info->FinishAccess || !pExaScr->access[i].retval)
return;
if (i >= EXA_PREPARE_AUX_DEST &&
--
1.7.4.rc2
More information about the xorg-devel
mailing list