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.
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 155c9d4..f7c178e 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -77,6 +77,7 @@
#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 @@
/* Resolve initializers for global variables in the linked shader.
*/
+ link_function_calls(prog, linked, shader_list, num_shaders);
return linked;
}