glsl: remove duplicate embedded struct validation

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

Commit c98deb18d5 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>
This commit is contained in:
Timothy Arceri
2016-02-11 15:45:05 +11:00
parent 0d4898ae80
commit 98d3cc9fbc
3 changed files with 17 additions and 51 deletions

View File

@@ -289,13 +289,6 @@ struct _mesa_glsl_parse_state {
unsigned forced_language_version;
gl_shader_stage stage;
/**
* Number of nested struct_specifier levels
*
* Outside a struct_specifier, this is zero.
*/
unsigned struct_specifier_depth;
/**
* Default uniform layout qualifiers tracked during parsing.
* Currently affects uniform blocks and uniform buffer variables in