[Bug 63579] Savage 2 Edges render white [r600g]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 15 20:37:29 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=63579

--- Comment #4 from Vadim Girlin <ptpzz at yandex.ru> ---
Looks like some shaders related to sky rendering are not compiled successfully.
The problem is that there is a '\' (line-continuation) character in the
comment, followed by the line that is not expected to be a part of comment:

#version 120
....
//=============================================================================\
uniform vec4    vColor;

AFAICS the line-continuation character was only introduced in the GLSL 4.20
spec, and according to the spec next line should be considered a part of the
comment in this case. I'm not sure though how this should be handled for
previous GLSL versions.

So either this is incorrectly handled by the GLSL compiler, or the shader
itself is incorrect. In any case it's not a bug of the r600g driver.

I think the easiest solution would be for game devs to remove the '\' character
from that comment to avoid this uncertainty and undefined behavior, probably it
was added accidentally anyway. You might want to report this to the game
developers.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130416/dea123dd/attachment.html>


More information about the dri-devel mailing list