summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/standalone_scaffolding.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-12-20 21:37:25 +1100
committerTimothy Arceri <[email protected]>2016-12-31 09:48:51 +1100
commit68245aa6f5f832ba3066fb65050ff79ad3e5531c (patch)
treeab1099d0ff35577fbae59c108b05d93cdbd5958f /src/compiler/glsl/standalone_scaffolding.cpp
parent9d99dc4bc1fda9906e8dc576d6116fbdb05f67ac (diff)
glsl/mesa: add reference to gl_shader_program_data from gl_program
We also add the stubs for the standalone compiler in this change. By adding a reference here we can now refactor some code to use gl_program where we were previously awkwardly using gl_shader_program. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/glsl/standalone_scaffolding.cpp')
-rw-r--r--src/compiler/glsl/standalone_scaffolding.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/glsl/standalone_scaffolding.cpp b/src/compiler/glsl/standalone_scaffolding.cpp
index 9160ba03e90..546ba722ed3 100644
--- a/src/compiler/glsl/standalone_scaffolding.cpp
+++ b/src/compiler/glsl/standalone_scaffolding.cpp
@@ -54,6 +54,15 @@ _mesa_warning(struct gl_context *ctx, const char *fmt, ...)
}
void
+_mesa_reference_shader_program_data(struct gl_context *ctx,
+ struct gl_shader_program_data **ptr,
+ struct gl_shader_program_data *data)
+{
+ (void) ctx;
+ *ptr = data;
+}
+
+void
_mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
struct gl_shader *sh)
{