From: Lionel Landwerlin Date: Fri, 26 Jul 2019 19:47:09 +0000 (+0300) Subject: spirv: don't discard access set by vtn_pointer_dereference X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7deb5ec0e89769382fb5dd86aa5305001ae413fa;p=mesa.git spirv: don't discard access set by vtn_pointer_dereference We can have a access flag already set here so just augment the existing ones. Signed-off-by: Lionel Landwerlin Fixes: 0fb61dfdeb ("spirv: propagate access qualifiers through ssa & pointer") Reviewed-by: Caio Marcelo de Oliveira Filho --- diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index c73cbd37cec..d4e3cac5db3 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -2510,7 +2510,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode, struct vtn_pointer *ptr = vtn_pointer_dereference(b, base_val->pointer, chain); ptr->ptr_type = ptr_type; - ptr->access = access; + ptr->access |= access; vtn_push_value_pointer(b, w[2], ptr); } break;