glsl: add always_active_io attribute to ir_variable
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sun, 25 Oct 2015 14:01:34 +0000 (15:01 +0100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 1 Dec 2015 01:46:26 +0000 (12:46 +1100)
commit618612f867ed8140409796535314d9b9ed58440b
treec6e4b8c3cecad5a349218ef8632242af8a2648b1
parent76c09c1792ff1209bd34e1ae0e17b9c4929a892f
glsl: add always_active_io attribute to ir_variable

The value will be set in separate-shader program when an input/output
must remains active. e.g. when deadcode removal isn't allowed because
it will create interface location/name-matching mismatch.

v3:
* Rename the attribute
* Use ir_variable directly instead of ir_variable_refcount_visitor
* Move the foreach IR code in the linker file

v4:
* Fix variable name in assert

v5 (by Timothy Arceri):
* Rename functions and reword comments
* Don't set always active on builtins

Signed-off-by: Gregory Hainaut <gregory.hainaut@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/linker.cpp