Repository navigation
Shader tests: 64-bit image atomics skip devices without typed 64-bit heap atomics - #1857
Ingenioeren wants to merge 1 commit into
Conversation
…heap atomics image_atomics_of_64_bits created its pipeline on every SM 6.6 device and failed with "The parameter is incorrect." where the device has no 64-bit atomics on typed resources (Intel UHD, Marvisak#1829). Host::heap_atomics64 asks D3D12 OPTIONS9 and OPTIONS11 the same way victory-gpu's heap_atomics64 does, and the test skips such a device as it skips one without SM 6.6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Noted on my #1858: it now covers only the permute test's wave-lane skip (with a Host::wave_lanes() query on OPTIONS1) and leaves the atomics test to this PR — yours also checks OPTIONS11's heap-resource variant, which the test-only Host here doesn't. Together the two close the "known refusal" failures of #1829. |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (70564ae), cargo test -p victory-shader --locked → 118 passed, 0 failed. GPU execution tests are #[cfg(all(test, windows))] and run only on Windows.
64-bit image atomics skip devices without typed 64-bit atomics: test-harness capability gate — Windows-side, macOS compile green.
|
Another data point on "fails on NVIDIA": on an RTX 5070 Laptop GPU |
…without typed 64-bit heap atomics
|
Automated triage for the maintainers.
Generated by Claude Code |
Offline measurement on a retail dumpResult: no count change against I merged head 6758d28 onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
…without typed 64-bit heap atomics
…without typed 64-bit heap atomics
A successful PSO creation does not prove the runtime can execute the lowered atomic with a real UAV. Use a one-texel R32G32_UINT image and read back an exchange followed by an addition that carries out of the low dword. Gate the fixture on the typed-resource and descriptor-heap int64 capabilities. vkd3d-proton performs this operation on an R64_UINT view, so querying atomic support on the base RG32 format alone would skip devices that support the operation. Based-on: Marvisak#1899 Based-on: Marvisak#1857 Tested-on: RX 6800 and Lavapipe, Fedora Linux 45, Linux native Assisted-by: gpt-6.2 sol xhigh
fuzeofficlal
left a comment
There was a problem hiding this comment.
Looks good to me — clean capability gate that matches the runtime check and lets image_atomics_of_64_bits skip adapters lacking typed descriptor-heap 64-bit atomics.
Verified locally on Windows 11 with head 6758d28b cleanly merged onto main (63bcca43):
Host::heap_atomics64(crates/victory-shader/src/emit/host.rs:601-624) queries bothOPTIONS9.AtomicInt64OnTypedResourceSupportedandOPTIONS11.AtomicInt64OnDescriptorHeapResourceSupported, andvalu_tests.rs:1977-1980skips cleanly before pipeline creation when unsupported.- Formatting check (
rustfmt --edition 2024 --config skip_children=true) shows no diffs on the added lines. cargo run -p xtask -- policy(191 files ok) andcargo clippy --locked -p victory-shader --all-targets -- -D warnings(both default and--all-features) pass.cargo test --locked -p victory-shader --lib image_atomics_of_64_bits -- --nocapturepasses on bothVICTORY_WARP=0(RTX 5090,0.30s) andVICTORY_WARP=1(WARP,0.03s) with no skip message printed, confirming both backends still execute the full atomic dispatch and verification.
Non-blocking note: on a system where neither the hardware adapter nor WARP reports heap_atomics64(), the test will exit green with zero dispatches (matching the existing SM 6.6 skip path right above it).
What
emit::valu_tests::image_atomics_of_64_bitsnow skips a device that can't run 64-bit atomics on typed heap resources, the same way it already skips a device without SM 6.6. The newHost::heap_atomics64in the shader test host runs the same query asvictory-gpu'sheap_atomics64:OPTIONS9.AtomicInt64OnTypedResourceSupportedandOPTIONS11.AtomicInt64OnDescriptorHeapResourceSupported.Why
On the Intel UHD (Xe-LP) in #1829 the test panics with
hardware: The parameter is incorrect., and the debug layer saysShader uses atomic int64 on typed resources, but the device does not support this. The device simply lacks the feature, so this isn't a translation bug. The runtime already checks for the feature before it uses these atomics, and now the test checks too.Refs #1829. That issue lists 8 failures and this handles one of them (the 64-bit atomics feature skip). The wave-lane-count skip, the view-heap cap (#1779/#1848), the
v_mad_f32signed zeros, the BVH ULP and the FSPX dot product (#1790) are not touched here, so this PR shouldn't close the issue.How tested
Windows 11, AMD Radeon RX 6750 XT plus WARP, Rust stable MSVC:
cargo test --locked -p victory-shader --lib image_atomics_of_64_bits -- --nocapture: 1 passed. No skip line was printed, so both the hardware device and WARP report the feature and still run the full check.cargo test --locked -p victory-shader: 207 passed, 2 failed, 2 ignored. The two failures areemit::rect::tests::rectangles_get_their_fourth_cornerandemit::tests::elements_sharing_a_row_keep_their_order(dxil.dll: "Container part 'Pipeline State Validation' does not match expected"). Unmodifiedmain(70564ae) on this machine fails the same two in the same way, so they come from the localdxil.dlland not from this change.cargo clippy --locked -p victory-shader --all-targets -- -D warnings: clean.cargo fmt --check: no diffs in the lines this PR touches.cargo run -p xtask -- policy --staged: 2 files ok.Not tested: the skip path itself. Both devices here support the feature, so I couldn't watch the test skip on a device without it. That needs a device like the Intel UHD from #1829.
Outside data point (thanks @kais7654): on an RTX 5070 Laptop GPU with driver 616.87,
OPTIONS9.AtomicInt64OnTypedResourceSupportedreports FALSE and the unpatched test fails PSO creation withE_INVALIDARG, while an RTX 3070 on 616.56 passes. So the gate matters on NVIDIA hardware too, not only on the Intel UHD.AI assistance: prepared with Claude Code, reviewed by Ingenioeren.
🤖 Generated with Claude Code