https://bugs.freedesktop.org/show_bug.cgi?id=33348
Summary: Display corruption when activating desktop effects (compositing) in kwin... Product: Mesa Version: 7.10 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r300 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: adawit@kde.org
This bug report is the same as the one I opened downstream against KWin. See
https://bugs.kde.org/show_bug.cgi?id=262824
That bug report contains all the information about my setup. The only thing I wanted to add was the software I have on my system, an ArchLinux box:
ati-dri 7.9.0.git20101207-2 dri2proto 2.3-1 kernel26 2.6.36.3-1 libdrm 2.4.22-3 libgl 7.9.0.git20101207-2 mesa 7.9.0.git20101207-2 xf86-video-ati 6.13.2-2 xf86driproto 2.1.1-1 xorg-server 1.9.2-2 xorg-server-common 1.9.2-2 xorg-server-devel 1.9.2-2
I also tested the newer versions of the above packages with the same result:
ati-dri 7.10-1 dri2proto 2.3-1 kernel26 2.6.37-1 libdrm 2.4.23-1 libgl 7.10-1 mesa 7.10-1 xf86-video-ati 6.13.2-2 xf86driproto 2.1.1-1 xorg-server 1.9.3.901-1 xorg-server-common 1.9.3.901-1 xorg-server-devel 1.9.3.901-1
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #1 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:28:10 PST --- Created an attachment (id=42999) --> (https://bugs.freedesktop.org/attachment.cgi?id=42999) glewinfo output
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #2 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:28:41 PST --- Created an attachment (id=43000) --> (https://bugs.freedesktop.org/attachment.cgi?id=43000) visualinfo output
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #3 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:29:24 PST --- Created an attachment (id=43002) --> (https://bugs.freedesktop.org/attachment.cgi?id=43002) kernel drm dmesg output
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #4 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:29:54 PST --- Created an attachment (id=43004) --> (https://bugs.freedesktop.org/attachment.cgi?id=43004) lspci -vv output
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #5 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:31:26 PST --- Created an attachment (id=43005) --> (https://bugs.freedesktop.org/attachment.cgi?id=43005) Xorg log file
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #6 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:32:18 PST --- Created an attachment (id=43006) --> (https://bugs.freedesktop.org/attachment.cgi?id=43006) screenshot after activating kwin desktop effects...
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #7 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:34:06 PST --- Created an attachment (id=43007) --> (https://bugs.freedesktop.org/attachment.cgi?id=43007) screenshot of asteroids3D game w/o kwin desktop effects
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #8 from Dawit Alemayehu adawit@kde.org 2011-02-06 11:39:52 PST --- Machine Info ========== 2.6.37-ARCH #1 SMP PREEMPT Sat Jan 29 20:00:33 CET 2011 x86_64 Intel(R) Pentium(R) D CPU 3.20GHz GenuineIntel GNU/Linux
Packages installed ============== kernel26 2.6.37-5
ati-dri 7.10-1 dri2proto 2.3-1 freeglut 2.6.0-1 glproto 1.4.12-1 libgl 7.10-1 mesa 7.10-1 xf86driproto 2.1.1-1 xf86-video-ati 6.14.0-1 xorg-xdriinfo 1.0.4-1 xorg-server 1.9.4-1 xorg-server-common 1.9.4-1 xorg-server-devel 1.9.4-1
https://bugs.freedesktop.org/show_bug.cgi?id=33348
Dawit Alemayehu adawit@kde.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Display corruption when |[r300g] Display corruption |activating desktop effects |(artifacts) when using 3D |(compositing) in kwin... |graphics...
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #9 from Marek Olšák maraeo@gmail.com 2011-02-10 18:22:37 PST --- Does the problem go away with the Mesa master branch?
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #10 from Dawit Alemayehu adawit@kde.org 2011-02-11 13:39:58 PST --- (In reply to comment #9)
Does the problem go away with the Mesa master branch?
Nope. It makes no difference. The problem has actually gotten worse since I got the updated packages I listed comment #8 vs the original report. And the issue stays the same with Mesa master branch from today.
ati-dri-git 20110211-1 dri2proto-git 20110211-1 glproto-git 20110211-1 libdrm-git 20110211-1 libgl-git 20110211-1 mesa-git 20110211-1
Anyhow, attempting to enable any sort of compositing (aka desktop effects) in kwin results in a completely black window ontop which are some rectangular colored (green/red) artifacts. The 3D game is about as usable as it was in the attached screenshot.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
Robin Wheeler robin-linux@hotmail.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robin-linux@hotmail.co.uk
--- Comment #11 from Robin Wheeler robin-linux@hotmail.co.uk 2011-02-13 05:38:11 PST --- This shows as "tearing"? on web pages, it appears to be the gallium driver not working well with Compiz. If I disable the gallium driver in Xorg.conf the tearing stops.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #12 from Dawit Alemayehu adawit@kde.org 2011-02-23 23:40:31 PST --- Could the fact that the kernel drm module seems to recognize my card incorrectly as an RV380 card, X600 Radeon card, have anything to do with my issues ?
[drm] initializing kernel modesetting (RV380 0x1002:0x5B60)
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #13 from Alex Deucher agd5f@yahoo.com 2011-02-23 23:55:28 PST --- (In reply to comment #12)
Could the fact that the kernel drm module seems to recognize my card incorrectly as an RV380 card, X600 Radeon card, have anything to do with my issues ?
[drm] initializing kernel modesetting (RV380 0x1002:0x5B60)
No, that's fine.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #14 from Dawit Alemayehu adawit@kde.org 2011-02-24 08:35:48 PST --- Created an attachment (id=43757) --> (https://bugs.freedesktop.org/attachment.cgi?id=43757) screenshot of activating compositing in kwin
https://bugs.freedesktop.org/show_bug.cgi?id=33348
Dawit Alemayehu adawit@kde.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #43757|screenshot of activating |screenshot of activating description|compositing in kwin |compositing in kwin II
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #15 from Alex Deucher agd5f@yahoo.com 2011-02-24 08:52:26 PST --- Does using Xv fix the kwin issues? A user reported on IRC that using Xv seems to fix the GL issues he was having which implies we are missing some state in the 3D driver that the 2D driver sets.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #16 from Dawit Alemayehu adawit@kde.org 2011-02-24 12:13:29 PST --- Created an attachment (id=43770) --> (https://bugs.freedesktop.org/attachment.cgi?id=43770) xvinfo output
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #17 from Dawit Alemayehu adawit@kde.org 2011-02-24 12:13:43 PST --- (In reply to comment #15)
Does using Xv fix the kwin issues? A user reported on IRC that using Xv seems to fix the GL issues he was having which implies we are missing some state in the 3D driver that the 2D driver sets.
Well Xv is most definitely enabled on my system, but I fail to see how that helps with the kwin composting issue. Perhaps, I misunderstood your question ? I have attached the output of the xvinfo just the same. If that was what you were suggesting, then no it does not help with the kwin issues.
On the other hand, if you were asking whether or not changing the compositing mode in kwin from "OpenGL" to "XRender" helps then the answer would yes for the most part. Unfortunately many desktop effects won't work in that mode. Anyhow, I rather doubt that was what you wanted to know.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #18 from Alex Deucher agd5f@yahoo.com 2011-02-24 12:44:21 PST --- (In reply to comment #17)
Well Xv is most definitely enabled on my system, but I fail to see how that helps with the kwin composting issue. Perhaps, I misunderstood your question ? I have attached the output of the xvinfo just the same. If that was what you were suggesting, then no it does not help with the kwin issues.
Use Xv; playback a video using Xv. Xv uses the 3D engine just like OpenGL. If the 3D driver is not properly emitting some 3D state, but Xv is, OpenGL should work properly after you've used Xv since the missing state will now be programmed properly. xvinfo is not enough, you actually have to render some video.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #19 from Dawit Alemayehu adawit@kde.org 2011-02-24 13:27:54 PST --- (In reply to comment #18)
(In reply to comment #17)
Well Xv is most definitely enabled on my system, but I fail to see how that helps with the kwin composting issue. Perhaps, I misunderstood your question ? I have attached the output of the xvinfo just the same. If that was what you were suggesting, then no it does not help with the kwin issues.
Use Xv; playback a video using Xv. Xv uses the 3D engine just like OpenGL. If the 3D driver is not properly emitting some 3D state, but Xv is, OpenGL should work properly after you've used Xv since the missing state will now be programmed properly. xvinfo is not enough, you actually have to render some video.
Okay, when I do that then there is a very minor improvement. The artifacts shown in the screen shots above are no longer there, but I still get a completely dark screen with only the mouse pointer showing...
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #20 from Dawit Alemayehu adawit@kde.org 2011-06-17 06:47:04 PDT --- Problem is still there with the following updated packages:
libgl 7.10.3-1 ati-dri 7.10.3-1 libdrm 2.4.25-1 xf86-video-ati 6.14.1-1 xorg-server-common 1.10.2-1 xorg-server-utils 7.6-2 xorg-server 1.10.2-1 xf86driproto 2.1.1-1
Is there anyway to debug such that I can try ? I do not mind getting down and dirty if it means getting this issue resolved. OpenGL support has not worked on my machine ever since the ati driver was switched to the Gallium version.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #21 from Robin Wheeler robin-linux@hotmail.co.uk 2011-06-17 08:26:50 PDT --- I'm on ubuntu 11.04 now and unity is unusable. If I boot straight to it but on my dual boot system if I boot windows xp then simply restart the laptop unity works just fine except with "tearing" in web browser. So Yes you may be right some setup state is missing in the driver. But that still will not I believe fix the "tearing".
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #22 from Alex Deucher agd5f@yahoo.com 2011-06-17 09:41:13 PDT --- Maybe you are having interrupt problems. run: cat /proc/interrupts and see if you see the interrupts increasing for radeon. You might try the following options on the kernel command line in grub: pci=nomsi irqpoll
https://bugs.freedesktop.org/show_bug.cgi?id=33348
Robin Wheeler robin-linux@hotmail.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|x86-64 (AMD64) |x86 (IA32)
--- Comment #23 from Robin Wheeler robin-linux@hotmail.co.uk 2011-06-17 15:35:45 PDT --- Added both your options and looking at the cat command can see no difference and in fact cold boot still results in an unusable unity. A windows restart is still OK.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
--- Comment #24 from Dawit Alemayehu adawit@kde.org 2011-06-19 12:07:34 PDT --- (In reply to comment #23)
Added both your options and looking at the cat command can see no difference and in fact cold boot still results in an unusable unity. A windows restart is still OK.
I get the same display corruption with those options as well set as well. It does not matter if you set both or one at a time. For me the corruption is now better than what it was a couple of revisions back, but it is still unusable.
https://bugs.freedesktop.org/show_bug.cgi?id=33348
Dawit Alemayehu adawit@kde.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #25 from Dawit Alemayehu adawit@kde.org 2011-08-06 12:19:07 PDT --- Seems to be finally fixed in Mesa 7.11. Dunno what the cause was, but it works fine for me on the hardware and driver I reported with the shinny new Mesa 7.11. Big thanks for whomever fixed this problem.
dri-devel@lists.freedesktop.org