Mesa (master): spirv: don't discard access set by vtn_pointer_dereference
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 30 17:44:20 UTC 2019
Module: Mesa
Branch: master
Commit: 7deb5ec0e89769382fb5dd86aa5305001ae413fa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7deb5ec0e89769382fb5dd86aa5305001ae413fa
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Fri Jul 26 22:47:09 2019 +0300
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 <lionel.g.landwerlin at intel.com>
Fixes: 0fb61dfdeb ("spirv: propagate access qualifiers through ssa & pointer")
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
---
src/compiler/spirv/vtn_variables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the mesa-commit
mailing list