exa: check if the pixmap is pinned for unsupported AUX indices.

This commit is contained in:
Maarten Maathuis 2009-03-17 10:45:21 +01:00
parent 3992dd38ca
commit ec32878359
1 changed files with 2 additions and 0 deletions

View File

@ -585,6 +585,8 @@ ExaDoPrepareAccess(DrawablePtr pDrawable, int index)
if (index >= EXA_PREPARE_AUX_DEST &&
!(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);
return FALSE;
}