Shader tests: skip a fixed-wave pipeline the device lane counts rule out #3242
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!3242
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3242"
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 14:21 UTC · original
zzm1234560621-prog:test/wave-lane-gate→main· +37 −5 · 2 files · 1 commits · openWhat
Five synthetic tests (
permutes_read_the_lane_named_and_zero_from_lanes_left_out,permutes_mask_high_address_bits_and_divergent_branches, and the threewave64_…/sel_hisiblings) build a pipeline that declares the console'sWaveSizeand, when creation fails on a hardware adapter, assert that this cannot happen:That assumes every hardware adapter runs 32-lane waves. An Intel UHD (Raptor Lake Xe-LP) reports a 16-lane maximum and fails the test instead of skipping (#1829); WARP and 32-lane parts pass.
How
Host::wave_lane_counts()readsD3D12_FEATURE_DATA_D3D12_OPTIONS1'sWaveLaneCountMin/WaveLaneCountMax.Host::supports_wave_lanes(n)says whether a pipeline declaringWaveSize(n)can exist on this device. Unknown counts answertrue, so creation decides as before.wave64site asks about 64 lanes rather than 32.Measured
Intel Arc (Xe-LPG, driver 32.0.101.6127),
main63bcca4— the query answers 8..32:so the 32-lane tests still run on hardware here and the 64-lane ones skip, exactly as before. On a part that caps at 16, the 32-lane tests now skip with the reason instead of failing.
— the same seven failures as
63bcca4on this adapter, since this branch carries only this change.cargo clippy … -D warnings: clean.Not verified
I cannot reproduce the 16-lane case: the only GPU I have here reports 8..32. The change is written to the reported values rather than observed on a UHD, so it needs that machine (or another ≤16-lane part) to confirm the skip. If someone has one,
cargo test -p victory-shader --lib -- permutes_ -- --nocaptureprints the lane counts when it skips.No game files. From #1829 and the Arc baseline in #3196. AI-assisted (Claude).
Five synthetic tests build a pipeline that declares the console's `WaveSize` and, when creation fails on a hardware adapter, assert: assert!(warp, "{label}: no pipeline for a wave of 32"); That assumes every hardware adapter runs 32-lane waves. It does not hold: an Intel UHD (Raptor Lake) reports a 16-lane maximum and fails the test instead of skipping (#1829), while WARP and a 32-lane part pass. `Host::wave_lane_counts` reads `D3D12_FEATURE_D3D12_OPTIONS1`'s `WaveLaneCountMin/Max`, and `supports_wave_lanes` answers whether a pipeline declaring `WaveSize(n)` can be created at all; the assertions now accept "the device cannot run that wave" as a reason for creation to have failed, and the skip line still prints. Where the counts cannot be read the answer is `true`, so creation decides as before. On the Intel Arc (Xe-LPG) here the counts are **8..32**, so the 32-lane tests run on hardware as before and the 64-lane ones skip — unchanged; on a part that caps at 16 the 32-lane tests now skip with the reason instead of asserting. cargo test -p victory-shader --lib: 295 passed, 7 failed, 3 ignored — the same seven as `63bcca4` on this adapter (this branch carries only this change). cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean.@Dukestar69 on GitHub · 2026-11-26 14:31 UTC · original · approved these changes
Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090 + WARP):
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@zzm1234560621-prog on GitHub · 2026-11-26 14:51 UTC · original
The reviewers' WARP-only configuration is the one this change helps most, so I ran it: 4 failures → 1 on this branch.
permutes_read_the_lane_named_and_zero_from_lanes_left_out,permutes_mask_high_address_bits_and_divergent_branchesanda_mask_joined_with_data_at_a_uniform_loop_is_its_numberare the three that go from failing to skipping: withVICTORY_WARP=1the "hardware" half ofrun_casesis a WARP device withwarp == false, soassert!(warp, "no pipeline for a wave of 32")was asserting a hardware property of a device that has none. That is the same mistake the 16-lane UHD hits, just from the other direction, and the lane-count query fixes both.What is left is not wave-size, and not ours by the look of it:
Every channel is one off, on WARP only — the same test passes on the Intel Arc hardware here, so the model and the hardware agree and WARP is the outlier. That wants its own issue if there is not one already; I have not touched it, and it is the one failure this PR leaves in that configuration.
No game files. 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.