The special case in load_param_pointer is for images and samplers which
are definitely in the UniformConstant storage class.
---
src/compiler/spirv/vtn_cfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/spirv/vtn_cfg.c b/src/compiler/spirv/vtn_cfg.c
index 6c411c8..ed1ab5d 100644
--- a/src/compiler/spirv/vtn_cfg.c
+++ b/src/compiler/spirv/vtn_cfg.c
@@ -36,7 +36,7 @@ vtn_load_param_pointer(struct vtn_builder *b,
ptr_type = rzalloc(b, struct vtn_type);
ptr_type->base_type = vtn_base_type_pointer;
ptr_type->deref = param_type;
- ptr_type->storage_class = SpvStorageClassFunction;
+ ptr_type->storage_class = SpvStorageClassUniformConstant;
}
return vtn_pointer_from_ssa(b, nir_load_param(&b->nb, param_idx), ptr_type);
--
2.5.0.400.gff86faf
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev