glsl: Disallow embedded structure definitions
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 13 Aug 2013 16:15:01 +0000 (09:15 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Aug 2013 23:39:04 +0000 (16:39 -0700)
commitd9bb8b7b56ce65bbf6909419aa6d3d69ccd34c08
treed94bb913b1d513a866f25ac551b3f5cfb1e1ebd3
parent5fb1dd51f3845985b9389987a1c6337e7fafeabc
glsl: Disallow embedded structure definitions

Continue to allow them in GLSL 1.10 because the spec allows it.
Generate an error in all other versions because the specs specifically
disallow it.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h