glsl: Disallow primitive type layout qualifier on variables.
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 12 Jun 2014 09:17:13 +0000 (21:17 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 25 Jun 2014 19:58:25 +0000 (07:58 +1200)
commit91b8ecbe1c134604fc87b3761a308b15a6caf394
treee13fec2fb13327b3f05f868a242bc8988921ced2
parentd4703f94460b4571c82167dbe29207c448aeed7c
glsl: Disallow primitive type layout qualifier on variables.

This only makes any sense on the GS input or output layout declaration,
nowhere else.

Fixes the piglit tests:

  * spec/glsl-1.50/compiler/incorrect-in-layout-qualifiers-with-variable-declarations.geom
  * spec/glsl-1.50/compiler/incorrect-out-layout-qualifiers-with-variable-declarations.geom
  * spec/glsl-1.50/compiler/layout-fs-no-output.frag
  * spec/glsl-1.50/compiler/layout-vs-no-input.vert
  * spec/glsl-1.50/compiler/layout-vs-no-output.vert

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp