summaryrefslogtreecommitdiff
path: root/src/mesa/program/ir_to_mesa.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-10 20:11:44 -0700
committerEric Anholt <eric@anholt.net>2010-08-13 17:54:42 -0700
commitd19eecef54384c163af27a470496ed885a5a271b (patch)
tree350937a634dbf44545781b2618544d8b94668327 /src/mesa/program/ir_to_mesa.h
parent013bbbbb0ac52a12d1e4413700dc40dee70186f8 (diff)
glsl2: Move ir_to_mesa handling to driver CompileShader and LinkShader hooks.
This lets drivers override ir_to_mesa with their own codegen, or at least have a native alternative.
Diffstat (limited to 'src/mesa/program/ir_to_mesa.h')
-rw-r--r--src/mesa/program/ir_to_mesa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.h b/src/mesa/program/ir_to_mesa.h
index e832f84e75..ecaacde4bb 100644
--- a/src/mesa/program/ir_to_mesa.h
+++ b/src/mesa/program/ir_to_mesa.h
@@ -30,6 +30,8 @@ extern "C" {
void _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *sh);
void _mesa_glsl_link_shader(GLcontext *ctx, struct gl_shader_program *prog);
+GLboolean _mesa_ir_compile_shader(GLcontext *ctx, struct gl_shader *shader);
+GLboolean _mesa_ir_link_shader(GLcontext *ctx, struct gl_shader_program *prog);
#ifdef __cplusplus
}