diff options
author | Lionel Landwerlin <[email protected]> | 2019-07-26 22:47:09 +0300 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2019-07-31 07:58:43 +0000 |
commit | d06ccdf9ddffab2006fcef619db1940593d9d6f6 (patch) | |
tree | 02db0ed279db830e24cd2c52441e0577da16408b /src/compiler | |
parent | ad72ce1ad760e2c78692ce7a075b01d62df570ca (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]>
(cherry picked from commit 7deb5ec0e89769382fb5dd86aa5305001ae413fa)
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 2cb5c95487a..aa9ee39ba78 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -2454,7 +2454,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; |