Main green again: unwind_copy only with diagnostics, the lane-read GPU test returns with no hardware device #2019
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2019"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T07:36:09Z.
Main's
checkfails on clippy before any test runs:function unwind_copy is never usedin 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-29T07:43:09Z.
The
returnadded inde0bbd4exits 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_wordsalso returnsNonewhen 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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-29T10:20:59Z.
I reproduced the loader failure on main at
829188e96. Applying the full diff of this PR at8c57474dcclearsunwind_copyand lets the default check reachvictory-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, withcargo clippy --workspace --all-targets --locked --keep-goingand-D warnings.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
mbhelper and shadowedtimingcalls. The remaining diagnostics give a separate list to work through after the loader fix.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by fainty0 on 2026-11-29T14:45:03Z.
Review: CHANGES_REQUESTED
Review: Request changes
The early return in
crates/victory-shader/src/emit/wave64_tests.rs:2665hides 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 ofunwind_copyincrates/victory-loader/src/crash.rs:804is 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).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.