mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02: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>
(cherry picked from commit 9fbf29fc6d)
This commit is contained in:
parent
b0f0a80989
commit
fb70b9ba58
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue