glsl: Check that 'centroid in' does not occur in vertex shader
authorChad Versace <chad.versace@intel.com>
Wed, 12 Jan 2011 02:24:17 +0000 (18:24 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 17:41:25 +0000 (09:41 -0800)
commit1eb0f17fa4aa548779cb7d8ffbd86de3523d6796
tree69eaae682db49312aa1e0219a04b10f8ac88b0d9
parent8faaa4a672c1062e486eda2525287715b554342d
glsl: Check that 'centroid in' does not occur in vertex shader

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

From section 4.3.4 of the GLSL 1.30 spec:
   "It is an error to use centroid in in a vertex shader."

Fixes Piglit test
spec/glsl-1.30/compiler/storage-qualifiers/vs-centroid-in-01.vert
src/glsl/ast_to_hir.cpp