[Mesa-dev] [Bug 60737] In GLSL ES, a missing FS precision qualifier does not generate an error

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 12 13:20:14 PST 2013


--- Comment #1 from Paul Berry <stereotype441 at gmail.com> ---
Ok, this turned out to be more complex than I thought (don't they always?).  In
addition to the problem described above:

1. The spec says that default precision statements are alowed on sampler types.
 Mesa doesn't respect this.

2. Only the sampler types sampler2D and samplerCube have a default precision
defined.  The remaining sampler types require precision statements in *all*
shaders.  (However, in my experiments with the proprietary nVidia driver for
Linux, it appears not to enforce this).

3. The spec says that default precision statements are scoped, which means that
this bug won't be trivial to fix (the code we write to keep track of which
types the shader has declared a default precision for will have to be

Out of all of these problems, only problem 1 seems necessary to fix in the
short run, since it is the only problem that would cause Mesa to reject an
otherwise-correct shader.  I have a patch out on the mailing list to fix it
Once that patch lands I'll downgrade the priority of this bug appropriately.

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/mesa-dev/attachments/20130212/9fc00192/attachment-0001.html>

More information about the mesa-dev mailing list