Bug 26735 - r600: rendering artifacts
Summary: r600: rendering artifacts
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/R600 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-24 13:04 UTC by Török Edwin
Modified: 2012-11-06 10:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg (56.47 KB, application/octet-stream)
2010-02-24 13:04 UTC, Török Edwin
Details
Xorg.0.log (46.14 KB, text/plain)
2010-02-24 13:04 UTC, Török Edwin
Details
Linux .config (60.59 KB, application/octet-stream)
2010-02-24 13:05 UTC, Török Edwin
Details
screenshot1_r600 (164.50 KB, image/jpeg)
2010-02-24 13:05 UTC, Török Edwin
Details
screenshot2_r600 (129.68 KB, image/jpeg)
2010-02-24 13:05 UTC, Török Edwin
Details
screenshot1_swref (205.12 KB, image/jpeg)
2010-02-24 13:05 UTC, Török Edwin
Details
screenshot2_swref (194.84 KB, image/jpeg)
2010-02-24 13:05 UTC, Török Edwin
Details

Description Török Edwin 2010-02-24 13:04:21 UTC
I have tested the open source radeon drivers on my ATI Radeon HD4650.
First of all many thanks for the work on this driver, KMS works like a charm [1], and no 3D app has crashed (fglrx tends to deadlock lately).

Now to some rendering artifacts I noticed in blender (and some games, like Heroes of Newerth beta).

To reproduce on Debian unstable x86-64:
1. Install blender 2.49.2 (apt-get install blender)
2. Open the attached test.blend
3. Switch to textured mode (press ALT-Z)
4. There are 3 noticable artifacts here (see screenshot1_r600 attached):
 - the floor tiles at the bottom have an L shaped whiteish stain on them, that shouldn't be there
 - the spotlight has black stripes, instead of just lighting an area
 - the blender interface has a black/grey thing at the bottom that it shouldn't

5. Press P to start the game engine
6. Move the mouse around to move the spotlight. See the black stripes moving along with it, there shouldn't be any black stripes at all!
See screenshot2_r600 vs screenshot2_swref

To get the reference renders you can either use fglrx, or Mesa's software mode
(which will be very slow, but will get nice renders). These images aren't perfect either (there is some aliasing), but much better than the r600 ones:
LIBGL_ALWAYS_SOFTWARE=1 blender

System info:
$ glxinfo|grep OpenGL
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV730 9498) 20090101  TCL DRI2
OpenGL version string: 2.1 Mesa 7.8-devel
OpenGL shading language version string: 1.20
OpenGL extensions:

Linux 2.6.33-rc8-00189-g9f3a628 (compiled by me, .config attached)
mesa from git (compiled by me, mesa_7_6_1_rc1-5145-g2f5beb4)
with this patch applied:
 http://cgit.freedesktop.org/~andrem/mesa/commit/?h=r600- test&id=6ee755760d124c85bdfd121fd491f68fccca84f7

From Debian unstable/experimental packages:
Xorg 7.5
xserver-xorg-video-radeon 6.12.99+git20100201.a887818f-1
libdrm1-radeon, libdrm2: 2.4.18-2
libgl1-mesa-dri: 7.7-3 (but see below, I used my own build instead)

If you need more info, just ask.

[1] I had to download&copy R700_rlc.bin to the proper place, and thanks to some help on #radeon fix a missing libdri.so, but everything else worked
Comment 1 Török Edwin 2010-02-24 13:04:35 UTC
Created attachment 33532 [details]
dmesg
Comment 2 Török Edwin 2010-02-24 13:04:48 UTC
Created attachment 33533 [details]
Xorg.0.log
Comment 3 Török Edwin 2010-02-24 13:05:00 UTC
Created attachment 33534 [details]
Linux .config
Comment 4 Török Edwin 2010-02-24 13:05:15 UTC
Created attachment 33535 [details]
screenshot1_r600
Comment 5 Török Edwin 2010-02-24 13:05:30 UTC
Created attachment 33536 [details]
screenshot2_r600
Comment 6 Török Edwin 2010-02-24 13:05:45 UTC
Created attachment 33537 [details]
screenshot1_swref
Comment 7 Török Edwin 2010-02-24 13:05:58 UTC
Created attachment 33538 [details]
screenshot2_swref
Comment 8 Török Edwin 2010-02-24 13:10:01 UTC
You can get the test blender file from here (too big to attach here):
http://www.fileden.com/files/2009/9/1/2561232/test.blend

It is based on the blend file from this article: 
http://www.blendernation.com/bathroom-demo-blender-game-engine/
But with most of the objects removed to make Mesa software render times acceptable.

Comment 9 Rafał Miłecki 2010-02-24 13:21:35 UTC
Can be (partially?) duplicate of bug #24818
Comment 10 Alex Deucher 2010-02-24 13:57:49 UTC
Does it render properly without that patch?
Comment 11 Török Edwin 2010-02-25 01:17:26 UTC
(In reply to comment #10)
> Does it render properly without that patch?
> 

No, I still get the same corruption if I revert that patch.

(In reply to comment #9)
> Can be (partially?) duplicate of bug #24818
> 

Maybe, the corruption looks random, but it happens every time, and is very noticable every time. 
Sometimes the entire floor is shown filled with tiny white/yellow dots, not just a few L shaped stains.

Also the bottom of the blender interface gets covered by that black/grey/green artifact (sometimes immediately, sometimes if I mouseover the bottom part).
Comment 12 Andreas Boll 2012-11-02 16:26:54 UTC
Note: classic r600 driver has been abandoned.
Please use r600g (gallium driver) instead.

Is this still an issue with a newer driver/kernel?
Comment 13 Török Edwin 2012-11-06 10:27:39 UTC
(In reply to comment #12)
> Note: classic r600 driver has been abandoned.
> Please use r600g (gallium driver) instead.
> 
> Is this still an issue with a newer driver/kernel?

Rendering looks correct now, tested with r600g version '3.0 Mesa 9.1-devel (git-e87a578)' (R600_LLVM=0).


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.