← Back to team overview

registry team mailing list archive

[Bug 606907] Re: [xorg-edgers] Texture corruption with Radeon gallium driver r300g and 'big' textures (xorg-edgers)

 

Launchpad has imported 27 comments from the remote bug at
http://bugs.freedesktop.org/show_bug.cgi?id=30313.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-09-21T12:11:00+00:00 Gerwin wrote:

Created an attachment (id=38848)
This texture is corrupted

In several 3d applications some textures are rendered wrong. If the
distance to the texture changes, the textures can be rendered correct
again.

In OpenArena the textures are not or rarely distorted when the 'texture
detail' setting is at it's lowest. At the highest setting, several
textures are distorted. If i move away or towards to the texture, the
texture can be rendered correct again.

The bug is similar to https://bugs.freedesktop.org/show_bug.cgi?id=28800
, but with some differences:

- This bug wasn't there with r300c
- It is with several apps i tested, Extreme Tux Racer, Octagaplayer, Blender, OpenArena.
- I don't know if the WoW bug has the distance and texture detail thing.


I'm using 

- ubuntu maverick with the 
- xorg edgers ppa, 
- so, gallium r300g driver
- kernel 2.6.35-22
- R350 agp ati radeon 9800 pro card.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/39

------------------------------------------------------------------------
On 2010-09-21T12:11:50+00:00 Gerwin wrote:

Created an attachment (id=38849)
Now it is okay

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/40

------------------------------------------------------------------------
On 2010-09-21T12:13:10+00:00 Gerwin wrote:

Created an attachment (id=38850)
The bug in Extreme Tux Racer (also the mouse pointer in the menu is corrupted)

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/41

------------------------------------------------------------------------
On 2010-09-21T12:14:03+00:00 Gerwin wrote:

Created an attachment (id=38851)
Bug in blender

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/42

------------------------------------------------------------------------
On 2010-09-21T12:14:37+00:00 Gerwin wrote:

Created an attachment (id=38852)
Bug in Blender 2

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/43

------------------------------------------------------------------------
On 2010-09-24T18:34:35+00:00 Marek Olšák wrote:

This looks like a tiling issue and r300c doesn't implement tiling fully.
I can't reproduce it on R500. Try to set the environment variable
RADEON_DEBUG=notiling and please let me know if it fixes the issue.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/46

------------------------------------------------------------------------
On 2010-09-25T05:48:54+00:00 Gerwin wrote:

