diff options
author | Timothy Arceri <[email protected]> | 2019-12-23 11:37:57 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2020-01-07 09:50:57 +1100 |
commit | a853de0c95d5dce7aee983efd243377ffe3a6e91 (patch) | |
tree | 63a1c2f84b50aaf10e9425ea7fa23deda517f517 /src/compiler | |
parent | 8f2cab7767d2f0bcbb194f5c72bf89652f32e0f0 (diff) |
glsl: use nir linker to link atomics
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 63f4b46bd6b..cc770c4d7b1 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -4537,8 +4537,11 @@ link_and_validate_uniforms(struct gl_context *ctx, check_resources(ctx, prog); check_subroutine_resources(prog); check_image_resources(ctx, prog); - link_assign_atomic_counter_resources(ctx, prog); - link_check_atomic_counter_resources(ctx, prog); + + if (!ctx->Const.UseNIRGLSLLinker) { + link_assign_atomic_counter_resources(ctx, prog); + link_check_atomic_counter_resources(ctx, prog); + } } static bool |