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>
This commit is contained in:
Samuel Pitoiset
2017-04-20 19:02:28 +02:00
parent 4a0aa0b3b3
commit 862361c4f5
3 changed files with 4 additions and 22 deletions

View File

@@ -75,9 +75,6 @@ void
validate_interstage_uniform_blocks(struct gl_shader_program *prog,
gl_linked_shader **stages);
unsigned
values_for_type(const glsl_type *type);
extern void
link_assign_atomic_counter_resources(struct gl_context *ctx,
struct gl_shader_program *prog);