Add wave-based UAV atomic waterfall experiment #787
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/793"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by potatoeking5150-commits on 2026-11-23T04:00:33Z.
I 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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T04:19:34Z.
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.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T13:46:27Z.
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.