mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 08:00:13 +01:00
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@intel.com> Fixes:0fb61dfdeb("spirv: propagate access qualifiers through ssa & pointer") Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> (cherry picked from commit7deb5ec0e8)
This commit is contained in:
parent
ad72ce1ad7
commit
d06ccdf9dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue