exa: avoid offscreen pixmap swapped out flag for driver pixmaps

This commit is contained in:
Dave Airlie 2009-04-16 10:28:36 +10:00
parent 0dfb97f15f
commit 9d684ba0bc

View File

@ -371,6 +371,9 @@ exaEnableDisableFBAccess (int index, Bool enable)
ScreenPtr pScreen = screenInfo.screens[index];
ExaScreenPriv (pScreen);
if (pExaScr->info->flags & EXA_HANDLES_PIXMAPS)
return;
if (!enable && pExaScr->disableFbCount++ == 0) {
if (pExaScr->info->exa_minor < 1)
ExaOffscreenSwapOut (pScreen);