glsl: Pass stage to add_interface_variables().
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Mar 2016 18:31:10 +0000 (11:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Apr 2016 04:58:25 +0000 (21:58 -0700)
commit356c99b4e79631e195058a2796eba0cdfc1d7a29
tree21506ba644115755b5d4c21bf30a1de1df3c86c0
parent2c5afe1fa98d01eb90577c8dbe785fc408f8608f
glsl: Pass stage to add_interface_variables().

add_interface_variables is supposed to add variables from either the
first or last stage of a linked shader.  But it has no way of knowing
the stage it's being asked to process, which makes it impossible to
produce correct stagerefs.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/linker.cpp