mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 12:50:35 +01:00
spirv: add missing non-uniform access for SSBO atomics
This fixes new VKCTS coverage dEQP-VK.descriptor_indexing.non_uniform_atomics. Found this while implementing a new extension. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37295>
This commit is contained in:
parent
a52483d9e7
commit
9fbf29fc6d
1 changed files with 2 additions and 0 deletions
|
|
@ -4524,6 +4524,8 @@ vtn_handle_atomics(struct vtn_builder *b, SpvOp opcode,
|
|||
|
||||
if (ptr->mode != vtn_variable_mode_workgroup)
|
||||
access |= ACCESS_COHERENT;
|
||||
if (ptr->access & ACCESS_NON_UNIFORM)
|
||||
access |= ACCESS_NON_UNIFORM;
|
||||
|
||||
nir_intrinsic_set_access(atomic, access);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue