Bug 38270

Summary: Color Tiling unusable on NI
Product: DRI Reporter: Aidan Marks <aidan>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: hysvats, Woebbeking
Version: XOrg git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Color tiling corruption example
none
xorg-color-tile.log
none
dmesg
none
SuperTuxKart with color tiling, r600g hd5850
none
glxgears with colortiling on none

Description Aidan Marks 2011-06-13 16:47:01 UTC
latest d-r-t/mesa/ddx that picked up the default change to on for color tiling now causes total screen corruption on NI with KDE 4.6.4.

For the first couple of seconds of KDE startup the display is clean then switches to garbage.

The workaround is to disable color tiling manually.
Comment 1 Aidan Marks 2011-06-13 16:49:28 UTC
Created attachment 47918 [details]
Color tiling corruption example
Comment 2 Aidan Marks 2011-06-13 16:50:51 UTC
Created attachment 47919 [details]
xorg-color-tile.log
Comment 3 Alex Deucher 2011-06-13 21:18:27 UTC
Please attach your dmesg output as well.
Comment 4 Alex Deucher 2011-06-13 21:19:53 UTC
What 3D driver are you using?  r600g or r600c?  Are you using a compositor or not?
Comment 5 Aidan Marks 2011-06-14 01:26:38 UTC
Created attachment 47925 [details]
dmesg
Comment 6 Aidan Marks 2011-06-14 01:28:20 UTC
(In reply to comment #4)
> What 3D driver are you using?  r600g or r600c?  Are you using a compositor or
> not?

vanilla kwin with r600c.

$ glxinfo |grep OpenGL
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (BARTS 6738)  TCL DRI2
OpenGL version string: 2.1 Mesa 7.11-devel (git-a128355)
OpenGL shading language version string: 1.20
OpenGL extensions:
Comment 7 nizze86 2011-06-14 03:58:09 UTC
I get corruption with color tiling turned on too.
My system is up to date debian sid linux 2.6.39/ddx 6.14.2/mesa 7.10.2
with a 5850 using r600g. Attaching a screenshot of stk with color tiling enabled.
Comment 8 nizze86 2011-06-14 03:59:54 UTC
Created attachment 47951 [details]
SuperTuxKart with color tiling, r600g hd5850
Comment 9 nizze86 2011-06-14 13:29:55 UTC
mesa from current git works fine wit color tiling enabled so it seems an old bug still present in 7.10.2 for cypress/evergreen at least. Still a check for a recent enough mesa might be a good idea before enabling by default?
Comment 10 Aidan Marks 2011-06-14 17:01:39 UTC
pulling latest mesa/libdrm/ddx again still has the corruption with color tiling on with r600c.  I tried r600g and the corruption is not seen.
Comment 11 Wojciech Pyczak 2011-06-16 03:13:01 UTC
That's strange, I'm using 6850 with r600g and still experience corruption, in fact I've had those errors for a long time but didn't bother to report since I assumed it's still work in progress.
Comment 12 André Wöbbeking 2011-06-16 23:29:28 UTC
I also have this problem on Debian Sid (x86_64) with self compiled ddx (6.14.99) and KDE (effects enabled). Switching back to Sid's 6.14.2 fixes the problem.

I've

OpenGL vendor string:                   X.Org
OpenGL renderer string:                 Gallium 0.4 on AMD REDWOOD
OpenGL version string:                  2.1 Mesa 7.10.3
OpenGL shading language version string: 1.20
Driver:                                 R600G
GPU class:                              EVERGREEN

As already noted the corruptions happens a few seconds after login so probably related to KWin effects.
Comment 13 André Wöbbeking 2011-06-18 01:53:56 UTC
If I disable KWin's effects there is no more graphics corruption.
Comment 14 Gregor Galwas 2011-06-22 11:30:36 UTC
on my AMD Radeon 6850 I've got that corruption with *when I enable* colortiling too. There is no problem without.

Linux 3.0.0-rc4 #36 SMP Tue Jun 21 18:01:59 CEST 2011 x86_64 GNU/Linux

r600g mesa   git
ddx   git
drm   git

Xserver-Xorg from debian unstable (7.6+7) (as is the rest of my system)
Comment 15 Gregor Galwas 2011-06-22 11:32:07 UTC
Created attachment 48299 [details]
glxgears with colortiling on
Comment 16 Wojciech Pyczak 2011-06-22 12:44:02 UTC
As of 5ff22ab I no longer experience any problems with color tiling on 6850 (so far at least).
Comment 17 Aidan Marks 2011-06-22 16:04:47 UTC
(In reply to comment #10)
> pulling latest mesa/libdrm/ddx again still has the corruption with color tiling
> on with r600c.  I tried r600g and the corruption is not seen.

I see there are recent commits so I pulled libdrm/mesa/ddx again just now.  Same as above for me, r600c with kwin is showing corruption still, r600g is clean.
Comment 18 Gregor Galwas 2011-06-22 23:28:24 UTC
(In reply to comment #16)
> As of 5ff22ab I no longer experience any problems with color tiling on 6850 (so
> far at least).

I've just pulled mesa+ddx git again. Nothing changed.

To make it clear, I am using

http://cgit.freedesktop.org/mesa/mesa/   
http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/
http://cgit.freedesktop.org/mesa/drm/

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary


are you using any other drm stuff perhaps?
Comment 19 Wojciech Pyczak 2011-06-23 05:41:12 UTC
(In reply to comment #18)
> (In reply to comment #16)
> > As of 5ff22ab I no longer experience any problems with color tiling on 6850 (so
> > far at least).
> 
> I've just pulled mesa+ddx git again. Nothing changed.
> 
> To make it clear, I am using
> 
> http://cgit.freedesktop.org/mesa/mesa/   
> http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/
> http://cgit.freedesktop.org/mesa/drm/
> 
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary
> 
> 
> are you using any other drm stuff perhaps?

No, I'm using latest git versions, 64bit Gentoo, 2.6.39 (git) + some stuff from airlied repo (radeon-testing/fixes; I'm waiting for some 'stable' rc to test 3.0), Xfce4/xffw4 with composition enabled but I should note that I'm stick to r600g, I didn't tried r600c in months.

It's just a guess but perhaps your system is overwriting some files or you are using 32bit version of mesa (things like flash for example - I'm using chroot environment to create 32bit packages) ?
Comment 20 Gregor Galwas 2011-06-26 06:18:07 UTC
Just to be sure, I've just updated 

my linux kernel   Linux 3.0.0-rc4+ #37 SMP Sun Jun 26 13:34:27 CEST 2011 x86_64
drm
ddx
mesa
mcgreg@pegasos:~$ glxinfo | grep Open
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL version string: 2.1 Mesa 7.10.3
OpenGL shading language version string: 1.20

I still have the "corruption" with color tiling, nothing changed.
Anything else I can paste/check?
Comment 21 Wojciech Pyczak 2011-06-26 15:07:26 UTC
radscorpion nissarin # glxinfo | grep Open
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL version string: 2.1 Mesa 7.11-devel (git-5ff22ab)   <--- here
OpenGL shading language version string: 1.20
OpenGL extensions:

radscorpion nissarin # ls /usr/lib64/dri/ -l
razem 0
lrwxrwxrwx 1 root root 21 06-22 21:23 libdricore.so -> ../mesa/libdricore.so
lrwxrwxrwx 1 root root 18 06-22 21:23 libglsl.so -> ../mesa/libglsl.so
lrwxrwxrwx 1 root root 20 2010-10-06  r300_dri.so -> ../mesa/r300g_dri.so
lrwxrwxrwx 1 root root 20 06-22 21:23 r300g_dri.so -> ../mesa/r300g_dri.so
lrwxrwxrwx 1 root root 20 06-16 11:46 r600_dri.so -> ../mesa/r600g_dri.so
lrwxrwxrwx 1 root root 20 06-22 21:23 r600g_dri.so -> ../mesa/r600g_dri.so
lrwxrwxrwx 1 root root 22 2010-10-06  swrast_dri.so -> ../mesa/swrastg_dri.so
lrwxrwxrwx 1 root root 22 06-22 21:23 swrastg_dri.so -> ../mesa/swrastg_dri.so

Above might be gentoo specific but anyway I suggest you to check what's in /usr/lib[64]/dri and what `make install` (or whatever you use to install mesa) do on your system.
Comment 22 Alex Deucher 2011-06-29 06:07:36 UTC
*** Bug 38744 has been marked as a duplicate of this bug. ***
Comment 23 Gregor Galwas 2011-07-02 07:30:31 UTC
(In reply to comment #21)

> Above might be gentoo specific but anyway I suggest you to check what's in
> /usr/lib[64]/dri and what `make install` (or whatever you use to install mesa)
> do on your system.

You were right. There was something wrong with the system.
Being uptodate now with drm/ddx/mesa gives me NO MORE corruption with colortiling.
Comment 24 Michel Dänzer 2011-07-04 09:48:52 UTC
Seems fixed for everybody with r600g. r600c problems would need to be tracked separately, but might never get fixed.
Comment 25 nizze86 2011-07-04 15:34:30 UTC
The corruption is still present with r600g from mesa 7.10.3 on evergreen. Although it is fixed in recent mesa from git.

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.