[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#390551: compiz: Flickery after resume



reassign 390901 xserver-xorg-video-ati 1:6.6.3-2
reassign 390551 xserver-xorg-video-ati 1:6.6.3-2
kthxbye

On Thu, 2007-06-07 at 02:43 +0200, Michael Biebl wrote:
> 
> Brice Goglin wrote:
> > Hi,
> > 
> > Do you still reproduce these rendering problems in compiz after
> > suspend/resume? Even with latest xserver-xorg-core 1.3, compiz 0.5 and
> > drivers?
> 
> I'm running an up2date sid system and I unfortunately still experience
> the problem.

#390901 should be fixed in xserver-xorg-video-ati in experimental.

For #390551, the attached patch might help.


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer
radeon: Prepare CRTC offset control registers for page flipping when enabled.

From:  <michel@tungstengraphics.com>


---

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

diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index d3fd634..d474fc8 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -6081,6 +6081,9 @@ static Bool RADEONInitCrtcRegisters(ScrnInfoPtr pScrn, RADEONSavePtr save,
 				     : 0));
 
     save->crtc_offset      = pScrn->fbOffset;
+    if (info->allowPageFlip)
+	save->crtc_offset_cntl = RADEON_CRTC_OFFSET_FLIP_CNTL;
+
     if (info->tilingEnabled) {
        if (IS_R300_VARIANT)
           save->crtc_offset_cntl |= (R300_CRTC_X_Y_MODE_EN |
@@ -6211,7 +6214,9 @@ static Bool RADEONInitCrtc2Registers(ScrnInfoPtr pScrn, RADEONSavePtr save,
     /* It seems all fancy options apart from pflip can be safely disabled
      */
     save->crtc2_offset      = pScrn->fbOffset;
-    save->crtc2_offset_cntl &= RADEON_CRTC_OFFSET_FLIP_CNTL;
+    if (info->allowPageFlip)
+	save->crtc2_offset_cntl = RADEON_CRTC_OFFSET_FLIP_CNTL;
+
     if (info->tilingEnabled) {
        if (IS_R300_VARIANT)
           save->crtc2_offset_cntl |= (R300_CRTC_X_Y_MODE_EN |

Reply to: