glsl: Don't allow vertex shader input arrays until GLSL 1.50. 96/7496/1
authorPaul Berry <stereotype441@gmail.com>
Thu, 11 Jul 2013 22:40:11 +0000 (15:40 -0700)
committerPaul Berry <stereotype441@gmail.com>
Mon, 15 Jul 2013 14:50:47 +0000 (07:50 -0700)
commitb2265db8e77b531e380c47bb5bf31a3c0aa36e08
treefa33f436d54dba768bbc29d12f4bcda4ece652c4
parentb616d0166158872a135153e27c391424fe655117
glsl: Don't allow vertex shader input arrays until GLSL 1.50.

Vertex shader inputs are not allowed to be arrays until GLSL 1.50.  We
were accidentally enabling them for GLSL 1.40 (although we haven't
written any tests for them, so it's not clear whether they actually
work).

NOTE: although this is a simple bug fix, it probably isn't sensible to
cherry-pick it to stable release branches, since its only effect is to
cause incorrectly-written shaders to fail to compile.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp