[Mesa-dev] [PATCH 07/77] glsl: stub out _mesa_reference_program() in standalone compiler

Timothy Arceri timothy.arceri at collabora.com
Mon Oct 3 06:04:26 UTC 2016


The shader cache will start calling these from the compiler.
---
 src/compiler/glsl/standalone_scaffolding.cpp | 8 ++++++++
 src/compiler/glsl/standalone_scaffolding.h   | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/src/compiler/glsl/standalone_scaffolding.cpp b/src/compiler/glsl/standalone_scaffolding.cpp
index aa79b86..956be6d 100644
--- a/src/compiler/glsl/standalone_scaffolding.cpp
+++ b/src/compiler/glsl/standalone_scaffolding.cpp
@@ -62,6 +62,14 @@ _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
 }
 
 void
+_mesa_reference_program_(struct gl_context *ctx, struct gl_program **ptr,
+                         struct gl_program *prog)
+{
+   (void) ctx;
+   *ptr = prog;
+}
+
+void
 _mesa_shader_debug(struct gl_context *, GLenum, GLuint *,
                    const char *)
 {
diff --git a/src/compiler/glsl/standalone_scaffolding.h b/src/compiler/glsl/standalone_scaffolding.h
index b56dd3e..7d2ef24 100644
--- a/src/compiler/glsl/standalone_scaffolding.h
+++ b/src/compiler/glsl/standalone_scaffolding.h
@@ -42,6 +42,10 @@ extern "C" void
 _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
                        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 *
 _mesa_new_shader(GLuint name, gl_shader_stage stage);
 
-- 
2.7.4



More information about the mesa-dev mailing list