Mesa (master): glsl: warning: pragma `invariant(all)' not supported in GLSL ES 1.00
Oliver McFadden
omcfadde at kemper.freedesktop.org
Thu Jul 26 10:12:30 UTC 2012
Module: Mesa
Branch: master
Commit: e72f20641a6ea7875b6021aac13e778ada3b3d50
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e72f20641a6ea7875b6021aac13e778ada3b3d50
Author: Oliver McFadden <oliver.mcfadden at linux.intel.com>
Date: Thu Jul 5 11:22:06 2012 +0300
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 <oliver.mcfadden at linux.intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/glsl/glsl_parser.yy | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index b2533c8..f61d6b8 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);
More information about the mesa-commit
mailing list