diff options
author | Alejandro Piñeiro <[email protected]> | 2017-10-27 12:40:35 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2018-07-03 12:37:32 +0200 |
commit | 768c275debb2ccf0e3093a893e19345f359b5c58 (patch) | |
tree | ec2cbe3a7b8e980e9d33fb5b4c4c07e69c26fdc7 /src/compiler/spirv | |
parent | a9e6298727e4e2acbc09cf7efdbd8b5b4b192973 (diff) |
spirv/nir: SpvStorageClassAtomicCounter support on vtn_storage_class_to_mode
Atomic Counters are uniforms per spec.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 574f422ceab..6a2144ceabb 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1481,9 +1481,12 @@ vtn_storage_class_to_mode(struct vtn_builder *b, mode = vtn_variable_mode_workgroup; nir_mode = nir_var_shared; break; + case SpvStorageClassAtomicCounter: + mode = vtn_variable_mode_uniform; + nir_mode = nir_var_uniform; + break; case SpvStorageClassCrossWorkgroup: case SpvStorageClassGeneric: - case SpvStorageClassAtomicCounter: default: vtn_fail("Unhandled variable storage class"); } |