glsl: stub out _mesa_reference_program() in standalone compiler
The follow patch will call this directly from the linker, the shader cache will also start calling these from the compiler.
This commit is contained in:
@@ -61,6 +61,14 @@ _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
|
|||||||
*ptr = sh;
|
*ptr = sh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_mesa_reference_program_(struct gl_context *ctx, struct gl_program **ptr,
|
||||||
|
struct gl_program *prog)
|
||||||
|
{
|
||||||
|
(void) ctx;
|
||||||
|
*ptr = prog;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_mesa_shader_debug(struct gl_context *, GLenum, GLuint *,
|
_mesa_shader_debug(struct gl_context *, GLenum, GLuint *,
|
||||||
const char *)
|
const char *)
|
||||||
|
@@ -42,6 +42,10 @@ extern "C" void
|
|||||||
_mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
|
_mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
|
||||||
struct gl_shader *sh);
|
struct gl_shader *sh);
|
||||||
|
|
||||||
|
extern "C" void
|
||||||
|
_mesa_reference_program_(struct gl_context *ctx, struct gl_program **ptr,
|
||||||
|
struct gl_program *prog);
|
||||||
|
|
||||||
extern "C" struct gl_shader *
|
extern "C" struct gl_shader *
|
||||||
_mesa_new_shader(GLuint name, gl_shader_stage stage);
|
_mesa_new_shader(GLuint name, gl_shader_stage stage);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user