[Bug 107842] "invariant" qualifier on outputs of GLSL ES fragment shader causes compilation error.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 5 13:48:41 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107842
Bug ID: 107842
Summary: "invariant" qualifier on outputs of GLSL ES fragment
shader causes compilation error.
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glsl-compiler
Assignee: danylo.piliaiev at gmail.com
Reporter: danylo.piliaiev at gmail.com
QA Contact: intel-3d-bugs at lists.freedesktop.org
For example fragment shader containing:
invariant gl_FragColor;
Or:
invariant out highp vec4 test;
Causes similar error:
error: `gl_FragColor' cannot be marked invariant; interfaces between shader
stages only.
However in all GLSL ES specs there is no restriction on usage of "invariant"
with output variables in fragment shader.
From Section 4.6.1 ("The Invariant Qualifier") GLSL ES 1.00 spec:
"Only the following variables may be declared as invariant:
...
- Built-in special variables output from the fragment shader."
From Section 4.6.1 ("The Invariant Qualifier") GLSL ES 3.00 spec:
"Only variables output from a shader can be candidates for invariance."
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180905/694c1751/attachment.html>
More information about the intel-3d-bugs
mailing list