linker: Reject shaders that use too many varyings
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 9 Jun 2011 20:31:32 +0000 (13:31 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jun 2011 22:01:10 +0000 (15:01 -0700)
commitde77324d8f14951e4dc17f570e49451a0cd33121
treeef97ab7ead93107b361bfefec6928a802c768de0
parent4e5c51a05e70c215b284a38fc35850b485bbee8d
linker: Reject shaders that use too many varyings

Previously it was up to the driver or later code generator to reject
these shaders.  It turns out that nobody did this.

This will need changes to support geometry shaders.

NOTE: This is a candidate for the stable branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37743
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp