Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/665"
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 kibagami-nc on 2026-11-28T03:05:40Z.
Redone on main (
d4b5d517). This PR's first version fixed four clippy findings from the morning of 2026-11-28, and main has fixed those since. The branch now starts from main and fixes the current ones that no other PR takes.What happens
Main's CI fails at its first step,
cargo clippy --workspace --all-targets --locked -- -D warnings:victory-shaderdoesn't build under-D warnings. There's an unusedcolourand amanual_checked_opsinlower.rs. #1517 (babuakhil) fixes both.victory-gpuhas 12 more, in both builds unless noted:dropping_referencesinhost.rs's present fallbacks: a real lock bug, fixed by #1459;send::Memory'sgpufield, never read;pool::let_goandresource::host_pressure_reclaimed, never used, in the default build only;identity_op(1 * MIB,1 * GIB) and one constant assertion, in tests;manual_is_multiple_ofinstreamline.rs;too_many_arguments(8/7).This PR takes everything in point 2 except #1459's three.
The change
No behaviour changes.
pool::let_goandresource::host_pressure_reclaimed: onlycopystatreads them, and only diagnostics builds have it. They now carry its cfg,all(windows, feature = "diagnostics").send::Memory'sgpufield (041d0ee6): written and never read. The field goes, with theGetGPUVirtualAddresscall that filled it.1 * MIBand1 * GIBbecomeMIBandGIB.assert!(128 * MIB * 7 < 957 * MIB)becomesconst { assert!(…) }.streamline.rs: the frame generation state's sampling usesn.is_multiple_of(120).first_upload_decisionandfsr::before_present:#[allow(clippy::too_many_arguments)], as on 32 other functions in the tree.Together: CI's three steps
On
d4b5d517with #1517, #1459 and this PR merged locally:cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked, with #1493 merged too (or #1460, for #1429's size limit): passes, with 1,306 tests passed and 0 failed,repository_passes_policyincluded.So these four PRs together make main's CI green again.
Confirmed by babuakhil (Windows 11, RTX 3060, Rust 1.98.1), on #1517:
d4b5d51with #1517, #1459, this PR and #1493 merged in that order, with no conflicts:cargo test --workspace --locked: 1,306 passed, 0 failed, twice;cargo test --workspace --locked --all-features: 1,365 passed, 0 failed, so the diagnostics-only tests are clean with the set too.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-28T08:12:52Z.
I reproduced the Clippy warnings on the parent (
8fc22547) and reran both workspace checks on this PR’s head (0a368d63). Both the default and--all-featuresconfigurations passed with-D warningsusing Rust 1.98.1 on Linux, targetingx86_64-pc-windows-msvcwithblake3/pure. The native Linuxvictory-shadersuite also passed: 207 tests passed, 2 ignored. I didn’t run the Windows loader test.Exact commands and results. If there’s another CI failure you’d like us to reproduce, please point us to the job and the revision.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by MoonEyes on 2026-11-28T11:16:20Z.
Tested this PR merged onto current
main(63b902f, one commit past this PR's base), locally on Windows 11 with an RTX 4060, toolchain fromrust-toolchain.toml(cargo 1.98.1, clippy 0.1.98). The three commands ofci.yml:cargo clippy --workspace --all-targets --locked -- -D warnings--all-featurescargo test --workspace --lockedWithout the PR, the first command fails on
main63b902fwith the same two errors as CI run 46104876336 (emit/mod.rs:2768,shadow.rs:1708); thedescriptor.rsone only shows with--all-features, andgameinput.rsonly oncevictory-gpubuilds.The four changes keep behaviour:
(i < scripted_keys).then_some(vk)gives the same result as theSome(vk).filter(...)it replaces, theemitchange is in a test module, and bothis_multiple_ofdivisors are non-zero constants on unsigned values.#687 and #705 carry the same four changes byte for byte; this one was opened first.
This is a local run, not GitHub's CI.