diff options
author | Eric Anholt <[email protected]> | 2010-08-10 20:11:44 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-13 17:54:42 -0700 |
commit | d19eecef54384c163af27a470496ed885a5a271b (patch) | |
tree | 350937a634dbf44545781b2618544d8b94668327 /src/mesa/main/shaderobj.c | |
parent | 013bbbbb0ac52a12d1e4413700dc40dee70186f8 (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/main/shaderobj.c')
-rw-r--r-- | src/mesa/main/shaderobj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index 129d9742247..863d50fbe55 100644 --- a/src/mesa/main/shaderobj.c +++ b/src/mesa/main/shaderobj.c @@ -387,4 +387,6 @@ _mesa_init_shader_object_functions(struct dd_function_table *driver) driver->DeleteShader = __mesa_delete_shader; driver->NewShaderProgram = _mesa_new_shader_program; driver->DeleteShaderProgram = __mesa_delete_shader_program; + driver->CompileShader = _mesa_ir_compile_shader; + driver->LinkShader = _mesa_ir_link_shader; } |