Bug 28955

Summary: [r300g]: refresh/update/damage issues using compiz.
Product: DRI Reporter: Scott Moreau <oreaus>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: ghepeu, jana
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
example
none
Example scrolling in firefox + kwin compositing and r300g
none
possible workaround none

Description Scott Moreau 2010-07-07 17:00:04 UTC
Created attachment 36846 [details]
example

Can reproduce reliably, running any compiz with r300g on rv350. While the screen is not being damaged (you can see with showrepaint plugin) any change in a window is not updated until some other window moves in front of it or animation happens in the area. It used to work a few months ago as far as I can remember, but I could not find a good commit to bisect with that would build and wouldn't crash compiz when trying to start it.


Steps to reproduce:
1) Start compiz with r300g on rv350
2) Make sure the screen isn't already being damaged, then click on something in ccsm or go to a different webpage in a browser or use an irc client with text scrolling up (a terminal or any other window can also be affected)
3) Observe issue
Comment 1 Alex Deucher 2010-07-29 07:15:55 UTC
Does 'make clean' help?
Comment 2 Kristian Høgsberg 2010-07-29 15:38:34 UTC
Dup of 28438?
Comment 3 Scott Moreau 2010-07-31 00:55:35 UTC
(In reply to comment #1)
> Does 'make clean' help?

No, it does not. I tried make distclean and realclean as well.
Comment 4 Giacomo Perale 2010-07-31 14:28:38 UTC
I'm having the same issue here (r300g on a rv370).
Comment 5 Marek Olšák 2010-08-03 05:40:08 UTC
Does r300c have this issue?
Comment 6 Scott Moreau 2010-08-03 23:19:29 UTC
(In reply to comment #5)
> Does r300c have this issue?

No it does not. I have been using it without this issue.
Comment 7 Tobias Droste 2010-08-05 18:08:53 UTC
I'm having the same issue with r300g on a rv570 and kwin (compositing enabled, KDE SC 4.5rc2).
Comment 8 Tobias Droste 2010-08-05 18:18:35 UTC
Created attachment 37612 [details]
Example scrolling in firefox + kwin compositing and r300g
Comment 9 Marek Olšák 2010-08-05 19:56:09 UTC
Created attachment 37614 [details] [review]
possible workaround

Could both of you please try this patch? Don't be happy if it fixes the issue for you, it's not a real fix and it hurts performance a lot.
Comment 10 Tobias Droste 2010-08-06 08:37:29 UTC
I tried it and it doesn't solve the problem.
Comment 11 Scott Moreau 2010-08-16 17:34:56 UTC
(In reply to comment #9)
> Created an attachment (id=37614) [details]
> possible workaround
> 
> Could both of you please try this patch? Don't be happy if it fixes the issue
> for you, it's not a real fix and it hurts performance a lot.

The bug is still reproduceable with this patch,

It is noteworthy that the bug does not happen right away after starting compiz, but anywhere from 30secs-1min or more of using the system before it starts, then all windows are affected. For example on my system, I minimize all windows except for ccsm, then click on a plugin, then back and do this several different times and then the bug starts happening. It is important to not have any damage happening in the background, such as anything animating, moving or otherwise being damaged. Otherwise, you will never see the bug.
Comment 12 Scott Moreau 2010-08-26 16:57:09 UTC
I am closing this bug since it no longer occurs with latest components. It must have got fixed somewhere in the mix.
Comment 13 Scott Moreau 2010-08-26 16:58:00 UTC
Closed: Resolved/Fixed.
Comment 14 Jana Saout 2010-08-28 05:02:10 UTC
Scott, can you tell me what the "latest components" are exactly?  Mesa git master HEAD and xorg-server-1.9.0 on an Mobility X1400 (r500) give the exact same effect you describe on my machine here. r300 "classic" is fine.
Comment 15 Giacomo Perale 2010-08-28 06:07:23 UTC
(In reply to comment #14)
> Scott, can you tell me what the "latest components" are exactly?  Mesa git
> master HEAD and xorg-server-1.9.0 on an Mobility X1400 (r500) give the exact
> same effect you describe on my machine here. r300 "classic" is fine.

It works here too. Are you using xf86-video-ati from git? There were a few commits lately who could be related to this bug.
Comment 16 Jana Saout 2010-08-28 06:42:19 UTC
Good call, that fixes it! Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.