mesa: Move the common _mesa_glsl_compile_shader() code to glsl/.

This code had no relation to ir_to_mesa.cpp, since it was also used by
intel and state_tracker, and most of it was duplicated with the standalone
compiler (which has periodically drifted from the Mesa copy).

v2: Split from the ir_to_mesa to shaderapi.c changes.

Acked-by: Paul Berry <stereotype441@gmail.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt
2013-06-12 15:49:43 -07:00
parent 10c14d16d2
commit 0343f20e2f
6 changed files with 100 additions and 125 deletions
+14 -2
View File
@@ -24,15 +24,27 @@
#include "main/core.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void
_mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader,
bool dump_ast, bool dump_hir);
#ifdef __cplusplus
} /* extern "C" */
#endif
extern void
link_shaders(struct gl_context *ctx, struct gl_shader_program *prog);
extern void
linker_error(gl_shader_program *prog, const char *fmt, ...)
linker_error(struct gl_shader_program *prog, const char *fmt, ...)
PRINTFLIKE(2, 3);
extern void
linker_warning(gl_shader_program *prog, const char *fmt, ...)
linker_warning(struct gl_shader_program *prog, const char *fmt, ...)
PRINTFLIKE(2, 3);
extern long