glsl: Drop bogus is_vertex_input from add_shader_variable().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 16 Dec 2016 12:54:59 +0000 (04:54 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Dec 2016 23:40:47 +0000 (15:40 -0800)
commitad6d1d70ad55e317765d2212353d4a3387d5cbeb
tree43e17d9db2fb5876733f2e3390ca48b27d8a0c51
parent37d63b50b196afe61b4d7c33b1118a49a5e1e13f
glsl: Drop bogus is_vertex_input from add_shader_variable().

stage_mask is a bitmask of shader stages, so the proper comparison would
be (1 << MESA_SHADER_VERTEX), not MESA_SHADER_VERTEX itself.

But we only care for structure types, and VS inputs cannot be structs.
So we can just drop this entirely.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/compiler/glsl/linker.cpp