summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2011-01-30 14:06:15 +0100
committerKeith Packard <keithp@keithp.com>2011-02-02 14:53:31 -0800
commitaf87f6367ef733d1a4f3cfca4eeb92bfd84c2b6f (patch)
tree5ec6064cb44c8fcf01fec9f22b2c93b50b09ac70
parent648d4fe5172cad33c6f09e05dd3d8d7171ef1a7f (diff)
exa: Only call driver FinishAccess hook if PrepareAccess hook succeeded.
Reviewed-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--exa/exa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exa/exa.c b/exa/exa.c
index 8adf8473c..a4e294a71 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 &&