[PATCH 2/3] exa: Only call driver FinishAccess hook if PrepareAccess hook succeeded.
Maarten Maathuis
madman2003 at gmail.com
Mon Dec 13 10:42:35 PST 2010
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.3.2
More information about the xorg-devel
mailing list