[Mesa-dev] [RFC 06/20] glsl: export populate_symbol_table function

Tapani Pälli tapani.palli at intel.com
Mon Jun 2 05:05:47 PDT 2014


Binary shader cache needs this to allocate and fill gl_shader symbol table.

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
---
 src/glsl/linker.cpp | 2 +-
 src/glsl/linker.h   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index a43d230..c448847 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -839,7 +839,7 @@ interstage_cross_validate_uniform_blocks(struct gl_shader_program *prog)
 /**
  * Populates a shaders symbol table with all global declarations
  */
-static void
+void
 populate_symbol_table(gl_shader *sh)
 {
    sh->symbols = new(sh) glsl_symbol_table;
diff --git a/src/glsl/linker.h b/src/glsl/linker.h
index 130915d..f0a947b 100644
--- a/src/glsl/linker.h
+++ b/src/glsl/linker.h
@@ -26,6 +26,9 @@
 #ifndef GLSL_LINKER_H
 #define GLSL_LINKER_H
 
+void
+populate_symbol_table(gl_shader *sh);
+
 extern bool
 link_function_calls(gl_shader_program *prog, gl_shader *main,
 		    gl_shader **shader_list, unsigned num_shaders);
-- 
1.8.3.1



More information about the mesa-dev mailing list