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>
(cherry picked from commit 9fbf29fc6d)
This commit is contained in:
Samuel Pitoiset 2025-09-11 10:22:09 +02:00 committed by Eric Engestrom
parent b0f0a80989
commit fb70b9ba58
2 changed files with 3 additions and 1 deletions

View file

@ -5554,7 +5554,7 @@
"description": "spirv: add missing non-uniform access for SSBO atomics",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -4502,6 +4502,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);