glsl: dont allow undefined array sizes in ES
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 8 Mar 2016 09:35:41 +0000 (20:35 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 9 Mar 2016 09:30:42 +0000 (20:30 +1100)
commit2188c77a0ee9b29f89dde316116d53fe22e526e0
tree88a77fc5614373937a0402d565a7e4daeadd3a4a
parent353a4f844f9e845dad93de9c28fa0d484b4b92d3
glsl: dont allow undefined array sizes in ES

This applies the rule to empty declarations.

Fixes:
dEQP-GLES3.functional.shaders.arrays.invalid.empty_declaration_without_var_name_vertex
dEQP-GLES3.functional.shaders.arrays.invalid.empty_declaration_without_var_name_fragment

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ast_to_hir.cpp