Shader tests: skip WaveSize(32) pipelines on 64-lane-only hosts #290
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!290
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-290"
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?
@WellyngtonSantos on GitHub · 2026-11-26 19:15 UTC · original
WellyngtonSantos:wave32-skip→a-publier· +38 −5 · 3 files · 1 commits · merged 2026-11-26 22:30 UTCWhy
Four hardware tests make pipelines that declare
WaveSize(32). A GCN card such as Polaris runs 64-lane waves only, so the driver refuses those pipelines withE_INVALIDARG, and the tests fail instead of being skipped:wave64_testsandpermlane_testsalready ask the device for its wave range and skip on such a host. These four didn't.What
Host::runs_wave32()asksD3D12_OPTIONS1whether 32 is inWaveLaneCountMin..=WaveLaneCountMax. It is the same querytranslation_caps()makes.run_cases_onskips a refused pipeline only when the host has no 32-lane waves, and says so. On a host with 32-lane waves a refusal still panics, so no real failure is hidden. When every device was skipped for that reason, the case returns quietly instead of printing "no SM 6.6 hardware device".whole_wave_f64_sum_and_cvt_f32_f64widens its existing WARP skip to a 64-lane-only host.partial_dispatch_with_a_cross_half_wave_op_runs_in_32_lane_wavesskips its 32-lane pipeline on such a host, like the test above it in the same file.Tests only. No change to translation or to the runtime.
Tested
RX 580 2048SP (Polaris), AMD legacy driver 31.0.21925.1001, Windows 11 26200. The device reports shader model 6.7, waves of 64 to 64 lanes, no mesh shaders. Built from
cd8dfc0with the pinned 1.98.1 toolchain, cross-compiled with cargo-xwin:victory-shader(all tests)cd8dfc0With
--nocapture, the four now print e.g.hardware: no 32-lane waves, compute_pipeline skipped (…)/the device does not support wave32; hardware dispatch skipped. Inds_min_max_f32_order_floats_and_return_the_old_valuethe 64-thread cases still run and pass on the card. Only the wave32 ones are skipped.cargo clippy -p victory-shader --testsis clean for these files.rustfmtreports no new differences in them: the counts are the same before and after, and the existing ones are untouched.This is the same machine as the
victory systemreport in #268. It's available for reruns of anything that doesn't need the title.@MamaLeVrai on GitHub · 2026-11-26 20:45 UTC · original
Tested on an RX 6950 XT 16 GB (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release (wave32 and wave64), at
06d6465:cargo test --release -p victory-shader --lib302 passed, 0 failed, 4 ignored. The four tests you gate still run and pass on this card, since it reports 32-lane waves as supported, so nothing that used to run is skipped here.AI-assisted (Claude Code); no game data.