glsl: only add outward facing varyings to resourse list for SSO
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 23 Dec 2015 22:50:59 +0000 (09:50 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 5 Jan 2016 23:52:48 +0000 (10:52 +1100)
commit0508d9504aa71cd5032ec27a8ab1127037f2df78
treeeafb2b5557c1866b63607f1162ed72e94209eaa9
parent4d2a7f511169ed4c7f63189f21f2acc7577da94a
glsl: only add outward facing varyings to resourse list for SSO

An SSO program can have multiple stages and we only want to add the externally
facing varyings. The current code was adding both the packed inputs and outputs
for the first and last stage of each program.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/glsl/linker.cpp