Shader tests: skip a fixed-wave pipeline the device lane counts rule out #3240
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by zzm1234560621-prog on 2026-11-26T14:21:31Z.
What
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).
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T14:31:30Z.
Review: APPROVED
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).
Imported from Marvisak/VIctory. Originally posted by zzm1234560621-prog on 2026-11-26T14:51:33Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.