summaryrefslogtreecommitdiffstats
path: root/src/glsl/link_uniforms.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-08-09 16:25:50 +1000
committerTimothy Arceri <[email protected]>2015-08-31 13:10:44 +1000
commitc8bc8d723598ec87bbce9a2439075dfe1612a359 (patch)
treeed21cca8a3b004c50a727cc685883489ac09248d /src/glsl/link_uniforms.cpp
parent0d19dc302f21d00b88ccb7b70e5a110d17ea4fdf (diff)
glsl: remove specical case subroutine type counting
Unlike samplers we can get the correct value for subroutines from component_slots() Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/glsl/link_uniforms.cpp')
-rw-r--r--src/glsl/link_uniforms.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 254086dc050..a0cb6182925 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -47,10 +47,9 @@
static unsigned
values_for_type(const glsl_type *type)
{
- if (type->is_sampler() || type->is_subroutine()) {
+ if (type->is_sampler()) {
return 1;
- } else if (type->is_array() && (type->fields.array->is_sampler() ||
- type->fields.array->is_subroutine())) {
+ } else if (type->is_array() && type->fields.array->is_sampler()) {
return type->array_size();
} else {
return type->component_slots();