linker: Improve handling of unread/unwritten shader inputs/outputs
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 20 Oct 2010 00:59:10 +0000 (17:59 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 20 Oct 2010 01:12:32 +0000 (18:12 -0700)
commitcc90e62d70d91fb16abcd66c61c211c0fd573339
tree939bbededa4fa2698bd96a6ae9578dcadac22f22
parent974fb466f299fc569a86097936ab89c8c369f6d2
linker: Improve handling of unread/unwritten shader inputs/outputs

Previously some shader input or outputs that hadn't received location
assignments could slip through.  This could happen when a shader
contained user-defined varyings and was used with either
fixed-function or assembly shaders.

See the piglit tests glsl-[fv]s-user-varying-ff and
sso-user-varying-0[12].

NOTE: this is a candidate for the 7.9 branch.
src/glsl/linker.cpp