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

Manually merged
github merged 1 commit from gh-pr/1695/head into gh-pr/1695/base 2026-11-26 04:41:54 +00:00
Owner

@⁠zhaibingye on GitHub · 2026-11-24 20:48 UTC · original
zhaibingye:fix/waterfall-require-device → main · +8 −8 · 1 files · 1 commits · merged 2026-11-25 00:23 UTC

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.

**@⁠zhaibingye** on GitHub · 2026-11-24 20:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/1695) `zhaibingye:fix/waterfall-require-device` → `main` · +8 −8 · 1 files · 1 commits · merged 2026-11-25 00:23 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:41:53 +00:00
github manually merged commit 6493dd9310 into gh-pr/1695/base 2026-11-26 04:41:54 +00:00
Author
Owner

@⁠steven-seagull27 on GitHub · 2026-11-24 21:33 UTC · original

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.

**@⁠steven-seagull27** on GitHub · 2026-11-24 21:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/1695#issuecomment-7145095135) 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**.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1695
No description provided.