https://bugs.freedesktop.org/show_bug.cgi?id=50325
Bug #: 50325 Summary: Glyphy bad render on r600g (software render is fine) Classification: Unclassified Product: Mesa Version: 8.0 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: edwin+mesa@etorok.net
Created attachment 62078 --> https://bugs.freedesktop.org/attachment.cgi?id=62078 apitrace (cf. https://github.com/apitrace/apitrace/tree/1.0)
I just tried Glyphy on r600g and the output is very bad. Don't know if its Glyphy bug or Mesa bug, but if I force software rendering in Mesa then I do see the output.
Attached screenshots of bad (r600g) and good (software render).
The bad render was obtained by: demo/glyphy-demo
The good one: LIBGL_ALWAYS_SOFTWARE=1 demo/glyphy-demo
I tested on: OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD RV730 OpenGL version string: 2.1 Mesa 8.0.2 OpenGL shading language version string: 1.20
I'll try to test on mesa git later to see if its still an issue there.
Also attached is a an apitrace, and the bad render can be reproduced with: build/glretrace lt-glyphy-demo.trace
The good render (initialization a bit slow, but works): LIBGL_ALWAYS_SOFTWARE=1 build/glretrace lt-glyphy-demo.trace
The source code for Glyphy can be found here: https://code.google.com/p/glyphy/source/checkout
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #1 from Török Edwin edwin+mesa@etorok.net 2012-05-24 14:57:08 PDT --- Created attachment 62079 --> https://bugs.freedesktop.org/attachment.cgi?id=62079 r600g-bad.png
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #2 from Török Edwin edwin+mesa@etorok.net 2012-05-24 14:57:24 PDT --- Created attachment 62080 --> https://bugs.freedesktop.org/attachment.cgi?id=62080 sw-good.png
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #3 from Török Edwin edwin+mesa@etorok.net 2012-05-25 00:22:27 PDT --- With the git version of Mesa I get an error, opened new bug here: https://bugs.freedesktop.org/show_bug.cgi?id=50338 EE r600_shader.c:140 r600_pipe_shader_create - translation from TGSI failed !
https://bugs.freedesktop.org/show_bug.cgi?id=50325
Török Edwin edwin+mesa@etorok.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Glyphy bad render on r600g |Glyphy bad render on r600g |(software render is fine) |(software render is fine) - | |too many registers?
--- Comment #4 from Török Edwin edwin+mesa@etorok.net 2012-05-26 01:52:53 PDT --- (In reply to comment #3)
With the git version of Mesa I get an error, opened new bug here: https://bugs.freedesktop.org/show_bug.cgi?id=50338 EE r600_shader.c:140 r600_pipe_shader_create - translation from TGSI failed !
The bad render might be because the shader tries to use too many registers, some earlier version of Mesa git printed some errors about GPR count limit being exceeded.
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #5 from cyberkm@gmail.com --- Bump
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #6 from Vedran Miletić vedran@miletic.net --- (In reply to cyberkm from comment #5)
Bump
Have you confirmed it happens with latest Mesa git? What hardware did you try it on?
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #7 from cyberkm@gmail.com --- Yep, latest mesa git.
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Antilles [Radeon HD 6990]
mesa r600 gallium.
The app works fine if i switch to software renderer.
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #8 from Gert Wollny gw.fossdev@gmail.com --- Could you re-test with the latest mesa-git? As of mid September some patches landed that improved the register use.
I myself tried it on an AMD 6850 HD and the trace works fine now.
https://bugs.freedesktop.org/show_bug.cgi?id=50325
Gert Wollny gw.fossdev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #9 from Gert Wollny gw.fossdev@gmail.com --- This should be fixed since version 17.2.
https://bugs.freedesktop.org/show_bug.cgi?id=50325
--- Comment #10 from Gert Wollny gw.fossdev@gmail.com --- Actually, that should be v17.3.
dri-devel@lists.freedesktop.org