From e707612e9de4e5e1d91dc1a8152810912d7e18bb Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Mon, 4 Jan 2010 09:07:48 +0100 Subject: EXA: Restore migration call in exaDoPutImage(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turns out this is still necessary if the driver PrepareAccess hook succeeds. Signed-off-by: Michel Dänzer Tested-by: Maarten Maathuis Tested-by: Andrew Chant Signed-off-by: Keith Packard --- exa/exa_accel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 4c55a4c54..4680c3709 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) -- cgit v1.2.3