Main green again: unwind_copy only with diagnostics, the lane-read GPU test returns with no hardware device #2019

Open
github-bot wants to merge 5 commits from github-bot/gh-2019 into main AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 07:36 UTC · original
101Leafy:nv/readlane-no-gpu → main · +9 −13 · 5 files · 5 commits · open

Main's check fails on clippy before any test runs: function unwind_copy is never used in crates/victory-loader/src/crash.rs. Its only caller is the stack sampler in stacks.rs, which is built with the diagnostics feature only, so the plain clippy step sees a dead function. It now carries #[cfg(feature = "diagnostics")] too. Nothing changes in either build.

nv05d1_native_readlane_gpu_reference panicked on runners with no GPU ("NV05D1 requires hardware GPU readback"). It now returns when there is no device, the same as the other tests in wave64_tests.rs. With a GPU it runs and checks as before.

The checked_div half of the earlier version is in main already, so it dropped out with the merge. With this in, every open PR rebased on main can go green again.

**@⁠101Leafy** on GitHub · 2026-11-29 07:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2019) `101Leafy:nv/readlane-no-gpu` → `main` · +9 −13 · 5 files · 5 commits · open Main's `check` fails on clippy before any test runs: `function unwind_copy is never used` in crates/victory-loader/src/crash.rs. Its only caller is the stack sampler in stacks.rs, which is built with the diagnostics feature only, so the plain clippy step sees a dead function. It now carries `#[cfg(feature = "diagnostics")]` too. Nothing changes in either build. nv05d1_native_readlane_gpu_reference panicked on runners with no GPU ("NV05D1 requires hardware GPU readback"). It now returns when there is no device, the same as the other tests in wave64_tests.rs. With a GPU it runs and checks as before. The checked_div half of the earlier version is in main already, so it dropped out with the merge. With this in, every open PR rebased on main can go green again.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 07:37:50 +00:00
github-bot changed title from Shader tests: the lane-read reference returns with no hardware device, like the other GPU tests to Main green again: the lane-read GPU test returns with no hardware device, and the half-meet cap uses checked_div 2026-11-29 07:43:05 +00:00
Author
Owner

@⁠ANDREANIADS on GitHub · 2026-11-29 07:43 UTC · original

The return added in de0bbd4 exits the seven-case loop on the first missing readback. In the earlier control-flow reproduction, only the first case reached IR/lowering. The remaining six also miss optional DXIL validation.

Could all seven CPU checks run on a runner without a suitable device, with an explicit skip for the hardware comparison? dispatched_words also returns None when an initialized device rejects pipeline creation. Reporting that error with its wave/lane would preserve the hardware check. A no-device fixture could assert seven CPU cases and zero readback comparisons.

**@⁠ANDREANIADS** on GitHub · 2026-11-29 07:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2019#issuecomment-7252647079) The `return` added in `de0bbd4` exits the seven-case loop on the first missing readback. In the [earlier control-flow reproduction](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/1968), only the first case reached IR/lowering. The remaining six also miss optional DXIL validation. Could all seven CPU checks run on a runner without a suitable device, with an explicit skip for the hardware comparison? `dispatched_words` also returns `None` when an initialized device rejects pipeline creation. Reporting that error with its wave/lane would preserve the hardware check. A no-device fixture could assert seven CPU cases and zero readback comparisons.
github-bot changed title from Main green again: the lane-read GPU test returns with no hardware device, and the half-meet cap uses checked_div to Main green again: unwind_copy only with diagnostics, the lane-read GPU test returns with no hardware device 2026-11-29 09:28:43 +00:00
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-29 10:20 UTC · original

I reproduced the loader failure on main at 829188e96. Applying the full diff of this PR at 8c57474dc clears unwind_copy and lets the default check reach victory-gpu. The Windows job for this PR reports 28 library diagnostics and 25 for the test build, with overlap.

I also checked main and the exact Actions merge commits for #1995, #2138 and #2156. Each had its own initially empty Cargo target directory. I used Rust 1.98.1 from WSL, targeting x86_64-pc-windows-msvc, with cargo clippy --workspace --all-targets --locked --keep-going and -D warnings.

Patches applied to each checkout Features Distinct GPU diagnostics in each checkout
This PR default 30
This PR and #2048 all 36

For each row the four checkouts matched by lint, message and source location, including the repeated reports from the test build. In the default row, 16 of the 30 are unused items. In the all-features build #2048 also clears the missing mb helper and shadowed timing calls. The remaining diagnostics give a separate list to work through after the loader fix.

**@⁠Yoshi-233** on GitHub · 2026-11-29 10:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2019#issuecomment-7254374515) I reproduced the loader failure on main at `829188e96`. Applying the full diff of this PR at `8c57474dc` clears `unwind_copy` and lets the default check reach `victory-gpu`. The [Windows job for this PR](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46248076888/job/141299694865) reports 28 library diagnostics and 25 for the test build, with overlap. I also checked main and the exact Actions merge commits for #1995, #2138 and #2156. Each had its own initially empty Cargo target directory. I used Rust 1.98.1 from WSL, targeting `x86_64-pc-windows-msvc`, with `cargo clippy --workspace --all-targets --locked --keep-going` and `-D warnings`. | Patches applied to each checkout | Features | Distinct GPU diagnostics in each checkout | | --- | --- | ---: | | This PR | default | 30 | | This PR and #2048 | all | 36 | For each row the four checkouts matched by lint, message and source location, including the repeated reports from the test build. In the default row, 16 of the 30 are unused items. In the all-features build #2048 also clears the missing `mb` helper and shadowed `timing` calls. The remaining diagnostics give a separate list to work through after the loader fix.
Author
Owner

@⁠fainty0 on GitHub · 2026-11-29 14:45 UTC · original · requested changes

Review: Request changes

The early return in crates/victory-shader/src/emit/wave64_tests.rs:2665 hides pipeline creation failures and skips six headless cases. Please run all seven lowering checks and skip only the readback on confirmed unsupported hardware. The diagnostics gating of unwind_copy in crates/victory-loader/src/crash.rs:804 is correct without suppression. No style or asset-policy concerns.

Compared with the alternatives: #1290 has a merge conflict, a missing trait import and a policy regression; #1566 has five conflicts and adds nothing once merged. I'd take this PR over both once the skip is narrowed.

Windows Clippy: main fails both gates; this PR fixes the five named lints and adds no new diagnostics. Windows tests not run (no Windows).

**@⁠fainty0** on GitHub · 2026-11-29 14:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2019#pullrequestreview-6103361871) · **requested changes** ## Review: Request changes The early return in `crates/victory-shader/src/emit/wave64_tests.rs:2665` hides pipeline creation failures and skips six headless cases. Please run all seven lowering checks and skip only the readback on confirmed unsupported hardware. The diagnostics gating of `unwind_copy` in `crates/victory-loader/src/crash.rs:804` is correct without suppression. No style or asset-policy concerns. Compared with the alternatives: #1290 has a merge conflict, a missing trait import and a policy regression; #1566 has five conflicts and adds nothing once merged. I'd take this PR over both once the skip is narrowed. **Windows Clippy:** main fails both gates; this PR fixes the five named lints and adds no new diagnostics. Windows tests not run (no Windows).
This pull request has changes conflicting with the target branch.
  • crates/victory-loader/src/crash.rs
  • crates/victory-shader/src/emit/lower/analysis.rs
  • crates/victory-shader/src/emit/wave64_tests.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2019'
git switch 'github-bot/gh-2019'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2019'
git switch 'github-bot/gh-2019'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2019'
git switch 'main'
git merge --squash 'github-bot/gh-2019'
git switch 'main'
git merge --ff-only 'github-bot/gh-2019'
git switch 'main'
git merge 'github-bot/gh-2019'
git push origin 'main'
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/trustno1-coder--VIctory-NVIDIA!2019
No description provided.