Tests: verify 64-bit typed IMAGE_ATOMIC_* direct DXIL ops on the GPU #2488
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2488
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2488"
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?
@microwave805 on GitHub · 2026-11-25 20:09 UTC · original
microwave805:tests-gpu-image-atomic64-e2e→main· +494 −0 · 1 files · 1 commits · openPart of #1269
PR #1948 added SM 6.6 64-bit typed
IMAGE_ATOMIC_*lowering ingpu/dxil/lower_image.rs(mimg_atomic64,texel_cas64,texel_fcas64), which was previously checked only by DXIL validation (ops_tests::direct_image_atomic_64bit_validates) without executing on a GPU.What is in it
crates/xcl/tests/gpu_image_atomic64_e2e.rswith three end-to-end GPU tests running all 16 64-bit typedMIMGatomic ops onDXGI_FORMAT_R32G32_UINTTexture2DandTexture2DArrayUAVs in both wave32 and wave64 (native or split) kernels:gpu_image_atomic64_integer_and_bitwise_ops_on_d2_and_d2array: contended 64-bitADD,SUB,AND,OR,XOR,UMIN,UMAX,SMIN,SMAX, andSWAPacross 32-bit carry/borrow boundaries and signed vs unsigned ordering, checkingGLC=1returned old-value histories,GLC=0non-clobbering, andEXEC=0inactive-lane preservation.gpu_image_atomic64_inc_dec_and_fmin_fmax_cas_loops: 64-bit CAS-loopINC,DEC(64-bit carry/borrow and threshold wraparound), andFMIN/FMAX(f64values beyondf32range plusNaN).gpu_image_atomic64_cmpswap_fcmpswap_and_32bit_control: 64-bitCMPSWAPvsFCMPSWAP(DMASK=0xF) across IEEE-754 edge cases (-0.0 == +0.0,qNaN,sNaN, subnormal,-inf, high-32-bit mismatch), plus a 32-bitIMAGE_ATOMIC_CMPSWAP(DMASK=0x3) regression control.D3D12_OPTIONS9::AtomicInt64OnTypedResourceSupportedandD3D12_OPTIONS11::AtomicInt64OnDescriptorHeapResourceSupported, callingrunner::skip_testcleanly when unsupported.Tested
32.0.16.1742, wave32 + SM 6.6 + 64-bit typed/heap integer atomics, no native wave64), DXC1.9.2602.17(Windows SDK10.0.26100.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), debug profile, tested on commit2e5d510baa78.cargo test -p xcl --test gpu_image_atomic64_e2e -- --nocapture: 3 passed, 0 failed, 0 ignored (also verified withXCL_D3D12_DEBUG=1: 3 passed, 0 D3D12 debug layer errors)..\scripts\test.ps1(withXCL_DXIL_CACHE=%TEMP%\xcl-test-dxil-cache): 1420 passed, 0 failed, 46 ignored (26SKIPPEDlines on this adapter: 21no wave64, 3 per-lane wave32 unsupported-op skips, 1no heap windows, 1cannot disable the driver cache (Windows Developer Mode is required)).Regression run
Not needed: test-only change under
crates/xcl/tests/(no runtime files modified).Not tested
OPTIONS9/OPTIONS1164-bit typed heap atomics.XCL_SAMPLE_*game-data tests (no unpacked Xbox Series game files available).AI use
Gemini 4 Neon).crates/xcl/tests/gpu_image_atomic64_e2e.rs, ran the targeted (with and withoutXCL_D3D12_DEBUG=1) and full workspace test suites on commit2e5d510baa78, and drafted this PR description.@luckyteagirl on GitHub · 2026-11-25 20:23 UTC · original
Focused AMD verification of exact PR head
2e5d510baa78c8ab969e36beb6905f0614a9dbefin a clean detached worktree.Tested
30.0.13002.13003; Windows 11 build 26200; Rust1.99.0(stable-x86_64-pc-windows-msvc); DXC/DXIL1.8.2502.11.XCL_ADAPTER=6800M cargo test --locked -p xcl --test gpu_image_atomic64_e2e -- --test-threads=1 --show-output: 3 passed, 0 failed, 0 ignored, 0 skipped. The log confirmed XCL selected the real RX 6800M D3D12 backend. All three tests executed, including integer/bitwise operations, increment/decrement and min/max/CAS loops, and compare-swap/float compare-swap.Not tested
AI use
@emirduran707 on GitHub · 2026-11-25 20:36 UTC · original
Independent AMD RDNA4 (native wave64) test report on exact head
2e5d510baa78c8ab969e36beb6905f0614a9dbef(clean detached checkout, no local changes).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1418 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpurefused by per-lane form;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record).tests/gpu_image_atomic64_e2e.rsran and passed on AMD RDNA4 with zero skips.gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1seed 722 andfuzz_validate_and_gpu_3seed 1599) are pre-existing on unmodifiedmainon this GPU.Regression run (60 s retail-title smoke,
XCL_NETWORK=0, release)(Matched
main68a284abaseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)Not tested
AI use
@SlopTart on GitHub · 2026-11-25 20:37 UTC · original
gpu_suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, and the promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Notegpu_depth_buffer_created_for_unordered_access_is_placedis green on main now, #2466 did its job on this lane.@DarkPanda69 on GitHub · 2026-11-25 20:41 UTC · original
Native wave64 run (listed as untested), plus an RTX 3060: all 3 new tests pass on both cards, with no skips.
Diff applied on
main6d12f58, debug, Windows 11 Pro 26200, card chosen withXCL_ADAPTER:cargo test -p xcl --test gpu_image_atomic64_e2e -- --nocapture: 3 passed, 0 failed, with noSKIPPEDline, so both cards report theOPTIONS9/OPTIONS1164-bit typed heap atomics. That holds on the RX 9070 XT (RDNA4, driver 32.0.32029.2010;XCL_SPLIT_WAVE64unset, sosupported_modes()takes the nativesplit = falsewave64 mode there) and on the RTX 3060 (driver 32.0.16.1088).cargo test -p xcl --lib -- gpu::: RTX 3060 700 passed, 0 failed; RX 9070 XT 698 passed, 2 failed. The 2 failures are the AMD fuzz seeds tracked in #2115, the same onmain.Not tested:
XCL_SAMPLE_*game-data tests (no game files).AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 20:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@pablogonz12 on GitHub · 2026-11-25 21:30 UTC · original
Test report from Linux + Wine on AMD RADV. As far as I can see these tests have only been run on native Windows drivers so far; this is the Wine lane, where the DXIL goes through vkd3d-proton and dxil-spirv before the AMD Vulkan driver. Prepared with AI assistance (DeepSeek V4.1 Flash in OpenCode ran the commands and wrote this); no code was written or changed.
Setup
RADV GFX1201), AMD Radeon RX 9070 XT 16 GB (RDNA4, native wave64), Ryzen 9 9900X.WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,WINEDEBUG=-all, DXC 1.9.2609.5.2e5d510on basemain6d12f58(clean checkout, no changes to tracked files; the diff only addscrates/xcl/tests/gpu_image_atomic64_e2e.rs, so there is no runtime tree to compare).RUSTFLAGS="-C target-feature=+crt-static" cargo xwin test -p xcl --release --locked --target x86_64-pc-windows-msvc --test gpu_image_atomic64_e2e --no-run; run under Wine with--test-threads=1 --nocapture.Result — two runs, identical:
There is no
SKIPPEDline: on this device vkd3d-proton answersD3D12_OPTIONS9/OPTIONS11with 64-bit typed heap atomics, so the tests take the real path and all 16IMAGE_ATOMIC_*forms compare equal.As a check that the GPU really executed them, a run with
VKD3D_SHADER_DUMP_PATHset wrote 6 SPIR-V modules that holdOpImageTexelPointer %_ptr_Image_ulongand 64-bitOpAtomic*instructions, from the compute shaders XCL emitted (the run logsxcl: [SHADER] cs ... format dxil). So these ops survive dxil-spirv and RADV unchanged.Not tested
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.