xf86-video-ati: Branch 'master'

Michel Daenzer daenzer at kemper.freedesktop.org
Sat Oct 14 17:22:13 EEST 2006


 src/radeon_dri.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

New commits:
diff-tree c9c2ac2b42398f5bfad909f3289e2545bb7b3888 (from c19915a401ccf69046bed03c8d5067f2e72a094e)
Author: Michel Dänzer <michel at tungstengraphics.com>
Date:   Sat Oct 14 15:49:22 2006 +0200

    radeon: Don't try to synchronize pages when the CP isn't running.
    
    Also move the DamageEmpty() call into RADEONDRIRefreshArea().

diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index c50ebcb..4f39e5c 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -425,8 +425,6 @@ static void RADEONLeaveServer(ScreenPtr 
 	if (pDamageReg) {
 	    RADEONDRIRefreshArea(pScrn, REGION_NUM_RECTS(pDamageReg),
 				 REGION_RECTS(pDamageReg));
-
-	    DamageEmpty(info->pDamage);
 	}
     }
 #endif
@@ -1815,7 +1813,7 @@ static void RADEONDRIRefreshArea(ScrnInf
     PixmapPtr           pPix = pScreen->GetScreenPixmap(pScreen);
 #endif
 
-    if (!info->directRenderingInited)
+    if (!info->directRenderingInited || !info->CPStarted)
 	return;
 
     /* Don't want to do this when no 3d is active and pages are
@@ -1879,6 +1877,8 @@ static void RADEONDRIRefreshArea(ScrnInf
 #ifdef USE_XAA
     info->dst_pitch_offset &= ~RADEON_DST_TILE_MACRO;
 #endif
+
+    DamageEmpty(info->pDamage);
 }
 
 #endif /* DAMAGE */



More information about the xorg-commit mailing list