Shader tests: require a device readback in every waterfall test #1694

Merged
zhaibingye merged 1 commit from upstream-pr/1695 into main 2026-11-25 00:23:35 +00:00
zhaibingye commented 2026-11-24 20:48:09 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6591103703 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1695). Originally posted by [zhaibingye](https://github.com/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.
DenRakEiw commented 2026-11-24 21:03:15 +00:00 (Migrated from github.com)

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 and VICTORY_D3D12_WARP=1
  • cargo clippy -p victory-shader --all-targets — 0 warnings
  • cargo xtask policy — ok

Clean tightening of waterfall tests to require actual device readback rather than silently passing when skipped. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6047272273 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1695#pullrequestreview-6047272273). Originally posted by [DenRakEiw](https://github.com/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 and `VICTORY_D3D12_WARP=1` - `cargo clippy -p victory-shader --all-targets` — 0 warnings - `cargo xtask policy` — ok Clean tightening of waterfall tests to require actual device readback rather than silently passing when skipped. Looks good. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-24 22:01:58 +00:00 (Migrated from github.com)

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))].

<!-- greyfinch-sync:Marvisak/VIctory:review:6047882446 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1695#pullrequestreview-6047882446). Originally posted by [catminou4](https://github.com/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))].
steven-seagull27 commented 2026-11-24 22:02:20 +00:00 (Migrated from github.com)

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.

Adapter Lane values checked with this adapter alone Lane values checked with both enabled Mismatches
NVIDIA GeForce RTX 5080 192 192 0 / 384
Microsoft Basic Render Driver (WARP) 192 192 0 / 384

Each adapter returned six 32-lane readbacks per run. The v_cmpx test 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_chose
  • lanes_sample_the_texture_their_arm_loaded_or_picked
  • lanes_sample_the_texture_their_if_else_arm_chose

With the filter on 6493dd9, all five failed with neither hardware nor WARP SM 6.6 device available. Either real adapter alone was sufficient for all five to pass.

The full victory-shader library suite on the unmodified PR head also passed with 120 passed, 0 failed, 1 benchmark ignored.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7145095135 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1695#issuecomment-7145095135). Originally posted by [steven-seagull27](https://github.com/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. | Adapter | Lane values checked with this adapter alone | Lane values checked with both enabled | Mismatches | |---|---:|---:|---:| | NVIDIA GeForce RTX 5080 | 192 | 192 | 0 / 384 | | Microsoft Basic Render Driver (WARP) | 192 | 192 | 0 / 384 | Each adapter returned six 32-lane readbacks per run. The `v_cmpx` test 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_chose` - `lanes_sample_the_texture_their_arm_loaded_or_picked` - `lanes_sample_the_texture_their_if_else_arm_chose` With the filter on `6493dd9`, **all five failed** with `neither hardware nor WARP SM 6.6 device available`. Either real adapter alone was sufficient for all five to pass. The full `victory-shader` library suite on the unmodified PR head also passed with **120 passed, 0 failed, 1 benchmark ignored**.
upstream-sync closed this pull request 2026-11-25 01:07:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1694
No description provided.