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

Open
github-bot wants to merge 1 commit from github-bot/gh-2173 into main AGit
Owner

@⁠qlfu on GitHub · 2026-11-29 10:14 UTC · original
qlfu:pr/fix-merge-regressions → main · +5 −4 · 1 files · 1 commits · open

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).
**@⁠qlfu** on GitHub · 2026-11-29 10:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2173) `qlfu:pr/fix-merge-regressions` → `main` · +5 −4 · 1 files · 1 commits · open ## 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`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 10:17:24 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-29 10:24 UTC · original · approved these changes

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).

**@⁠Dukestar69** on GitHub · 2026-11-29 10:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2173#pullrequestreview-6102459549) · **approved these changes** 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).
Author
Owner

@⁠dyshay on GitHub · 2026-11-29 13:05 UTC · original

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.

**@⁠dyshay** on GitHub · 2026-11-29 13:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2173#issuecomment-7256278126) 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.
github-bot changed title from gpu: restore !busy check in slot_evict and Host::fetch_buffer step-down to fix(gpu): restore !busy check in slot_evict 2026-11-29 20:57:36 +00:00
github-bot force-pushed github-bot/gh-2173 from 01bb7d7e9f to a1bf04b7c3 2026-11-29 20:57:37 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/resource.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/2173/head:github-bot/gh-2173'
git switch 'github-bot/gh-2173'

Merge

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