diff options
author | Ian Romanick <[email protected]> | 2014-06-19 12:05:20 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-09-10 11:05:05 -0700 |
commit | 04d3323d4b7b7cae4954d80946f0ca202770dd14 (patch) | |
tree | 19c9136a72a516a064affedade6749623f39bce8 /src/glsl/linker.cpp | |
parent | 1e87fbd78f15f262b3dd2cbc16099e9f484c42a0 (diff) |
glsl/linker: Make get_main_function_signature public
The next patch will use this function in a different file.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index e9cf5503a27..bdd81c79065 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -1115,8 +1115,8 @@ move_non_declarations(exec_list *instructions, exec_node *last, /** * Get the function signature for main from a shader */ -static ir_function_signature * -get_main_function_signature(gl_shader *sh) +ir_function_signature * +link_get_main_function_signature(gl_shader *sh) { ir_function *const f = sh->symbols->get_function("main"); if (f != NULL) { @@ -1644,7 +1644,7 @@ link_intrastage_shaders(void *mem_ctx, */ gl_shader *main = NULL; for (unsigned i = 0; i < num_shaders; i++) { - if (get_main_function_signature(shader_list[i]) != NULL) { + if (link_get_main_function_signature(shader_list[i]) != NULL) { main = shader_list[i]; break; } @@ -1673,7 +1673,8 @@ link_intrastage_shaders(void *mem_ctx, /* The a pointer to the main function in the final linked shader (i.e., the * copy of the original shader that contained the main function). */ - ir_function_signature *const main_sig = get_main_function_signature(linked); + ir_function_signature *const main_sig = + link_get_main_function_signature(linked); /* Move any instructions other than variable declarations or function * declarations into main. |