glsl: make uniform values helper available for use elsewhere

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Timothy Arceri
2016-04-13 15:42:04 +10:00
committed by Timothy Arceri
parent bb16cf805d
commit 49f3439089
2 changed files with 4 additions and 1 deletions

View File

@@ -45,7 +45,7 @@
/** /**
* Count the backing storage requirements for a type * Count the backing storage requirements for a type
*/ */
static unsigned unsigned
values_for_type(const glsl_type *type) values_for_type(const glsl_type *type)
{ {
if (type->is_sampler()) { if (type->is_sampler()) {

View File

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