summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/gl_nir_linker.h
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2017-11-28 13:39:44 +0100
committerAlejandro Piñeiro <[email protected]>2018-07-03 12:41:46 +0200
commit6677e131b806b10754adcb7cf3f427a7fcc2aa09 (patch)
tree90de6bec0f602da1534a0cc4089e2b3041821dba /src/compiler/glsl/gl_nir_linker.h
parent1fb9984d7e6d93fb174ff1fb57d2b3b8eda45515 (diff)
nir/linker: Add a pure NIR implementation of the atomic counter linker
This is mostly just a straight-forward conversion of link_assign_atomic_counter_resources to C directly using nir variables instead of GLSL IR variables. It is based on the version of link_assign_atomic_counter_resources in 6b8909f2d1906. I’m noting this here to make it easier to track changes and keep the NIR version up-to-date. Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/gl_nir_linker.h')
-rw-r--r--src/compiler/glsl/gl_nir_linker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/gl_nir_linker.h b/src/compiler/glsl/gl_nir_linker.h
index 9567b9e7b8e..e1d493071ea 100644
--- a/src/compiler/glsl/gl_nir_linker.h
+++ b/src/compiler/glsl/gl_nir_linker.h
@@ -40,6 +40,9 @@ void gl_nir_set_uniform_initializers(struct gl_context *ctx,
void nir_build_program_resource_list(struct gl_context *ctx,
struct gl_shader_program *prog);
+void gl_nir_link_assign_atomic_counter_resources(struct gl_context *ctx,
+ struct gl_shader_program *prog);
+
#ifdef __cplusplus
} /* extern "C" */
#endif