[Mesa-dev] [PATCH 054.1/129] FIXUP! spirv: Use the right storage class for image pointers

Jason Ekstrand jason at jlekstrand.net
Fri Jun 1 19:40:31 UTC 2018


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



More information about the mesa-dev mailing list