https://bugs.freedesktop.org/show_bug.cgi?id=31046
Summary: [r600g, tiling] visual errors and GPU resets Product: DRI Version: DRI CVS Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: major Priority: medium Component: DRM/Radeon AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: liquid.acid@gmx.net
Hello!
Yesterday I saw with much delight that the was some new tiling code in r600g, which could be enabled with a simple envvar. So I pulled drm-radeon-testing and applied Dave's patch for the CS checker to it (this one: http://article.gmane.org/gmane.comp.video.dri.devel/51060).
However I encountered several problems with the new code (exporting R600_FORCE_TILING=1 makes a difference, so it is working to some extent:
1) ioquake3 shows lots of gfx errors. Mipmaps are affected the most (when setting r_textureMode to GL_LINEAR these problems disappear), but also small textures seem to be affected (staircases, which use small textures, are either rendered totally black or black with white stripes).
2) doom3 (demo) shows similar mipmap-related errors.
3) ut2004 is completly unplayable, I get GPU resets nearly every frame and most of the geometry is missing.
4) ut2003 kinda works, but the HUD is messed up and sprite rendering is totally broken
Going to post some snips from the kernel log later.
My hardware: 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon HD 4770 [RV740]
libdrm, mesa and xf86-video-ati are all git master tip. ColorTiling is enabled in the xorg.conf, verified this by checking the Xorg logfile.
Greets, Tobias
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #1 from Tobias Jakobi liquid.acid@gmx.net 2010-10-22 03:31:27 PDT --- Needless to say, but I didn't see _any_ performance increase with R600_FORCE_TILING enabled. Isn't this supposed to bump the fps a lot?
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #2 from Dave Airlie airlied@freedesktop.org 2010-10-22 04:22:45 PDT --- I didn't get a chance to test on r700 yet, there may be some more bits I need to look at, I haven't noticed a large FPS difference on my GPUs either, which is sad, but I've got a bit of work to do yet, I actually added tiling to help with s3tc rather than for the FPS boost.
btw you may also need some patches from Alex to fix the group size and any other CS checkers patch that popped up lately.
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #3 from Tobias Jakobi liquid.acid@gmx.net 2010-10-22 05:57:43 PDT --- You mean these ones? http://article.gmane.org/gmane.comp.video.dri.devel/50968 http://article.gmane.org/gmane.comp.video.dri.devel/50966
Concerning s3tc, how exactly does tiling interact with that?
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #4 from Tobias Jakobi liquid.acid@gmx.net 2010-10-28 16:49:17 PDT --- OK, so I just found some time to retest the issues.
Again mesa, libdrm and xf86-video-ati are git master. I'm also using drm-next (not drm-r-t) this time, since it looks like it's more up to date.
However with this config mipmapping seems to be broken in all configs. I have mipmap render errors (which disappear in quake-engine based games when setting gl_texturemode to either GL_NEAREST or GL_LINEAR) with r600 classic and gallium, doesn't matter what I choose.
R600_FORCE_TILING introduced even more errors, so I switched it off again right away. But the problems with mipmaps stay.
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #5 from Tobias Jakobi liquid.acid@gmx.net 2010-11-04 17:12:58 PDT --- Now tracking the new issue in bug #31400. I'm going to return to this bug when mipmaps are working again on mesa classic.
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #6 from Jerome Glisse glisse@freedesktop.org 2010-12-07 12:22:23 PST --- Do you still have this issue with lastest mesa git & recent kernel+ddx
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #7 from Tobias Jakobi liquid.acid@gmx.net 2010-12-11 12:42:06 PST --- I'm currently on vacation, so I can't test this at the moment. Will do a check when I return home.
https://bugs.freedesktop.org/show_bug.cgi?id=31046
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from Tobias Jakobi liquid.acid@gmx.net 2011-01-15 14:45:11 PST --- I have retested this with all important components updated: Issue is no longer present for me. Forcing tiling on doesn't create any (more) major issues on quake3, doom3 and ut then without this option.
Setting this to RESOLVED, FIXED.
https://bugs.freedesktop.org/show_bug.cgi?id=31046
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |
--- Comment #9 from Tobias Jakobi liquid.acid@gmx.net 2011-01-19 14:12:45 PST --- After doing some thorough testing today with ut2004 I noticed that mipmaps are still affected when having R600_FORCE_TILING enabled. Going to take some screenshots later. I didn't encounter any GPU resets though, so it's just rendering errors and it seems to be limited to mipmaps.
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #10 from Tobias Jakobi liquid.acid@gmx.net 2011-01-26 13:01:26 PST --- Created an attachment (id=42552) --> (https://bugs.freedesktop.org/attachment.cgi?id=42552) ut2004 mipmap errors 1
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #11 from Tobias Jakobi liquid.acid@gmx.net 2011-01-26 13:01:41 PST --- Created an attachment (id=42553) --> (https://bugs.freedesktop.org/attachment.cgi?id=42553) ut2004 mipmap errors 2
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #12 from Tobias Jakobi liquid.acid@gmx.net 2011-01-26 13:01:56 PST --- Created an attachment (id=42554) --> (https://bugs.freedesktop.org/attachment.cgi?id=42554) ut2004 mipmap errors 3
https://bugs.freedesktop.org/show_bug.cgi?id=31046
--- Comment #13 from Tobias Jakobi liquid.acid@gmx.net 2011-01-26 13:02:10 PST --- Created an attachment (id=42555) --> (https://bugs.freedesktop.org/attachment.cgi?id=42555) ut2004 mipmap errors 4
https://bugs.freedesktop.org/show_bug.cgi?id=31046
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #14 from Tobias Jakobi liquid.acid@gmx.net 2011-02-01 13:17:53 PST --- I'm closing this one, since the main issue has changed. Also recent tests show that fewer applications are affected.
dri-devel@lists.freedesktop.org