From 215c9359ed1e71757b677787fb79aa4009c43605 Mon Sep 17 00:00:00 2001 From: Alejandro PiƱeiro Date: Sat, 12 May 2018 09:59:32 +0200 Subject: 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 --- src/compiler/glsl/linker_util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compiler/glsl/linker_util.h') 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 -- cgit v1.2.3