From 49f34390899e5507fc67ae374f9a92e4d9a9a7bb Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 13 Apr 2016 15:42:04 +1000 Subject: [PATCH] glsl: make uniform values helper available for use elsewhere MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/link_uniforms.cpp | 2 +- src/compiler/glsl/linker.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index e9a2053..2b27793 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++ b/src/compiler/glsl/link_uniforms.cpp @@ -45,7 +45,7 @@ /** * Count the backing storage requirements for a type */ -static unsigned +unsigned values_for_type(const glsl_type *type) { if (type->is_sampler()) { diff --git a/src/compiler/glsl/linker.h b/src/compiler/glsl/linker.h index 9841ef0..abcfdb1 100644 --- a/src/compiler/glsl/linker.h +++ b/src/compiler/glsl/linker.h @@ -76,6 +76,9 @@ 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); -- 2.7.4