Shader tests: require a device readback in every waterfall test #1694
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1695"
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 zhaibingye on 2026-11-24T20:48:09Z.
Related to #1605. Three waterfall GPU tests passed without checking any lane values when both hardware and WARP were unavailable. Move the existing nonempty-readback assertion into the shared dispatch helper. One working backend is sufficient.
Verified by running the Windows test binary under Wine 10 with no usable SM 6.6 device. Main reported 3 passed and 2 failed with zero readbacks. After the fix, all five reported the missing device. Portable shader tests: 96 passed, 1 ignored. Windows-target Clippy passed. Native hardware and WARP readbacks were not tested locally.
AI assistance: OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T20:56:57Z.
Review: APPROVED
Verified locally merged onto
origin/main(Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):cargo test -p victory-shader --lib emit::waterfall_tests::— 5 passed, 0 failed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1cargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— okClean tightening of waterfall tests to require actual device readback rather than silently passing when skipped. Looks good.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:42:50Z.
Review: APPROVED
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (
ffe310e), cargo test -p victory-shader --locked → 96 passed, 0 failed. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows.Waterfall tests now require a device readback in every test (previously some could pass without verifying pixels). Test-infrastructure hardening; macOS compile unaffected since these are #[cfg(all(test, windows))].
Imported from Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-24T21:33:50Z.
All five waterfall tests passed on the RTX 5080 and on built-in Windows WARP at PR head
6493dd9(Windows 11 build 26300.10075, NVIDIA driver 621.24). I ran the tests with each adapter alone and with both enabled. Temporary logging identified the D3D12 adapter that returned each readback.Each adapter returned six 32-lane readbacks per run. The
v_cmpxtest dispatches both folded and unfolded variants, which accounts for the sixth readback across five tests.No-device comparison. I used the same test-only filter on both revisions to skip both adapters before dispatch, producing zero readbacks. The parent (
ffe310e) reported 3 passed, 2 failed. These three tests passed without checking a lane on the parent and correctly failed on this PR:lanes_load_from_the_buffer_their_nested_arms_choselanes_sample_the_texture_their_arm_loaded_or_pickedlanes_sample_the_texture_their_if_else_arm_choseWith the filter on
6493dd9, all five failed withneither hardware nor WARP SM 6.6 device available. Either real adapter alone was sufficient for all five to pass.The full
victory-shaderlibrary suite on the unmodified PR head also passed with 120 passed, 0 failed, 1 benchmark ignored.