<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - piglit spec_glsl-1.10_compiler_literals_invalid-float-suffix-capital-f.vert fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81585#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - piglit spec_glsl-1.10_compiler_literals_invalid-float-suffix-capital-f.vert fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81585">bug 81585</a>
              from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
        <pre>(In reply to Matt Turner from <a href="show_bug.cgi?id=81585#c3">comment #3</a>)
<span class="quote">> (In reply to Neil Roberts from <a href="show_bug.cgi?id=81585#c2">comment #2</a>)
> > 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.</span >

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>