summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/linker_util.h
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2018-05-12 09:59:32 +0200
committerAlejandro Piñeiro <[email protected]>2018-06-21 14:25:05 +0200
commit215c9359ed1e71757b677787fb79aa4009c43605 (patch)
treebdc3f0697fa202a8c2962437f5371ea2fade3bd8 /src/compiler/glsl/linker_util.h
parent2bf91733fcb5ff8f74d71de03feeb5f3d664d199 (diff)
compiler/link: move add_program_resource to linker_util
So it could be used by the GLSL and NIR linker. v2: (Timothy Arceri) * Moved from compiler to compiler/glsl * Method renamed to link_util_add_program_resource Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker_util.h')
-rw-r--r--src/compiler/glsl/linker_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/linker_util.h b/src/compiler/glsl/linker_util.h
index 162db3e532f..17da92fca99 100644
--- a/src/compiler/glsl/linker_util.h
+++ b/src/compiler/glsl/linker_util.h
@@ -36,6 +36,11 @@ linker_error(struct gl_shader_program *prog, const char *fmt, ...);
void
linker_warning(struct gl_shader_program *prog, const char *fmt, ...);
+bool
+link_util_add_program_resource(struct gl_shader_program *prog,
+ struct set *resource_set,
+ GLenum type, const void *data, uint8_t stages);
+
#ifdef __cplusplus
}
#endif