glsl: Don't do structure splitting until link time.
authorEric Anholt <eric@anholt.net>
Wed, 7 Sep 2011 19:04:57 +0000 (12:04 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 9 Sep 2011 03:20:49 +0000 (20:20 -0700)
commit60df737ad57c20701b66d7cd3f63d1dc75745986
treec79ef73f135d828c66efd18cf940263126ef1e55
parent525cec98a5c65c27c62fed0cff706bca50bf8c6e
glsl: Don't do structure splitting until link time.

We were splitting on each side of an unlinked program, and the two
sides lost track of which variables they referenced, resulting in
assertion failure during validation.  Fixes piglit
link-struct-uniform-usage.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser_extras.cpp