Shader test: skip 64-bit image atomics where the format has none #3203
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3203
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3203"
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?
@zzm1234560621-prog on GitHub · 2026-11-26 12:30 UTC · original
zzm1234560621-prog:test/uav-atomic-gate→main· +35 −3 · 2 files · 2 commits · openWhat
image_atomics_of_64_bitsbuilds a pipeline over anR32G32_UINTtyped UAV and, on an adapter without atomics for that format, the device refuses it withE_INVALIDARG:That reads as a bad module. It is a capability the device does not have, and because it panics the test also never reaches its WARP half — which has the same gap:
Host::uav_atomic_support(format)now returns the format'sD3D12_FORMAT_SUPPORT2(orNoneif the query itself fails), and the test skips when the three atomics it needs — exchange, compare-swap, unsigned min/max — are absent, printing the mask so the reason is in the log rather than inferred.0x3c0is the typed load/store cluster with no atomic bits (0x1–0x20), so on this adapter the test genuinely cannot run. On an adapter that does offer them the test runs exactly as before — that is the RX 6700 XT / 7900 XTX path, untouched.Measured
Intel Arc (Xe-LPG, driver 32.0.101.6127), Windows 11, Rust 1.98.1,
main63bcca4:cargo test -p victory-shader --libcargo clippy --workspace --all-targets --locked -- -D warningsNot in this PR
E_INVALIDARGin the same run,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros(dispatch failed: 参数错误). That one is a dispatch rather than a pipeline, so it is a different query and a different question; it stays failing and is part of #3196.Test-only change; no lowering or runtime behaviour is affected. Found by running the suite on this adapter; reported in #3196. AI-assisted (Claude).
@Dukestar69 on GitHub · 2026-11-26 12:49 UTC · original · approved these changes
Verified on RTX 5090 & WARP against
origin/main(63bcca4):cargo test -p victory-shader --lib image_atomics_of_64_bits -- --test-threads=1: passed on RTX 5090 and WARP.cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly checks format support before running the 64-bit image atomics test.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@oni-swr on GitHub · 2026-11-26 13:06 UTC · original
WARP test report (claim: #1633)
163b9865271822fc24a29b3171840cfcc8c252fe, base:origin/main63bcca43c6(head sits directly on it, no merge needed)rust-toolchain.toml,cargo test --locked -p victory-shader --lib -- --test-threads=1,VICTORY_D3D12_WARP=1andVICTORY_WARP=1(the shader tests only honour the latter, so every device in the run was WARP; no physical GPU). Validator: Windows SDK 10.0.26100dxil.dll. Synthetic word streams only, no game data.victory-shadersuite: 298 passed, 4 failed, 3 ignored.image_atomics_of_64_bitsis reported ok but skipped:warp: no 64-bit typed UAV atomics (Support2 0x3c0); skipped, so it asserts nothing on WARP.main): suite 298 passed, 4 failed, 3 ignored, the same 4 failures as on the PR (a_mask_joined_with_data_at_a_uniform_loop_is_its_number,gathers_at_a_level_match_the_hardware,permutes_mask_high_address_bits_and_divergent_branches,permutes_read_the_lane_named_and_zero_from_lanes_left_out). On main,image_atomics_of_64_bitsruns and passes on WARP, with every value asserted.R32G32_UINT(0x3c0) yet executes the exchange, compare-swap and unsigned max atomics correctly (main passes). With this change WARP coverage of the test is lost, and any adapter that does the same would be skipped. If that matters, consider treating a software adapter as capable, or skipping only when pipeline creation returnsE_INVALIDARGand the query says no. The change is otherwise fine:Nonefrom the query still runs the test, and the new code compiles cleanly. It adds one rustfmt diff invalu_tests.rs(the longeprintln!line);mainalready has many.AI use: Claude Code (Claude Sonnet 5.5), coordinated by Claude Code (Claude Opus 5.5).
@zzm1234560621-prog on GitHub · 2026-11-26 13:39 UTC · original
Good catch, and you are right — that was a coverage regression, not a gate.
Reproduced and fixed in
40d9832:D3D12_FEATURE_DATA_D3D12_OPTIONS9::AtomicInt64OnTypedResourceSupported, which is the flag the debug layer's message names (per the same finding in #1829: "Shader uses atomic int64 on typed resources, but the device does not support this"), rather than the format'sSupport2, which WARP leaves clear while still running the atomics;compute_pipelinehas failed, so a host that creates the pipeline runs the test exactly as before.Verified here on the two paths that matter:
So WARP coverage is back, and the skip now only happens where creation actually failed and the device says it has none. The
eprintln!line you flagged is reformatted.Thanks for running it on WARP — the
Support2result there is the thing that made the difference between "queried capability" and "capability that matches what the driver will do".AI-assisted (Claude).
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.