exa: check if the pixmap is pinned for unsupported AUX indices.
This commit is contained in:
parent
3992dd38ca
commit
ec32878359
|
@ -585,6 +585,8 @@ ExaDoPrepareAccess(DrawablePtr pDrawable, int index)
|
||||||
|
|
||||||
if (index >= EXA_PREPARE_AUX_DEST &&
|
if (index >= EXA_PREPARE_AUX_DEST &&
|
||||||
!(pExaScr->info->flags & EXA_SUPPORTS_PREPARE_AUX)) {
|
!(pExaScr->info->flags & EXA_SUPPORTS_PREPARE_AUX)) {
|
||||||
|
if (pExaPixmap->score == EXA_PIXMAP_SCORE_PINNED)
|
||||||
|
FatalError("Unsupported AUX indices used on a pinned pixmap.\n");
|
||||||
exaMoveOutPixmap (pPixmap);
|
exaMoveOutPixmap (pPixmap);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue