From: Oliver McFadden Date: Thu, 5 Jul 2012 08:22:06 +0000 (+0300) Subject: glsl: warning: pragma `invariant(all)' not supported in GLSL ES 1.00 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e72f20641a6ea7875b6021aac13e778ada3b3d50;p=mesa.git glsl: warning: pragma `invariant(all)' not supported in GLSL ES 1.00 The OpenGL(R) ES Shading Language Version 1.00 Revision 17 (12 May, 2009) > 4.6.1 The Invariant Qualifier > ... To force all output variables to be invariant, use the pragma > #pragma STDGL invariant(all) Signed-off-by: Oliver McFadden Reviewed-by: Eric Anholt --- diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index b2533c8476f..f61d6b8dd3e 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -301,7 +301,7 @@ pragma_statement: | PRAGMA_OPTIMIZE_OFF EOL | PRAGMA_INVARIANT_ALL EOL { - if (state->language_version < 120) { + if (state->language_version < 120 && !state->Const.GLSL_100ES) { _mesa_glsl_warning(& @1, state, "pragma `invariant(all)' not supported in %s", state->version_string);