glsl/linker: annotate static functions as such
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 29 Dec 2015 10:02:55 +0000 (21:02 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 30 Dec 2015 00:51:58 +0000 (11:51 +1100)
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/glsl/link_uniform_block_active_visitor.cpp
src/glsl/link_uniform_blocks.cpp

index 422739af06363fe71cab2217a11971275582eb12..54fea700b5323c783016489f9586372b1a3caef5 100644 (file)
@@ -24,7 +24,7 @@
 #include "link_uniform_block_active_visitor.h"
 #include "program.h"
 
-link_uniform_block_active *
+static link_uniform_block_active *
 process_block(void *mem_ctx, struct hash_table *ht, ir_variable *var)
 {
    const hash_entry *const existing_block =
@@ -92,7 +92,7 @@ process_block(void *mem_ctx, struct hash_table *ht, ir_variable *var)
  * and not over complicating the code we will end up with a count of 8.
  * Here each dimension has 2 different indices counted so we end up with 2*2*2
  */
-struct uniform_block_array_elements **
+static struct uniform_block_array_elements **
 process_arrays(void *mem_ctx, ir_dereference_array *ir,
                struct link_uniform_block_active *block)
 {
index d5d30bb0a0dd39497084fc42e65a8865197e5099..7d75576585226b300876ec088a196dab50612b76 100644 (file)
@@ -266,7 +266,7 @@ process_block_array(struct uniform_block_array_elements *ub_array, char **name,
 /* This function resizes the array types of the block so that later we can use
  * this new size to correctly calculate the offest for indirect indexing.
  */
-const glsl_type *
+static const glsl_type *
 resize_block_array(const glsl_type *type,
                    struct uniform_block_array_elements *ub_array)
 {