[Mesa-dev] [PATCH 43/68] glsl: make uniform values helper available for use elsewhere

Timothy Arceri timothy.arceri at collabora.com
Wed Jun 1 06:23:24 UTC 2016


---
 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 e517b7e..a25ab4e 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 3a0ec8b..f026732 100644
--- a/src/compiler/glsl/linker.h
+++ b/src/compiler/glsl/linker.h
@@ -83,6 +83,9 @@ void
 validate_interstage_uniform_blocks(struct gl_shader_program *prog,
                                    gl_shader **stages, int num_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.5.5



More information about the mesa-dev mailing list