mesa/src
Samuel Iglesias Gonsalvez fe1e89a026 glsl: don't allow invariant qualifiers for interface blocks
GLSL 1.50 and GLSL 4.40 specs, they both say the same in
"Interface Blocks" section:

"If optional qualifiers are used, they can include interpolation qualifiers,
auxiliary storage qualifiers, and storage qualifiers and they must declare
an input, output, or uniform member consistent with the interface qualifier
of the block"

From GLSL ES 3.0, chapter 4.3.7 "Interface Blocks", page 38:

"GLSL ES 3.0 does not support interface blocks for shader inputs or outputs."

and from GLSL ES 3.0, chapter 4.6.1 "The invariant qualifier", page 52.

"Only variables output from a shader can be candidates for invariance."

This patch fixes the following dEQP tests:

dEQP-GLES3.functional.shaders.declarations.invalid_declarations.invariant_uniform_block_2_vertex
dEQP-GLES3.functional.shaders.declarations.invalid_declarations.invariant_uniform_block_2_fragment

No piglit regressions.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>

v2:

- Enable this check for GLSL.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2015-02-20 09:35:08 +01:00
..
egl egl: Soften several HAVE_DRM_PLATFORM to HAVE_LIBDRM 2015-02-12 13:20:22 +00:00
gallium vc4: Keep an array of pointers to instructions defining the temps around. 2015-02-19 23:35:17 -08:00
gbm gbm: Define _DEFAULT_SOURCE to avoid warning 2015-01-16 21:54:54 -08:00
getopt
glsl glsl: don't allow invariant qualifiers for interface blocks 2015-02-20 09:35:08 +01:00
glx glx: do not leak the dri2 extension information 2015-02-18 11:02:25 +00:00
gtest gtest: Add headers to distribution. 2014-12-12 12:11:46 -08:00
hgl hgl: traverse add-on entries 2014-12-10 14:01:01 +00:00
loader loader: Remove NEED_OPENGL_COMMON check. 2015-01-23 14:28:44 -08:00
mapi glapi: add ARB_gpu_shader_fp64 (v2) 2015-02-19 00:28:33 -05:00
mesa i965/vec4: Add and use byte-MOV instruction for unpack 4x8. 2015-02-19 21:16:44 -08:00
util Use __typeof instead of typeof with Solaris Studio compilers 2015-02-17 18:16:33 -08:00
Makefile.am glsl: Build a libglsl_util library. 2015-01-23 14:28:44 -08:00
SConscript egl: Fix non-dri SCons builds re #87657 2014-12-25 10:34:49 -05:00