glsl: get rid of values_for_type()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Apr 2017 17:02:28 +0000 (19:02 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 21 Apr 2017 08:08:32 +0000 (10:08 +0200)
commit862361c4f547efbbc9ff7d01b65ac43c42545db9
treeb3ebd2a563eb84c7eab128115f2b6f967e452302
parent4a0aa0b3b3c07469aeef5d627f63adda6f5bcf5a
glsl: get rid of values_for_type()

This function is actually a wrapper for component_slots()
and it always returns 1 (or N) for samplers. Since
component_slots() now return 1 for samplers, it can go.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/link_uniforms.cpp
src/compiler/glsl/linker.h
src/compiler/glsl/shader_cache.cpp