glsl: Disallow interpolation qualifiers on non-input/output variables.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Aug 2013 08:28:58 +0000 (01:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Aug 2013 15:24:23 +0000 (08:24 -0700)
commita1ddbd1d7cb7ba5160f968d42219d9cdd1034ed4
treec3d9d080a7e52591ef3e5d4532f88fe15905e396
parent7d2423a09ec8a40b7da7c90fe3cb863d03f96b39
glsl: Disallow interpolation qualifiers on non-input/output variables.

Commit 2548092ad8015 switched the sense of interpolation qualifier
checks in order to permit them on geometry shader in/out variables.

In doing so, it accidentally allowed interpolation qualifiers to be
applied to ordinary variables and function parameters.

Fixes a regression in Piglit's local-smooth-01.frag.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp