glsl: only do type and qualifier validation once per declaration
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 12 Nov 2015 23:27:00 +0000 (10:27 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Tue, 17 Nov 2015 20:29:47 +0000 (07:29 +1100)
commitc54865db784ec26406aa98ebe67d86568ab9fc96
tree01864d45f7b8ce11f2bd3f9852e23e4d01862d4f
parent14d343b0247e8ce826b43c4cb0f9e8c94102167e
glsl: only do type and qualifier validation once per declaration

For struct and block members previously we were doing it for
every variable declaration.

So for example

struct S {
  atomic_uint x, y, z;
};

Would previously generate three error messages when one is sufficient.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/glsl/ast_to_hir.cpp