summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-19 14:49:48 +1100
committerTimothy Arceri <[email protected]>2016-10-26 14:29:36 +1100
commite40d32b3ec0793b475004b8f36b17f1493806271 (patch)
tree7064257c277e14a14e8c261973581efd8b827180 /src/mesa/main/shaderapi.h
parent68db0fe0346386c8d231eb81da6340b24b7878b0 (diff)
mesa: modify _mesa_copy_linked_program_data() to take gl_linked_shader
This allows us to do some small tidy ups, but will also allow us to call a new function that copies values to a shared shader info from here. In order to make this change this function now requires _mesa_reference_program() to have previously been called. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.h')
-rw-r--r--src/mesa/main/shaderapi.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h
index 4297bfa3d65..50929f4483e 100644
--- a/src/mesa/main/shaderapi.h
+++ b/src/mesa/main/shaderapi.h
@@ -218,9 +218,8 @@ _mesa_use_shader_program(struct gl_context *ctx, GLenum type,
struct gl_pipeline_object *shTarget);
extern void
-_mesa_copy_linked_program_data(gl_shader_stage type,
- const struct gl_shader_program *src,
- struct gl_program *dst);
+_mesa_copy_linked_program_data(const struct gl_shader_program *src,
+ struct gl_linked_shader *dst_sh);
extern bool
_mesa_validate_shader_target(const struct gl_context *ctx, GLenum type);