glsl: Make invariant outputs in ES fragment shader not to cause error

Graphics / Mesa 3D Graphics Library / Mesa - Danylo Piliaiev [globallogic.com] - 11 January 2019 02:01 EST

In all GLSL ES versions output variables in fragment shader are allowed to be invariant.

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."

a2db6b4254 glsl: Make invariant outputs in ES fragment shader not to cause error
src/compiler/glsl/ast_to_hir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share