glsl: Check that interpolation quals only apply to vertex ins and fragment outs
authorChad Versace <chad.versace@intel.com>
Wed, 12 Jan 2011 02:13:26 +0000 (18:13 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 17:41:25 +0000 (09:41 -0800)
commit8faaa4a672c1062e486eda2525287715b554342d
tree3d41f2dd1efb79c9db09f476aaee1a0e39a41f5b
parent605aacc67d73db0926e0046a90a07fcd93a2d613
glsl: Check that interpolation quals only apply to vertex ins and fragment outs

The check is performed only in GLSL versions >= 1.30.

Fixes the following Piglit tests:
* spec/glsl-1.30/compiler/interpolation-qualifiers/fs-smooth-02.frag
* spec/glsl-1.30/compiler/interpolation-qualifiers/vs-smooth-01.vert
src/glsl/ast_to_hir.cpp