summaryrefslogtreecommitdiff
path: root/exa/exa_migration.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-08-29 22:15:23 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-08-29 22:15:23 +0200
commit1861250cd7e84b05e8298b74e3c7e97da72ddfba (patch)
tree1027bb4b5830f0ec336e9e082f4b5dc73fe4bea8 /exa/exa_migration.c
parent5af77d43fe812e127d5d335527fa940ab9d95f38 (diff)
{damage,exa}: sanitise damage
- Redo damage naming for more consistency. - Call post submission functions only where appropriate. - EXA can now live without it's odd damage workarounds.
Diffstat (limited to 'exa/exa_migration.c')
-rw-r--r--exa/exa_migration.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/exa/exa_migration.c b/exa/exa_migration.c
index 2bb2ad94f..2f90b82a5 100644
--- a/exa/exa_migration.c
+++ b/exa/exa_migration.c
@@ -43,39 +43,6 @@
#endif
/**
- * Returns TRUE if the pixmap has damage.
- * EXA only migrates the parts of a destination
- * that are affected by rendering.
- * It uses the current damage as indication.
- * So anything that does not need to be updated won't be.
- * For clarity this seperate function was made.
- * Note that some situations don't use this,
- * because their calls are wrapped by the damage layer.
- */
-Bool
-exaDamageDestForMigration(DrawablePtr pDrawable, PixmapPtr pPix, RegionPtr region)
-{
- ScreenPtr pScreen = pDrawable->pScreen;
- (void) pScreen; /* the macros don't use pScreen currently */
- ExaPixmapPriv (pPix);
- int x_offset, y_offset;
- RegionPtr pending_damage;
-
- if (!pExaPixmap->pDamage)
- return FALSE;
-
- exaGetDrawableDeltas(pDrawable, pPix, &x_offset, &y_offset);
-
- REGION_TRANSLATE(pScreen, region, x_offset, y_offset);
- pending_damage = DamagePendingRegion(pExaPixmap->pDamage);
- REGION_UNION(pScreen, pending_damage, pending_damage, region);
- /* Restore region as we got it. */
- REGION_TRANSLATE(pScreen, region, -x_offset, -y_offset);
-
- return TRUE;
-}
-
-/**
* Returns TRUE if the pixmap is not movable. This is the case where it's a
* fake pixmap for the frontbuffer (no pixmap private) or it's a scratch
* pixmap created by some other X Server internals (the score says it's
@@ -332,9 +299,6 @@ exaDoMoveInPixmap (ExaMigrationPtr migrate)
ExaScreenPriv (pScreen);
ExaPixmapPriv (pPixmap);
- if (migrate->as_dst)
- pExaPixmap->pendingDamage = TRUE;
-
/* If we're VT-switched away, no touching card memory allowed. */
if (pExaScr->swappedOut)
return;
@@ -403,9 +367,6 @@ exaDoMoveOutPixmap (ExaMigrationPtr migrate)
PixmapPtr pPixmap = migrate->pPix;
ExaPixmapPriv (pPixmap);
- if (migrate->as_dst)
- pExaPixmap->pendingDamage = TRUE;
-
if (!pExaPixmap->area || exaPixmapIsPinned(pPixmap))
return;