mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-09 13:30:17 +01:00
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>
This commit is contained in:
parent
648d4fe517
commit
af87f6367e
1 changed files with 2 additions and 1 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue