glsl/ast: Fix assertion failure when GS input declared as non-array.
authorPaul Berry <stereotype441@gmail.com>
Mon, 12 Aug 2013 13:39:23 +0000 (06:39 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 14 Aug 2013 03:02:54 +0000 (20:02 -0700)
commit91c8fea924c05801a1e05edcee00e53ea73e48b8
treec87e621a2b462fad80f30a9bd338b5fa11f4db60
parent336351e971d6232bbed11d9812ebf05341b6aa36
glsl/ast: Fix assertion failure when GS input declared as non-array.

Previously, if a geometry shader input was declared as a non-array, we
would flag the proper compiler error, but then before we got a chance
to report it to the client, handle_geometry_shader_input_decl() would
assertion fail.

With this patch, handle_geometry_shader_input_decl() ignores
non-arrays.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp