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

Closed
HandshakeHackin wants to merge 0 commits from upstream-pr/37 into main
HandshakeHackin commented 2026-11-25 19:24:20 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T19:24:20Z.


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.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5497708965 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/37). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-25T19:24:20Z. --- 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.
PastiiJay commented 2026-11-25 19:43:50 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T19:43:50Z.


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

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7172690620 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/37#issuecomment-7172690620). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-25T19:43:50Z. --- Thanks @HandshakeHackin! Noted. Repairing those tests on win10-test is useful. I'll review it with the next build.
HandshakeHackin commented 2026-11-26 11:31:50 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-26T11:31:50Z.


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.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7190845620 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/37#issuecomment-7190845620). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-26T11:31:50Z. --- 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`.
PastiiJay commented 2026-11-26 11:34:04 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T11:34:04Z.


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.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7190892649 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/37#issuecomment-7190892649). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-26T11:34:04Z. --- 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.

Pull request closed

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
PastiiJay/klbf-lab!37
No description provided.