diff options
author | Antia Puentes <[email protected]> | 2018-12-15 18:34:11 +0100 |
---|---|---|
committer | Alejandro PiƱeiro <[email protected]> | 2019-07-12 23:42:41 +0200 |
commit | e15c663d8e80bd75331336ecba49ce6791d8d1fd (patch) | |
tree | 9d7eae0122cf589c95e93986b71592882fa7bd62 /src | |
parent | e1464a1cf892b08902785d81c2e1f1c95e1083de (diff) |
nir/linker: Add atomic counters to the program resource list
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/gl_nir_linker.c | 7 |
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); } |