[Bug 81585] piglit spec_glsl-1.10_compiler_literals_invalid-float-suffix-capital-f.vert fails

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 19 07:51:45 PST 2014


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

--- Comment #4 from Ian Romanick <idr at freedesktop.org> ---
(In reply to Matt Turner from comment #3)
> (In reply to Neil Roberts from comment #2)
> > Using the f suffix on NVidia's proprietary driver version 340.46 with
> > #version 110 gives the following error:
> > 
> > error C7502: OpenGL does not allow type suffix 'f' on constant literals in
> > versions below 120
> > 
> > However, if I leave out the #version line entirely then the error becomes a
> > warning and it successfully compiles. The Piglit test doesn't specify the
> > #version line so I guess it would fail on NVidia's driver too.
> 
> The GLSL spec says "shaders that do not include a #version directive will be
> treated as targeting version 110". I think NVidia operates in some relaxed
> mode when #version is missing.

That's correct.  Without a #version, NVIDIA treats the shader as if it
specified the highest supported version, but offers some warnings for post-1.10
functionality.

Based on this information, I think it's probably okay to strictly follow the
spec by rejecting the F suffix in 1.10 shaders.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20141219/02ce539b/attachment.html>


More information about the intel-3d-bugs mailing list