glsl: Separate varying linking code to its own file.

linker.cpp is getting pretty big, and we're about to add even more
varying packing code, so split out the linker code that concerns
varyings to its own file.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Paul Berry
2012-12-17 14:20:35 -08:00
parent 8706395f25
commit 4b11b57ab4
5 changed files with 1240 additions and 1124 deletions

View File

@@ -91,4 +91,13 @@ private:
void recursion(const glsl_type *t, char **name, size_t name_length);
};
void
linker_error(gl_shader_program *prog, const char *fmt, ...);
void
linker_warning(gl_shader_program *prog, const char *fmt, ...);
unsigned
count_attribute_slots(const glsl_type *t);
#endif /* GLSL_LINKER_H */