EXA: Guard empty pending region warning by DEBUG_MIGRATE.

It isn't very useful yet while the damage layer calls us for empty operations,
mostly confuses users.
This commit is contained in:
Michel Dänzer 2009-02-06 11:37:53 +01:00
parent 9a1d07ecb7
commit 3948b52389

View File

@ -162,6 +162,7 @@ exaCopyDirty(ExaMigrationPtr migrate, RegionPtr pValidDst, RegionPtr pValidSrc,
if (pExaScr->optimize_migration) { if (pExaScr->optimize_migration) {
RegionPtr pending_damage = DamagePendingRegion(pExaPixmap->pDamage); RegionPtr pending_damage = DamagePendingRegion(pExaPixmap->pDamage);
#if DEBUG_MIGRATE
if (REGION_NIL(pending_damage)) { if (REGION_NIL(pending_damage)) {
static Bool firsttime = TRUE; static Bool firsttime = TRUE;
@ -170,6 +171,7 @@ exaCopyDirty(ExaMigrationPtr migrate, RegionPtr pValidDst, RegionPtr pValidSrc,
firsttime = FALSE; firsttime = FALSE;
} }
} }
#endif
REGION_INTERSECT(pScreen, &CopyReg, &CopyReg, pending_damage); REGION_INTERSECT(pScreen, &CopyReg, &CopyReg, pending_damage);
} }