https://bugs.freedesktop.org/show_bug.cgi?id=32829
Summary: [r300g] vertex shaders render incorrectly in some wine programs Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r300 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: rubenf3000@gmail.com
The game "Doctor Who: The Adventure games" produces polygon artifacts when using GLSL; turning off GLSL in wine makes the game render correctly; using GLSL with software rendering / llvmpipe renders correctly as well.
Graphics Card: ATI Technologies Inc RV505 [Radeon X1550 64-bit] CPU: Intel Core Duo 1.8 Ghz, 2.5 GB RAM Linux kernel 2.6.36, libdrm 2.4.23 Latest Mesa git
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #1 from Rubén Fernández rubenf3000@gmail.com 2011-01-04 13:02:53 PST --- Created an attachment (id=41642) --> (https://bugs.freedesktop.org/attachment.cgi?id=41642) Screenshot showing misrendering
Some vertices are incorrectly translated
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #2 from Rubén Fernández rubenf3000@gmail.com 2011-01-04 13:03:55 PST --- Created an attachment (id=41643) --> (https://bugs.freedesktop.org/attachment.cgi?id=41643) Log of the misrendering with MESA_GLSL=dump and RADEON_DEBUG=vp
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #3 from Rubén Fernández rubenf3000@gmail.com 2011-01-04 13:04:28 PST --- Created an attachment (id=41644) --> (https://bugs.freedesktop.org/attachment.cgi?id=41644) Correct rendering with GLSL disabled in wine
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #4 from Rubén Fernández rubenf3000@gmail.com 2011-01-04 13:05:06 PST --- Created an attachment (id=41645) --> (https://bugs.freedesktop.org/attachment.cgi?id=41645) Log of the correct rendering with MESA_GLSL=dump and RADEON_DEBUG=vp
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #5 from Tom Stellard tstellar@gmail.com 2011-01-06 23:44:27 PST --- Hi, Can you try with the debugger branch from git://anongit.freedesktop.org/~tstellar/mesa and post the output of RADEON_DEBUG=vp ? This branch will probably mis-render a bunch of stuff, but it produces more helpful output. Also, If this branch causes a segfault, can you post a stack trace?
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #6 from Rubén Fernández rubenf3000@gmail.com 2011-01-07 10:37:53 PST --- (In reply to comment #5)
Hi, Can you try with the debugger branch from git://anongit.freedesktop.org/~tstellar/mesa and post the output of RADEON_DEBUG=vp ? This branch will probably mis-render a bunch of stuff, but it produces more helpful output. Also, If this branch causes a segfault, can you post a stack trace?
I've tried, but it's missing the file "radeon_debugger_result.h"; please add it and I'll test with it as soon as I can.
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #7 from Tom Stellard tstellar@gmail.com 2011-01-07 14:49:54 PST --- Created an attachment (id=41761) --> (https://bugs.freedesktop.org/attachment.cgi?id=41761) radeon_debugger_result.h
Sorry, Add this file to src/mesa/drivers/dri/r300/compiler
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #8 from Rubén Fernández rubenf3000@gmail.com 2011-01-07 16:18:30 PST --- (In reply to comment #7)
Created an attachment (id=41761)
--> (https://bugs.freedesktop.org/attachment.cgi?id=41761)
radeon_debugger_result.h
Sorry, Add this file to src/mesa/drivers/dri/r300/compiler
Done; it doesn't segfault, but aborts due to "cannot allocate memory" before even getting to the point where it renders the characters wrongly; it seems to compile the shaders anyway, so I'll give you the log.
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #9 from Rubén Fernández rubenf3000@gmail.com 2011-01-07 16:19:29 PST --- Created an attachment (id=41764) --> (https://bugs.freedesktop.org/attachment.cgi?id=41764) output from Tom's branch with RADEON_DEBUG=vp and MESA_GLS=dump
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #10 from Tom Stellard tstellar@gmail.com 2011-01-07 21:36:51 PST --- Does running mesa master branch with RADEON_DEBUG=noopt fix the issue? If so, can you post the output of RADEON_DEBUG=noopt,vp ?
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #11 from Rubén Fernández rubenf3000@gmail.com 2011-01-08 05:52:10 PST --- (In reply to comment #10)
Does running mesa master branch with RADEON_DEBUG=noopt fix the issue? If so, can you post the output of RADEON_DEBUG=noopt,vp ?
It doesn't - the results are the same. Posting the output anyway, in case it helps.
https://bugs.freedesktop.org/show_bug.cgi?id=32829
--- Comment #12 from Rubén Fernández rubenf3000@gmail.com 2011-01-08 05:53:16 PST --- Created an attachment (id=41769) --> (https://bugs.freedesktop.org/attachment.cgi?id=41769) Log of the misrendering with RADEON_DEBUG=noopt,vp
https://bugs.freedesktop.org/show_bug.cgi?id=32829
Jerome Glisse glisse@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[r300g] vertex shaders |[RADEON:KMS:R300G] vertex |render incorrectly in some |shaders render incorrectly |wine programs |in some wine programs
https://bugs.freedesktop.org/show_bug.cgi?id=32829
Rubén Fernández rubenf3000@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #13 from Rubén Fernández rubenf3000@gmail.com 2011-04-04 22:28:05 PDT --- Since I no longer have access to an r300 card, I can't test for this bug anymore; unless somebody else has such a card, and this same game, I guess it's better to mark it as "solved".
https://bugs.freedesktop.org/show_bug.cgi?id=32829
Rubén Fernández rubenf3000@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |WONTFIX
dri-devel@lists.freedesktop.org