glsl/linker: Make separate ir_variable field to mean "unmatched".
authorPaul Berry <stereotype441@gmail.com>
Tue, 4 Dec 2012 23:17:01 +0000 (15:17 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 14 Dec 2012 18:48:38 +0000 (10:48 -0800)
commit3c9c17db4a02ab5b1b2f60b9655c20319d9a9093
tree2b94d44183eb5e5062d660f9afc04d9ea635b9ca
parent50895d443ae7b96cb7de6b41857393d4e129d6eb
glsl/linker: Make separate ir_variable field to mean "unmatched".

Previously, the linker used a value of -1 in ir_variable::location to
denote a generic input or output of the shader that had not yet been
matched up to a variable in another pipeline stage.

This patch introduces a new ir_variable field,
is_unmatched_generic_inout, for that purpose.

In future patches, this will allow us to separate the process of
matching varyings between shader stages from the processes of
assigning locations to those varying.  That will in turn pave the way
for packing varyings.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir.h
src/glsl/linker.cpp