summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-12-17 14:20:35 -0800
committerPaul Berry <stereotype441@gmail.com>2013-01-08 09:09:09 -0800
commit4b11b57ab47b98b335a7212080dbccef04542805 (patch)
tree626e87c5d4f65ce3205becd943c3a54a266d82ad /src/glsl/linker.h
parent8706395f25228d0e622cc56346c7181ba102edf4 (diff)
downloadexternal_mesa3d-4b11b57ab47b98b335a7212080dbccef04542805.zip
external_mesa3d-4b11b57ab47b98b335a7212080dbccef04542805.tar.gz
external_mesa3d-4b11b57ab47b98b335a7212080dbccef04542805.tar.bz2
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>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r--src/glsl/linker.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h
index 7d2e98a..67c7f34 100644
--- a/src/glsl/linker.h
+++ b/src/glsl/linker.h
@@ -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 */