aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/gl_nir_linker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/gl_nir_linker.c')
-rw-r--r--src/compiler/glsl/gl_nir_linker.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/glsl/gl_nir_linker.c b/src/compiler/glsl/gl_nir_linker.c
index 57ee435fa27..4503231c6c2 100644
--- a/src/compiler/glsl/gl_nir_linker.c
+++ b/src/compiler/glsl/gl_nir_linker.c
@@ -244,5 +244,12 @@ nir_build_program_resource_list(struct gl_context *ctx,
return;
}
+ /* Add atomic counter buffers. */
+ for (unsigned i = 0; i < prog->data->NumAtomicBuffers; i++) {
+ if (!link_util_add_program_resource(prog, resource_set, GL_ATOMIC_COUNTER_BUFFER,
+ &prog->data->AtomicBuffers[i], 0))
+ return;
+ }
+
_mesa_set_destroy(resource_set, NULL);
}