glsl: remove duplicate embedded struct validation
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 11 Feb 2016 04:45:05 +0000 (15:45 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 11 Feb 2016 22:06:49 +0000 (09:06 +1100)
commit98d3cc9fbcdf4f630921a763261925d91bd04053
tree126e602b486e2206f9a9e8f5a0154695ae958f6a
parent0d4898ae8068d3984242775a6fcc87f280c0ac5a
glsl: remove duplicate embedded struct validation

Commit c98deb18d5836f in 2010 disallowed embedded struct definitions
in ES. Then in 2013 d9bb8b7b56ce65b disallowed it for everything but
GLSL 1.10.

Commit c98deb18d5836f seemed the cleanest way to do the check so its
been extended to cover GL and the other version has been removed.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h