Fix failing lib tests, dead-code clippy errors and a stale diagnostics test #4484

Closed
Kerimrode wants to merge 14 commits from upstream-pr/4484 into main
Kerimrode commented 2026-11-30 21:04:24 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kerimrode on 2026-11-30T21:04:24Z.


What it changes

Fixes failures seen on a fresh checkout of main with the pinned toolchain (1.98.1). No runtime behaviour changes.

  • list/thin.rs: test bindings_record_no_work did not list BEGIN_QUERY/END_QUERY; added them as work.
  • shader_cache.rs: removed four stale VICTORY_ORACLE_* names from a test list (no oracle_tests.rs exists).
  • shadow.rs: removed unused Shadow::ranged (clippy dead_code).
  • host.rs: use is_multiple_of(3) in a test (clippy).
  • copystat.rs: removed unused free fn mb (clippy dead_code, --all-features).
  • compose.rs: test expected sRGB plane to keep sRGB format, but view reads sRGB planes as UNORM; updated the expectation. This test only builds with --features diagnostics.

How it was tested

Windows 11, no game/GPU title run (tests and lints only).

  • cargo test -p victory-gpu --locked: 1133 passed
  • cargo test -p victory-gpu --all-features --locked: 1206 passed
  • cargo clippy -p victory-gpu --all-targets [--all-features] --locked -- -D warnings: clean
  • cargo xtask policy --staged: ok

Note: three concurrency tests each failed once in a parallel full run (timing) and passed alone and on re-run; unrelated to this change.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5573726827 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4484). Originally posted by [Kerimrode](https://github.com/Kerimrode) on 2026-11-30T21:04:24Z. --- ## What it changes Fixes failures seen on a fresh checkout of main with the pinned toolchain (1.98.1). No runtime behaviour changes. - list/thin.rs: test `bindings_record_no_work` did not list BEGIN_QUERY/END_QUERY; added them as work. - shader_cache.rs: removed four stale VICTORY_ORACLE_* names from a test list (no oracle_tests.rs exists). - shadow.rs: removed unused `Shadow::ranged` (clippy dead_code). - host.rs: use `is_multiple_of(3)` in a test (clippy). - copystat.rs: removed unused free fn `mb` (clippy dead_code, --all-features). - compose.rs: test expected sRGB plane to keep sRGB format, but `view` reads sRGB planes as UNORM; updated the expectation. This test only builds with `--features diagnostics`. ## How it was tested Windows 11, no game/GPU title run (tests and lints only). - `cargo test -p victory-gpu --locked`: 1133 passed - `cargo test -p victory-gpu --all-features --locked`: 1206 passed - `cargo clippy -p victory-gpu --all-targets [--all-features] --locked -- -D warnings`: clean - `cargo xtask policy --staged`: ok Note: three concurrency tests each failed once in a parallel full run (timing) and passed alone and on re-run; unrelated to this change.
trustno1-coder commented 2026-12-01 18:40:02 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:40:02Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321303163 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4484#issuecomment-7321303163). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:40:02Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
trustno1-coder commented 2026-12-01 18:40:57 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:40:57Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321334803 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4484#issuecomment-7321334803). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:40:57Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

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
trustno1-coder/VIctory-NVIDIA!4484
No description provided.