(In reply to comment #5)
> This looks like a tiling issue and r300c doesn't implement tiling fully. I
> can't reproduce it on R500. Try to set the environment variable
> RADEON_DEBUG=notiling and please let me know if it fixes the issue.

Yes, RADEON_DEBUG=notiling fixes the issue!

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/47

------------------------------------------------------------------------
On 2010-09-25T06:02:49+00:00 Marek Olšák wrote:

Created an attachment (id=38951)
possible fix

Could you please try this patch?

And please attach you glxinfo of r300c (I'd like to know the PCI ID,
which is in the renderer string).

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/48

------------------------------------------------------------------------
On 2010-09-25T07:05:17+00:00 Gerwin wrote:

(In reply to comment #7)
> Created an attachment (id=38951) [details]
> possible fix
> 
> Could you please try this patch?
> 
> And please attach you glxinfo of r300c (I'd like to know the PCI ID, which is
> in the renderer string).

Renderer string of r300c:

OpenGL renderer string: Mesa DRI R300 (R350 4E48) 20090101  TCL DRI2

I don't have the source of the driver (I am using this r300g driver from
the xorg-edgers ppa)

I can download the source from this ppa, patch and build it, but I am
not experienced with building this driver so then I would need detailed
instructions...

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/49

------------------------------------------------------------------------
On 2010-09-25T08:08:49+00:00 Marek Olšák wrote:

See: https://bugs.freedesktop.org/show_bug.cgi?id=29066#c10

After git clone, apply the patch using: git am < patch
Also skip the "ln" command.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/50

------------------------------------------------------------------------
On 2010-09-25T09:51:01+00:00 Gerwin wrote:

(In reply to comment #9)
> See: https://bugs.freedesktop.org/show_bug.cgi?id=29066#c10
> 
> After git clone, apply the patch using: git am < patch
> Also skip the "ln" command.

The patch worked!

I did:

git clone git://anongit.freedesktop.org/git/mesa/mesa
git am < 0001-r300g-attempt-to-fix-tiling-on-R350.patch
./autogen.sh
make

made a backup of the old gallium driver, copied the new one using

sudo cp lib/gallium/*_dri.so /usr/lib/dri/

Double checked it by putting the backup back and the issue was back,
putting the new one back and the issue was gone, so the patch worked,
thanks!

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/51

------------------------------------------------------------------------
On 2010-09-25T16:29:11+00:00 Tomasz Czapiewski wrote:

(In reply to comment #5)
> This looks like a tiling issue and r300c doesn't implement tiling fully. I
> can't reproduce it on R500. Try to set the environment variable
> RADEON_DEBUG=notiling and please let me know if it fixes the issue.

I have the same issue and RADEON_DEBUG=notiling variable helps here, too.
Tested on Nexuiz.

kernel: linux-image-2.6.35-22-generic (2.6.35-22.33)                            
xorg: 7.5+6ubuntu3                                                              
xserver-xorg-core: 2:1.9.0-0ubuntu7                                             
mesa: 7.10.0~git20100925+gallium+r300.58c24390-0ubuntu0tormod                   
graphic card: Sapphire Radeon 9600 256MB AGP (RV350)

OpenGL vendor string: X.Org R300 Project
OpenGL renderer string: Gallium 0.4 on RV350
OpenGL version string: 2.1 Mesa 7.10-devel
OpenGL shading language version string: 1.20

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV350 AP [Radeon 9600] [1002:4150]
01:00.1 Display controller [0380]: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary) [1002:4170]

I've got RV370 card, too but now I was not able to test if it's got the same issue:
02:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)] [1002:5b60]
02:00.1 Display controller [0380]: ATI Technologies Inc RV370 [Radeon X300SE] [1002:5b70]

And I've got one more problem with r300g - at the same (custom low) settings I've had for about 50% more FPS on r300c than on r300g in most places (for example 20FPS to 30FPS on many map objects on the screen) but when I enable GLSL in Nexuiz on r300g I have many more FPS, even than in r300c (40-50FPS in the same places) but then I have other graphic issue. I thought it is something connected with this issue but for it RADEON_DEBUG=notiling doesn't help.
The issue with GLSL looks like some textures are flashing (once there are visible (drawn properly) and once not visible at all (only grey color (maybe other colors, too) in the place of texture). It's flashing very quickly and cannot be seen on screenshots (I've done almost 100 of them).
Searching bug reports I've saw only this:
https://bugs.freedesktop.org/show_bug.cgi?id=23545 and
https://bugs.freedesktop.org/show_bug.cgi?id=25027
which reading from the description it looks the same.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/52

------------------------------------------------------------------------
On 2010-09-25T16:38:48+00:00 Tomasz Czapiewski wrote:

> The issue with GLSL looks like some textures are flashing (once there are
> visible (drawn properly) and once not visible at all (only grey color (maybe
> other colors, too) in the place of texture). 

Now, I've tested other maps in Nexuiz and I see that where the textures are flashing there are not some colors but textures dissappear and I see through the walls even the sky in closed places. It can be seen in game menu, too where 'Settings', 'About' and 'Quit' menus are flashing.
Shoud I write a new bug report or comment somewhere in the other bug reports?

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/53

------------------------------------------------------------------------
On 2010-09-25T16:45:51+00:00 Tomasz Czapiewski wrote:

> Now, I've tested other maps in Nexuiz and I see that where the textures are
> flashing there are not some colors but textures dissappear and I see through
> the walls even the sky in closed places. It can be seen in game menu, too where
> 'Settings', 'About' and 'Quit' menus are flashing.
> Shoud I write a new bug report or comment somewhere in the other bug reports?

Sorry for so many comments but...
Now I've found the same issue with Blur effect in KDE 4.5.1 on Kubuntu 10.10 - textures are dissapearing and showing again and when I disable Blur and set other effects to default desktop, panel and windows are visible.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/54

------------------------------------------------------------------------
On 2010-09-26T06:31:58+00:00 Marek Olšák wrote:

Tomasz>

RADEON_DEBUG=notiling may have some side effects and may even change
behavior of other bugs. That patch was just a guess of mine. But you
have an RV350 GPU so the patch won't help you, it only makes R350 be
considered as RV350-based with regard to tiling.

Please file separate bugs for your issues. I consider this issue fixed
and am waiting for a clarification on why R350 behaves like that, and
then I'll close the bug.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/61

------------------------------------------------------------------------
On 2010-09-26T09:41:41+00:00 Tomasz Czapiewski wrote:

> RADEON_DEBUG=notiling may have some side effects and may even change behavior
> of other bugs. That patch was just a guess of mine. But you have an RV350 GPU
> so the patch won't help you, it only makes R350 be considered as RV350-based
> with regard to tiling.

But RADEON_DEBUG=notiling does help without GLSL. With this option
Nexuiz renders everything properly on my settings. Without this option
on RV350 I have textures corruption like Gerwin on R300 so there's a
problem with tiling on my RV350 with r300g. I haven't noticed any other
side effects of this environment variable, yet but I haven't done much
testing. The textures disappearing problem looks the same with this
variable set or without it when I enable GLSL in Nexuiz and in Blur with
KDE 4.5.1.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/62

------------------------------------------------------------------------
On 2010-09-26T11:54:24+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38963)
Corrupted textures in Nexuiz on RV350

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/63

------------------------------------------------------------------------
On 2010-09-26T11:55:43+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38964)
Corrupted textures in Nexuiz on RV350 #2

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/64

------------------------------------------------------------------------
On 2010-09-26T11:56:40+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38965)
Corrupted textures in Nexuiz on RV350 #3

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/65

------------------------------------------------------------------------
On 2010-09-26T11:57:18+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38966)
Corrupted textures in Nexuiz on RV350 #4

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/66

------------------------------------------------------------------------
On 2010-09-26T11:58:17+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38967)
Corrupted textures in Nexuiz on RV350 #5 (one place)

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/67

------------------------------------------------------------------------
On 2010-09-26T11:58:38+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38968)
Corrupted textures in Nexuiz on RV350 #6 (one place)

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/68

------------------------------------------------------------------------
On 2010-09-26T12:00:11+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38969)
Graphics setings in Nexuiz on RV350 #1

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/69

------------------------------------------------------------------------
On 2010-09-26T12:01:13+00:00 Tomasz Czapiewski wrote:

Created an attachment (id=38970)
Graphics setings in Nexuiz on RV350 #2

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/70

------------------------------------------------------------------------
On 2010-09-26T12:04:17+00:00 Tomasz Czapiewski wrote:

After looking more at screenshots I'm thinking it's rather shading
(lightning(?)) problem on textures than textures corruption but as I've
said before, setting "RADEON_DEBUG=notiling" fixes the problem here,
too.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/71

------------------------------------------------------------------------
On 2010-09-26T14:04:08+00:00 Marek Olšák wrote:

The patch has been committed to master. Closing..

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/72

------------------------------------------------------------------------
On 2010-09-26T14:59:04+00:00 Marek Olšák wrote:

Thomasz,

your issue seems to be similar to bug 28800. I guess Nexuiz uses some
auxiliary textures to compute lighting.

Reply at: https://bugs.launchpad.net/mesa/+bug/606907/comments/73


** Changed in: mesa
       Status: Unknown => Fix Released

** Changed in: mesa
   Importance: Unknown => Medium

** Bug watch added: freedesktop.org Bugzilla #29066
   http://bugs.freedesktop.org/show_bug.cgi?id=29066

** Bug watch added: freedesktop.org Bugzilla #23545
   http://bugs.freedesktop.org/show_bug.cgi?id=23545

** Bug watch added: freedesktop.org Bugzilla #25027
   http://bugs.freedesktop.org/show_bug.cgi?id=25027

-- 
[xorg-edgers] Texture corruption with Radeon gallium driver r300g and 'big' textures (xorg-edgers)
https://bugs.launchpad.net/bugs/606907
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Mesa.