Repair indirect, overlap and depth-bounds GPU tests on win10-test #37

Open
github-bot wants to merge 4 commits from github-bot/gh-37 into win10-test AGit
Owner

@⁠HandshakeHackin on GitHub · 2026-11-25 19:24 UTC · original
HandshakeHackin:win10-deduplicate-indirect-tests → win10-test · +36 −373 · 4 files · 4 commits · open

On Lab 51 candidate d006c10, the release binary builds, but cargo test -p victory-gpu --lib --locked stops at compile time. Six diagnostics come from repeated definitions in indirect.rs. This keeps a single copy of four tests, their helper and the benchmark module. Each duplicated function body was byte-identical. The separate window-check test and bare-cost benchmark are retained.

Once those definitions are deduplicated, one indirect test still fails on Windows WARP. The regular card-compare fixture dispatches one group for three pieces and sees [0, 7, 7] where all three flags should be zero. The test now calls the dispatch helper already used by the runtime for both shader variants.

Two more tests now use the active branch APIs. The overlap test uses the same assertions and four-argument span calls as the first parent of the Lab 42 merge. The vertex-only depth-bounds test now creates the pipeline twice through graphics_depth_bounds_pipeline. All 22 targeted checks passed on Windows, including a required WARP depth-bounds device.

Remaining full-suite blocker: Three descriptor tests exercise texture span ownership, partial mips and the incremental sweep. Their production APIs (Spans::claim, Claim, HostHeap::sweep_part) are present in the second parent of the Lab 42 merge (47ff7b0) and absent from the current candidate. The final targeted CI run excluded those three bodies only in its temporary checkout. The PR preserves them for a separate decision on porting the matching feature set.

**@⁠HandshakeHackin** on GitHub · 2026-11-25 19:24 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/37) `HandshakeHackin:win10-deduplicate-indirect-tests` → `win10-test` · +36 −373 · 4 files · 4 commits · open On Lab 51 candidate `d006c10`, the release binary builds, but `cargo test -p victory-gpu --lib --locked` stops at compile time. Six diagnostics come from repeated definitions in `indirect.rs`. This keeps a single copy of four tests, their helper and the benchmark module. Each duplicated function body was byte-identical. The separate window-check test and bare-cost benchmark are retained. Once those definitions are deduplicated, one indirect test still fails on Windows WARP. The regular card-compare fixture dispatches one group for three pieces and sees `[0, 7, 7]` where all three flags should be zero. The test now calls the dispatch helper already used by the runtime for both shader variants. - [Original candidate build and compiler errors](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45681508713/job/139442958081) - [Before the dispatch correction: 14 passed, one failed](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45683024397/job/139448222914) - [After: all 15 indirect tests plus five descriptor tests passed on Windows](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45684056473/job/139451852106). A [separate check](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45683839280/job/139451076380) required live WARP fixtures for the four retained tests and the unique window-check test. Two more tests now use the active branch APIs. The overlap test uses the same assertions and four-argument span calls as the first parent of the Lab 42 merge. The vertex-only depth-bounds test now creates the pipeline twice through `graphics_depth_bounds_pipeline`. [All 22 targeted checks passed on Windows](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45685174957/job/139455748858), including a required WARP depth-bounds device. **Remaining full-suite blocker:** Three descriptor tests exercise texture span ownership, partial mips and the incremental sweep. Their production APIs (`Spans::claim`, `Claim`, `HostHeap::sweep_part`) are present in the second parent of the Lab 42 merge (`47ff7b0`) and absent from the current candidate. The final targeted CI run excluded those three bodies only in its temporary checkout. The PR preserves them for a separate decision on porting the matching feature set.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:53:16 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-25 19:43 UTC · original

Thanks @⁠HandshakeHackin! Noted. Repairing those tests on win10-test is useful. I'll review it with the next build.

**@⁠PastiiJay** on GitHub · 2026-11-25 19:43 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/37#issuecomment-7172690620) Thanks @⁠HandshakeHackin! Noted. Repairing those tests on win10-test is useful. I'll review it with the next build.
Author
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 11:31 UTC · original

I pushed two test corrections in 3ecd80f. The fingerprint fixture now changes the byte the implementation samples at the midpoint. The 128-record indirect fixture accepts either 64-thread group winning the reservation and still checks the copied records and output limit.

For the three descriptor tests discussed above, this test-only commit exercises the overlap rules implemented on win10-test. It compares predicted and actual invalidation for each of the three rules. I kept this alternative on the fork so you can choose whether to use it or port the other parent’s descriptor implementation.

With the alternative, win10-test at 23db69d, and the bounds fix from #27, the full victory-gpu --lib suite ran serially on both Windows WARP images: 214 passed, 8 ignored, 0 filtered on each. The separate depth check required device support and DXC and passed on both. Windows Server 2022 and 2025 jobs. The upstream check on this PR alone stops earlier at the sgd5.rs:557 Clippy warning. Main already has the one-line fix in 4c46f37.

**@⁠HandshakeHackin** on GitHub · 2026-11-26 11:31 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/37#issuecomment-7190845620) I pushed two test corrections in `3ecd80f`. The fingerprint fixture now changes the byte the implementation samples at the midpoint. The 128-record indirect fixture accepts either 64-thread group winning the reservation and still checks the copied records and output limit. For the three descriptor tests discussed above, [this test-only commit](https://github.com/HandshakeHackin/klbf-lab/commit/3a648ab5f9d0a1b47e3b85f00f980d1b44de5901) exercises the overlap rules implemented on `win10-test`. It compares predicted and actual invalidation for each of the three rules. I kept this alternative on the fork so you can choose whether to use it or port the other parent’s descriptor implementation. With the alternative, `win10-test` at `23db69d`, and the bounds fix from #27, the full `victory-gpu --lib` suite ran serially on both Windows WARP images: **214 passed, 8 ignored, 0 filtered** on each. The separate depth check required device support and DXC and passed on both. [Windows Server 2022 and 2025 jobs](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45810218314). The [upstream check on this PR alone](https://github.com/PastiiJay/klbf-lab/actions/runs/45810321004) stops earlier at the `sgd5.rs:557` Clippy warning. Main already has the one-line fix in `4c46f37`.
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 11:34 UTC · original

Thanks for both corrections and for keeping the descriptor alternative separate, that makes the choice easier. Could you open 3a648ab as its own small PR against win10-test? Then we can review the two options side by side and merge one.

**@⁠PastiiJay** on GitHub · 2026-11-26 11:34 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/37#issuecomment-7190892649) Thanks for both corrections and for keeping the descriptor alternative separate, that makes the choice easier. Could you open `3a648ab` as its own small PR against `win10-test`? Then we can review the two options side by side and merge one.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/37/head:github-bot/gh-37'
git switch 'github-bot/gh-37'

Merge

Merge the changes and update on Forgejo.
git switch 'win10-test'
git merge --no-ff 'github-bot/gh-37'
git switch 'github-bot/gh-37'
git rebase 'win10-test'
git switch 'win10-test'
git merge --ff-only 'github-bot/gh-37'
git switch 'github-bot/gh-37'
git rebase 'win10-test'
git switch 'win10-test'
git merge --no-ff 'github-bot/gh-37'
git switch 'win10-test'
git merge --squash 'github-bot/gh-37'
git switch 'win10-test'
git merge --ff-only 'github-bot/gh-37'
git switch 'win10-test'
git merge 'github-bot/gh-37'
git push origin 'win10-test'
This discussion has been locked. Commenting is limited to contributors.
No description provided.