[Mesa-dev] [PATCH 1/1] glsl: warning: pragma `invariant(all)' not supported in GLSL ES 1.00

Oliver McFadden oliver.mcfadden at linux.intel.com
Sun Jul 8 16:06:19 PDT 2012

On Fri, Jul 06, 2012 at 02:18:12PM -0700, Eric Anholt wrote:
> Oliver McFadden <oliver.mcfadden at linux.intel.com> writes:
> > 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>
> Could we get a piglit test for this?  Should be easy.

I am currently on vacation and just made this quick patch to scratch my
own itch, but yes, I'll can make a test for it when I return to work.

> Reviewed-by: Eric Anholt <eric at anholt.net>

Thanks, I'll push it when there is a Piglit test.

I also need to write some tests for the 'discard' statement in fragment
shaders; it's consistently bringing down i965 into a state where the
only way to get it back is to reboot. :-(

Oliver McFadden.

More information about the mesa-dev mailing list