Summary: | Later precision statement isn't overriding earlier one | ||
---|---|---|---|
Product: | Mesa | Reporter: | Eero Tamminen <eero.t.tamminen> |
Component: | glsl-compiler | Assignee: | mesa-dev |
Status: | VERIFIED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | lemody |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=97532 https://bugs.freedesktop.org/show_bug.cgi?id=98243 |
||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Glmark2-es2 Jellyfish shader_test triggering the bug |
Description
Eero Tamminen
2016-09-14 11:21:58 UTC
GL 4.5 GLSL spec: https://www.opengl.org/registry/doc/GLSLangSpec.4.50.pdf Says the same in "4.7.3 Default Precision Qualifiers": "Multiple precision statements for the same basic type can appear inside the same scope, with later statements overriding earlier statements within that scope." I wrote a piglit test that reproduces the failure: https://lists.freedesktop.org/archives/piglit/2016-October/021103.html And sent a couple of patches to fix it in Mesa: https://lists.freedesktop.org/archives/mesa-dev/2016-October/132772.html Piglit test and Mesa fix pushed: commit 0e742926c6895dcaf8bdbe43022c8a0bc74fdd96 Author: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Date: Fri Oct 21 08:23:59 2016 +0200 glsl: update default precision qualifier when it is set in the shader Verified. "glmark2-es2 -b jellyfish" works now, and old versions of terrain & ideas tests fail as expected. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.