summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2006-11-19 17:11:46 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2006-11-19 17:11:46 +0100
commitff38c2c9cf0c6acbdaf53b681ec721487cf411f8 (patch)
treebbad874f8b94e3f36c505fb5b2c583d8b02932f9 /src/radeon_dri.c
parent2dd0892817090709b2fb7ffba920595ada00fcad (diff)
radeon: Bug #8989: Fix page flipping artifacts with XAA.
We still have to force-sync the pages on enabling page flipping with XAA as the second page may have been clobbered by the offscreen pixmap cache since they were last synced.
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index be8e74f1..73f9844b 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -1910,6 +1910,14 @@ static void RADEONEnablePageFlip(ScreenPtr pScreen)
RADEONSAREAPrivPtr pSAREAPriv = DRIGetSAREAPrivate(pScreen);
pSAREAPriv->pfAllowPageFlip = 1;
+
+#ifdef USE_XAA
+ if (!info->useEXA) {
+ BoxRec box = { .x1 = 0, .y1 = 0, .x2 = pScrn->virtualX - 1,
+ .y2 = pScrn->virtualY - 1 };
+ RADEONDRIRefreshArea(pScrn, 1, &box);
+ }
+#endif
}
#endif
}