linker: First bits of intrastage, intershader function linking

This handles the easy case of linking a function in a different
compilation unit that doesn't call any functions or reference any
global variables.
This commit is contained in:
Ian Romanick
2010-07-13 17:36:13 -07:00
parent a48a2b66e8
commit 8fe8a814b0
4 changed files with 214 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ extern "C" {
#include "program.h"
#include "hash_table.h"
#include "shader_api.h"
#include "linker.h"
/**
* Visitor that determines whether or not a variable is ever written.
@@ -699,6 +700,7 @@ link_intrastage_shaders(struct gl_shader_program *prog,
/* Resolve initializers for global variables in the linked shader.
*/
link_function_calls(prog, linked, shader_list, num_shaders);
return linked;
}