https://bugs.freedesktop.org/show_bug.cgi?id=58840
Priority: medium Bug ID: 58840 Assignee: dri-devel@lists.freedesktop.org Summary: rendering error with MSAA on HD6850 Severity: normal Classification: Unclassified OS: All Reporter: aaalmosss@gmail.com Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/r600 Product: Mesa
There are weird rendering errors when OpenGL applications use MSAA framebuffer. The output is mostly noise. KDE 4.8 with OpenGL compositing is totally unusable this way.
It is also interesting, that MS visuals are only advertised in glxinfo, if I have the msaa-capable r600_dri.so installed on the system. If I only enable it via LIBGL_DRIVERS_PATH and LD_LIBRARY_PATH, they are not advertised, but still selectable. At least with __GL_FSAA_MODE=4 the applications are broken in the same way.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #1 from Alex Deucher agd5f@yahoo.com --- Please attach your xorg log and dmesg output.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #2 from almos aaalmosss@gmail.com --- (In reply to comment #1)
Please attach your xorg log and dmesg output.
The same as the ones at bug 58839
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #3 from almos aaalmosss@gmail.com --- Created attachment 72400 --> https://bugs.freedesktop.org/attachment.cgi?id=72400&action=edit neverball.png
The frames of Neverball are ok most of the time, but it flashes to garbage like in the attachment several times per second. The other applications I tried are sauerbraten and kde-window-manager, those are permanently garbage.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
almos aaalmosss@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #72400|text/plain |image/png mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #4 from almos aaalmosss@gmail.com --- Now I tried again with updated mesa (git-8ed6b14). Now glxgears, sauerbraten, ut2004 (32bit), fgfs (when did 3d clouds become such a performance killer?) are fine. Neverball still flashes garbage. Nexuiz is 3fps with AA. Etqw (32bit) and team fortress 2 (32bit, wine) cause gpu lockup even without AA (I'll bisect later). Alien-arena with AA dies with r600_texture.c:776:r600_texture_transfer_map: Assertion `rtex->resource.b.b.nr_samples <= 1' failed.
In all cases I had to use the env var, even games that support setting AA cannot do it themselves.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #5 from almos aaalmosss@gmail.com --- Cogs also works, sort of. It has to be started with the __GL_FSAA_MODE=4 env var *and* antialias must be enabled in the options menu to see AA. However, it cannot start this way, it says Couldn't set 1280x960 OpenGL video mode: Couldn't find matching GLX visual on the next startup. The antialias has to be reset to 0 in ~/.local/share/Cogs/cogs.ini, and re-enabled in the menu. Additionally, there is a 90% chance of segfault on startup and on changing the antialias setting.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #6 from Marek Olšák maraeo@gmail.com --- (In reply to comment #5)
Couldn't set 1280x960 OpenGL video mode: Couldn't find matching GLX visual on the next startup.
If you want MSAA GLX visuals, you must *install* the gallium driver and restart the X server for it to pick up the visuals.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #7 from almos aaalmosss@gmail.com --- (In reply to comment #6)
(In reply to comment #5)
Couldn't set 1280x960 OpenGL video mode: Couldn't find matching GLX visual on the next startup.
If you want MSAA GLX visuals, you must *install* the gallium driver and restart the X server for it to pick up the visuals.
I know, but the last time I tried to install it, the whole screen became noise, like I said in the initial report.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #8 from almos aaalmosss@gmail.com --- Now I tested things again, and I only see rendering errors with neverball.
I don't know if it is expected, but some games completely slow down to a few fps with msaa enabled (etqw, nexuiz), while others slow down only when lots of geometry is seen (sauerbraten). I still can't install the msaa-capable r600_dri.so, because of the kde-window-manager slowdown bug discussed at bug 55998, so I used the __GL_FSAA_MODE=4 env var for the tests.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #9 from Marek Olšák maraeo@gmail.com --- (In reply to comment #8)
Now I tested things again, and I only see rendering errors with neverball.
I don't know if it is expected, but some games completely slow down to a few fps with msaa enabled (etqw, nexuiz), while others slow down only when lots of geometry is seen (sauerbraten). I still can't install the msaa-capable r600_dri.so, because of the kde-window-manager slowdown bug discussed at bug 55998, so I used the __GL_FSAA_MODE=4 env var for the tests.
Does the slowdown happen with the latest kernel from Linus Torvalds's git?
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #10 from almos aaalmosss@gmail.com --- (In reply to comment #9)
Does the slowdown happen with the latest kernel from Linus Torvalds's git?
Currently I use 3.6.4. I plan to upgrade to 3.7.4 this weekend. How stable is the git version? How do I check it out? Is 3.8-rc4 enough?
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #11 from Marek Olšák maraeo@gmail.com --- The latest kernel may be more stable for your graphics card. You can get it from:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
https://bugs.freedesktop.org/show_bug.cgi?id=58840
--- Comment #12 from almos aaalmosss@gmail.com --- I happened to check out the git exactly at the tag 3.8-rc5 as HEAD. With that the preformance issues in etqw and nexuiz are gone. The neverball problem is still there though.
https://bugs.freedesktop.org/show_bug.cgi?id=58840
Jerome Glisse glisse@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|rendering error with MSAA |[r600g][hd6850] rendering |on HD6850 |error with MSAA
https://bugs.freedesktop.org/show_bug.cgi?id=58840
almos aaalmosss@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #13 from almos aaalmosss@gmail.com --- With Mesa 10.1.1 and kernel 3.12 Neverball runs perfectly even with __GL_FSAA_MODE=4. Closing.
dri-devel@lists.freedesktop.org