Add wave-based UAV atomic waterfall experiment #793
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!793
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/793/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@potatoeking5150-commits on GitHub · 2026-11-23 04:00 UTC · original
potatoeking5150-commits:experiment/gpu-alias-atomic-waterfall→main· +93 −5 · 6 files · 2 commits · merged 2026-11-23 14:06 UTCI tested the dynamic-index UAV atomic behavior on an AMD Radeon RX 6500 (RDNA 2) using Windows 11, driver 32.0.21045.29003.
The original atomic-array probe consistently reports:
The main title-address lookup/write fixture still reports zero mismatches.
I created a separate experimental shader,
tests/gpu_alias_atomic_waterfall.hlsl, that uses wave operations to group lanes by descriptor index and performs oneInterlockedAddper distinct index within each group.Results:
The original atomic probe was left unchanged. The waterfall implementation is an isolated experiment with its own test registration.
This demonstrates a working alternative on the RX 6500 and WARP, but does not establish the underlying driver or hardware cause.
I am sharing this for review and would appreciate feedback on whether this approach would be appropriate as a potential workaround.
Summary
Adds an isolated experimental implementation of the dynamic-index UAV atomic test using wave operations.
The original
ProbeArrayAtomicsshader and existing test remain unchanged.Implementation
New shader:
tests/gpu_alias_atomic_waterfall.hlslThe shader:
InterlockedAddper distinct descriptor index per wave iteration.Additional changes register the new shader build output and expose a separate test through
offscreen_check.exeand CTest.Hardware tested
AMD Radeon RX 6500
Microsoft WARP
Results
Scope
This is an experimental workaround, not a confirmed diagnosis or correction of the underlying driver behavior.
The original test remains available for comparison.
Review requested
Please review the wave-based descriptor grouping approach and advise whether it is suitable for broader testing or eventual integration.
@R0Y00 on GitHub · 2026-11-23 04:19 UTC · original
The RX 6500 contrast is useful for #369: the direct probe still reports
256,256,256,256, while your explicit waterfall reports64,64,64,64and the original title-address fixture remains correct. Please pin the experiment’s source commit, both commands, and the adapter/driver/build with the two readbacks. Keep the waterfall as an opt-in diagnostic for this patch. The original probe must continue to fail on a mismatch, and the measurement alone does not justify a change to the production write path or a new mandatory CI case.@R0Y00 on GitHub · 2026-11-23 13:46 UTC · original
I updated your branch in
978273b. The waterfall runs explicitly with --gpu-alias-atomic-waterfall and shares resource setup and readback with the existing direct probe. The regular test still runs the direct probe with its original result check. The documentation links your RX 6500 measurement and shows both commands.On Windows 26200.9974 with the debug layer enabled, both commands read 64 in all four slots on WARP 10.0.26100.9818 and RTX 4060 Laptop driver 32.0.16.1656. Adding one to each grouped add made WARP read 128 in all four slots and exit 1. Restoring the shader returned the expected counts. The diagnostic uses exit 77 for missing SM 6.0/WaveOps capability.