glsl: add variable mode check to build_stageref
authorTapani Pälli <tapani.palli@intel.com>
Mon, 3 Aug 2015 05:48:32 +0000 (08:48 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 5 Aug 2015 04:25:53 +0000 (07:25 +0300)
commit18c5cdb9433b472d9aad13175295a848bce03185
treebbf27728f36605a0edb034bda86819f6e06de011
parent7d88413ade2c41054f79b20338253aacf1ac341d
glsl: add variable mode check to build_stageref

Currently stage reference mask is built using the variable name
only. However it can happen that input of one stage has same name
as output from another stage. Adding check of variable mode makes
sure we do not pick wrong variable.

Fixes some subcases from
   ES31-CTS.program_interface_query.no-locations

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/glsl/linker.cpp