diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-11-19 17:11:46 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-11-19 17:11:46 +0100 |
commit | ff38c2c9cf0c6acbdaf53b681ec721487cf411f8 (patch) | |
tree | bbad874f8b94e3f36c505fb5b2c583d8b02932f9 /src/radeon_dri.c | |
parent | 2dd0892817090709b2fb7ffba920595ada00fcad (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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c index be8e74f..73f9844 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 } |