Repository navigation
Conversation
The software adapter runs 4-lane waves, so the tests that lower for the card's 32 fail under LEONIDA_WARP=1 even when they ask for "hardware": that switch makes Host::new(false) return WARP too. Ask the made host whether it takes waves of 32 and skip it otherwise. `run_cases_on` takes the required width; the quadmask and the two cross-wave LDS tests use a 32-lane path, and the whole-wave f64 test checks its own loop. The pack tests and the wave64 helpers guard their host; the two manual OPTIONS1 queries now use `takes_waves_of`. Verified by compiling the crate and the workspace for x86_64-pc-windows-msvc; this box has no D3D12 device, so the runs themselves were not repeated. AI-assisted: yes
|
Wave-width guard check on Radeon and RTX 4070 SUPER at For the negative control, an instrumented run logged the RTX device’s real Options1 range of 32–32 and supplied a 4–4 range to the PR’s predicate. All six selected cases guarded out their 32-lane hardware sections. An explicit MEASURED with the repository’s synthetic fixtures. AI-assisted (Codex). |
|
Verified on Windows 11, Rust 1.98.1, with the software adapter. The pull request says "this box has no D3D12 device, so the runs themselves were not repeated" - this box has one, and The change does what it says.
The eight failures that are gone on the head are exactly the eight the pull request names - The four failures that are left are not about wave width, and they are not this pull request's to fix. They are: and all four panic at the same place,
So the pull request's own claim is complete once #2864 is in, and the four leftovers are worth saying out loud - otherwise the next person to run the suite on a machine with a One note on the helper, not blocking. Not checked: a 4-lane adapter as such (the software adapter here reports a wave width outside 32, which is the same branch the guard takes); the tests' behaviour on an adapter that takes 32 lanes but not 64; the |
KelboLive
left a comment
There was a problem hiding this comment.
The guard shape is right: D3D12_OPTIONS1 is 32/32 on this card, 4/4 on WARP, and Arc's 16..32 still runs — so Intel's mixed widths are not hidden, and on a 32-lane host every test still executes (414/0/5 here, 500 s). The f64 guard is genuinely load-bearing: removing it under WARP fails at pipeline creation (valu_tests.rs:2349, "The parameter is incorrect"), while the run_cases_32 mutation is inert at 4 lanes — which is fine, but means that one is only exercised on a host that is neither 32-wide nor WARP.
Two nits before merge:
- Two sites still skip silently:
wave64_tests.rs:1358and:1954use a bareelse { return }, so a 4-lane or 64-only host reports a pass with no reason. The other 12 print. That contradicts the "named reason" claim, and it is exactly the failure mode this PR is meant to fix. takes_waves_ofdrops theWaveOpscheck the oldboth_host_wavesblock had. A device that reports the width range but not wave ops would be treated as runnable and fail at pipeline creation instead of skipping.
Not blocking on either. Merge is clean against current main, and there is no file overlap with #2917 — conceptually they are adjacent and agree: this guard correctly lets Arc run the tests that #2917 would make it request 32-lane waves for.
KelboLive's review of #2920: two `host_32()` sites still returned silently, and `takes_waves_of` no longer asked whether the adapter has wave operations at all (the old manual check did). Both now say their reason, and the query includes `WaveOps`. AI-assisted: yes
|
Both nits fixed in
Thanks for the WARP run and the #2864 pointer — I added a line to the description so the four remaining validator failures are not read as wave-width ones. This box has no D3D12 device, so only the cross-build was repeated. AI-assisted. |
LEONIDA_WARP=1makesHost::new(false)return the software adapter, so tests that ask for "hardware only" still run on it. The software adapter takes 4-lane waves, while the translator lowers these programs for 32-lane host waves, so eight of theleonida-shadertests fail with that switch.Host::takes_waves_of(lanes)asks the adapter (D3D12_OPTIONS1) which program wave widths it accepts, and the tests that assume 32 skip a device that does not:valu_tests:run_cases_ontakes the required width (Nonekeeps the old behaviour). The quadmask and the two cross-wave LDS tests use a 32-lane path, and the whole-wave f64 test checks its own loop.pack_tests: the five host sites guard for 32 and printSKIP: the adapter does not run 32-lane waves.wave64_tests:host_32()is the hardware lookup plus the width check; all 14 sites use it, and the two manualD3D12_OPTIONS1queries now use the helper.Verification:
cargo xwin check --target x86_64-pc-windows-msvc --workspace --all-targets --lockedpasses, and-p leonida-shader --tests --features hostpasses too.Claimed in #2570 (RS-WARP-TEST-WAVES). AI-assisted.
The full
leonida-shadersuite on the software adapter still has four failures onbarycentric/rect; they are the DXIL validator refusing the shader (#2864), not wave width. With #2864's commit on this head the crate is 415 passed, 0 failed, 5 ignored on WARP.