diff options
| author | natterman12 <92529018+natterman12@users.noreply.github.com> | 2026-11-23 23:13:03 -0500 |
|---|---|---|
| committer | klikso <204526810+klikso@users.noreply.github.com> | 2026-11-24 18:32:21 +0000 |
| commit | 19e42d6de7b0588a70db8114920d6ba39723e09c (patch) | |
| tree | 9cce14001032267e390bb1742be34cbf28405b3c /runtime/src/vulkan_aftermath.cpp | |
| parent | 71f99e2244b045c613cd669fac25104353034bc1 (diff) | |
rdna2spirv: wave64 emulation resets shared words with OpAtomicStore
The emulated scheduler resets %x_buf words every round. The lane that owns
a word stores to it and every other lane aims the same store at one sink
word; the prologue's zeroing clamps its index the same way. Several
invocations therefore store to one Workgroup word at once: a data race,
harmless because the word is never read, but GPU-assisted validation
reports it in every emulated shader and so hides any real race.
Those 16 stores are now OpAtomicStore (Workgroup scope, relaxed), the same
operands as the OpAtomicOr already used on this buffer. The values written
are unchanged.
On an RTX 3080 Ti, run_gpu_tests.py with LEONIDA_W64_EMULATE=1 under
GPU-assisted validation goes from 44 failed fixtures to 12; without it the
result is unchanged (229/248).
Two test-local interpreters learn OpAtomicStore, and a new case checks that
no plain OpStore targets a shared %x_buf word.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions