summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderobj.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-07 14:43:48 +1100
committerTimothy Arceri <[email protected]>2016-11-19 15:45:46 +1100
commit65cd0a0d7f411eefac81408ebf7b704ccd1c9bf7 (patch)
treef53070bc0cb2e26248eeab49dbf2191c3f841ba8 /src/mesa/main/shaderobj.h
parent0c85d2fea406df033c27201ba5e7257874a67a9a (diff)
mesa: create new gl_shader_program_data struct
This will be used to share data between gl_program and gl_shader_program allowing for greater code simplification as we can remove a number of awkward uses of gl_shader_program. Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderobj.h')
-rw-r--r--src/mesa/main/shaderobj.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/shaderobj.h b/src/mesa/main/shaderobj.h
index 12497328f98..c5153d09ba4 100644
--- a/src/mesa/main/shaderobj.h
+++ b/src/mesa/main/shaderobj.h
@@ -66,6 +66,11 @@ _mesa_reference_shader_program_(struct gl_context *ctx,
struct gl_shader_program **ptr,
struct gl_shader_program *shProg);
+void
+_mesa_reference_shader_program_data(struct gl_context *ctx,
+ struct gl_shader_program_data **ptr,
+ struct gl_shader_program_data *data);
+
static inline void
_mesa_reference_shader_program(struct gl_context *ctx,
struct gl_shader_program **ptr,