From 1c41f63e2637f786fd5c558dd4b486767a7ebe1d Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 19 Apr 2021 17:32:55 -0700 Subject: [PATCH] vtn: Propagate access data from UBO/SSBO/push constant types to variables of that type, not just their pointers Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/spirv/vtn_variables.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 4df95baaa9e..01d79a9f2be 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1840,6 +1840,7 @@ vtn_create_variable(struct vtn_builder *b, struct vtn_value *val, var->var->data.mode = nir_mode; var->var->data.location = -1; var->var->data.driver_location = 0; + var->var->data.access = var->type->access; break; case vtn_variable_mode_workgroup: