[Mesa-dev] [PATCH 03/16] spirv/nir: SpvStorageClassAtomicCounter support on vtn_storage_class_to_mode
Alejandro PiƱeiro
apinheiro at igalia.com
Mon Jul 2 14:58:32 UTC 2018
Atomic Counters are uniforms per spec.
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
---
src/compiler/spirv/vtn_variables.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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");
}
--
2.14.1
More information about the mesa-dev
mailing list