diff options
author | Lionel Landwerlin <[email protected]> | 2019-07-26 22:47:09 +0300 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2019-07-30 17:43:59 +0000 |
commit | 7deb5ec0e89769382fb5dd86aa5305001ae413fa (patch) | |
tree | 70e0eb6ffcba9f11b194a1d39df8f2191fd09533 /src/compiler | |
parent | 587a49752943972791c328bb2cb926b231601da1 (diff) |
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 <[email protected]>
Fixes: 0fb61dfdeb ("spirv: propagate access qualifiers through ssa & pointer")
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |