glsl: don't dead code remove SSO varyings marked as active
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sun, 25 Oct 2015 14:01:35 +0000 (15:01 +0100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 1 Dec 2015 01:46:32 +0000 (12:46 +1100)
commit8117f46f496fb31339fc97a2501d5b3325a1fefb
tree6005c2e5fd2e26e0e01449d41a3c327fe592c36c
parent618612f867ed8140409796535314d9b9ed58440b
glsl: don't dead code remove SSO varyings marked as active

GL_ARB_separate_shader_objects allow matching by name variable or block
interface. Input varyings can't be removed because it is will impact the
location assignment.

This fixes the bug 79783 and likely any application that uses
GL_ARB_separate_shader_objects extension.

V2 (by Timothy Arceri):
* simplify now that builtins are not set as always active

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>
https://bugs.freedesktop.org/show_bug.cgi?id=79783
src/glsl/opt_dead_code.cpp