[PATCH] EXA: Restore migration call in exaDoPutImage().

Michel Dänzer michel at daenzer.net
Mon Jan 4 00:07:48 PST 2010


From: Michel Dänzer <daenzer at vmware.com>

Turns out this is still necessary if the driver PrepareAccess hook succeeds.

Signed-off-by: Michel Dänzer <daenzer at vmware.com>
Tested-by: Maarten Maathuis <madman2003 at gmail.com>
Tested-by: Andrew Chant <andrew.chant+debian at gmail.com>
---
 exa/exa_accel.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 4c55a4c..4680c37 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -172,6 +172,17 @@ exaDoPutImage (DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y,
     if (pExaScr->swappedOut)
 	return FALSE;
 
+    if (pExaScr->do_migration) {
+	ExaMigrationRec pixmaps[1];
+
+	pixmaps[0].as_dst = TRUE;
+	pixmaps[0].as_src = FALSE;
+	pixmaps[0].pPix = pPix;
+	pixmaps[0].pReg = DamagePendingRegion(pExaPixmap->pDamage);
+
+	exaDoMigration (pixmaps, 1, TRUE);
+    }
+
     pPix = exaGetOffscreenPixmap (pDrawable, &xoff, &yoff);
 
     if (!pPix)
-- 
1.6.5.7



More information about the xorg-devel mailing list