fix(gpu): restore !busy check in slot_evict #2173

Open
qlfu wants to merge 1 commit from upstream-pr/2173 into main
qlfu commented 2026-11-29 10:14:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by qlfu on 2026-11-29T10:14:18Z.


Summary

Rebased onto v2026.11.29.02 (1082df39, cleanly merges onto main cec481f4). Since 1b4b6cd4 restored Host::fetch_buffer shrinking upstream, this PR now contains only the remaining unmerged fix:

  • Restore !busy check in resource::slot_evict so textures whose descriptor slots were busy being rebuilt on another thread are not evicted concurrently (also eliminates the unused variable: busy warning in crates/victory-gpu/src/resource.rs).

Verification

  • cargo +1.98.1-x86_64-pc-windows-msvc clippy -p victory-gpu --lib --no-deps --locked: 0 new warnings.
  • git merge-tree --write-tree origin/main pr/fix-merge-regressions: exit 0 (clean merge onto cec481f4).
  • Verified in live 90s Series X runs (0 WARNs / 0 ERRORs).
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549733388 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2173). Originally posted by [qlfu](https://github.com/qlfu) on 2026-11-29T10:14:18Z. --- ## Summary Rebased onto `v2026.11.29.02` (`1082df39`, cleanly merges onto `main` `cec481f4`). Since `1b4b6cd4` restored `Host::fetch_buffer` shrinking upstream, this PR now contains only the remaining unmerged fix: - Restore `!busy` check in `resource::slot_evict` so textures whose descriptor slots were busy being rebuilt on another thread are not evicted concurrently (also eliminates the `unused variable: busy` warning in `crates/victory-gpu/src/resource.rs`). ## Verification - `cargo +1.98.1-x86_64-pc-windows-msvc clippy -p victory-gpu --lib --no-deps --locked`: 0 new warnings. - `git merge-tree --write-tree origin/main pr/fix-merge-regressions`: exit 0 (clean merge onto `cec481f4`). - Verified in live 90s Series X runs (`0 WARNs / 0 ERRORs`).
Dukestar69 commented 2026-11-29 10:24:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T10:24:06Z.

Review: APPROVED


Tested locally merged onto main (829188e9).

  • Merge: Clean 9-line merge across host.rs and resource.rs, resolving both the unused busy variable in slot_evict and the unused Host::fetch_buffer warning on main.
  • Tests (RTX 5090):
    • cargo test -p victory-gpu --lib resource:: passed.
    • cargo test -p victory-gpu --lib descriptor:: passed (102 passed; 0 failed; 2 ignored).

Important regression fix restoring the !busy guard in slot_evict and Host::fetch_buffer step-down. LGTM.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6102459549 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2173#pullrequestreview-6102459549). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-29T10:24:06Z. **Review:** APPROVED --- Tested locally merged onto `main` (`829188e9`). - **Merge**: Clean 9-line merge across `host.rs` and `resource.rs`, resolving both the unused `busy` variable in `slot_evict` and the unused `Host::fetch_buffer` warning on `main`. - **Tests (RTX 5090)**: - `cargo test -p victory-gpu --lib resource::` passed. - `cargo test -p victory-gpu --lib descriptor::` passed (`102 passed; 0 failed; 2 ignored`). Important regression fix restoring the `!busy` guard in `slot_evict` and `Host::fetch_buffer` step-down. LGTM. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
dyshay commented 2026-11-29 13:05:12 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T13:05:12Z.


Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs, on top of 829188e9 plus a couple of local fixes). Read the full diff first: no network, process spawning, binaries, build/CI/dependency changes or game data. Builds with --profile diag --features diagnostics; clean cherry-pick, and it removes 4 clippy warnings on our side. In-game runs on an RTX 4090 (Series X 1440p and Series S, DLSS Quality) are queued; frame times and a picture comparison will follow here.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256278126 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2173#issuecomment-7256278126). Originally posted by [dyshay](https://github.com/dyshay) on 2026-11-29T13:05:12Z. --- Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA), branch `janus-prs`, on top of 829188e9 plus a couple of local fixes). Read the full diff first: no network, process spawning, binaries, build/CI/dependency changes or game data. Builds with `--profile diag --features diagnostics`; clean cherry-pick, and it removes 4 clippy warnings on our side. In-game runs on an RTX 4090 (Series X 1440p and Series S, DLSS Quality) are queued; frame times and a picture comparison will follow here.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2173:upstream-pr/2173'
git switch 'upstream-pr/2173'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2173'
git switch 'upstream-pr/2173'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2173'
git switch 'upstream-pr/2173'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2173'
git switch 'main'
git merge --squash 'upstream-pr/2173'
git switch 'main'
git merge --ff-only 'upstream-pr/2173'
git switch 'main'
git merge 'upstream-pr/2173'
git push origin 'main'
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!2173
No description provided.