glsl: Refactor a bunch of the code out of cross_validate_outputs_to_inputs
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 30 Aug 2013 22:41:53 +0000 (15:41 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Sep 2013 15:08:15 +0000 (08:08 -0700)
commitc0e4a4adb7c034c93b258620a5b357ad91229629
treedb55cac7388fa6c48c716f5d733b8642d0b81a7b
parent87252bf97b62bd536632978b9d53e4025b7db77d
glsl: Refactor a bunch of the code out of cross_validate_outputs_to_inputs

The new function, cross_validate_types_and_qualifiers, will have
multiple callers from this file in future commits.

v2: Don't pass the names of the producer / consumer stages to
cross_validate_types_and_qualifiers.  Instead, pass the types and get
the names only in the error paths.  Suggested by Paul.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/link_varyings.cpp