glsl: move stream layout qualifier validation
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 13 Nov 2015 07:47:55 +0000 (18:47 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Fri, 20 Nov 2015 20:27:15 +0000 (07:27 +1100)
commit17e224e8ec9c190fb856a60a22d8e19b8f20837e
treea9df2a3b975c1dbeef0428a32a7b6dfe7d852fdf
parentefa34e4a1d09c6f140fba7ff339a989ea079e212
glsl: move stream layout qualifier validation

We are moving this out of the parser in preparation for compile
time constant support.

The reason a validation function is used rather than an apply
function like what is used with bindings is because glsl allows
streams to be defined on members of blocks even though they must
match the stream thats associated with the current block, this
means we need access to the value after validation to do this
comparision.

V2: Fix typo in comment (Emil)

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser.yy