Avoid creating the GPU detiler for CPU texture staging #2797

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

@⁠ghptc on GitHub · 2026-11-29 17:25 UTC · original
ghptc:fix/lazy-gpu-detiler-20261129 → main · +4 −1 · 1 files · 1 commits · open

Checking a CPU texture staging record used to evaluate both tuple members, including the lazy GPU detiler constructor. This could compile its shaders and try to create its root signature even when no staging object requested GPU detiling. Under Wine this was visible as a detiler initialization failure in a CPU-detiling session.

Return immediately when the staging object has no GPU record. GPU staging still uses the same constructor, duplicate-submission check and dispatch path. A host-only control used the production method with a counting constructor. CPU staging went from one constructor call to zero, and the GPU-staging control preserved its submission and dispatch sequence.

**@⁠ghptc** on GitHub · 2026-11-29 17:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2797) `ghptc:fix/lazy-gpu-detiler-20261129` → `main` · +4 −1 · 1 files · 1 commits · open Checking a CPU texture staging record used to evaluate both tuple members, including the lazy GPU detiler constructor. This could compile its shaders and try to create its root signature even when no staging object requested GPU detiling. Under Wine this was visible as a detiler initialization failure in a CPU-detiling session. Return immediately when the staging object has no GPU record. GPU staging still uses the same constructor, duplicate-submission check and dispatch path. A host-only control used the production method with a counting constructor. CPU staging went from one constructor call to zero, and the GPU-staging control preserved its submission and dispatch sequence.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:27:57 +00:00
Author
Owner

@⁠dyshay on GitHub · 2026-11-29 17:48 UTC · original

Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with --profile diag --features diagnostics, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series S with ray tracing, and Series X, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-29 17:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2797#issuecomment-7259985304) Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with `--profile diag --features diagnostics`, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series S with ray tracing, and Series X, DLSS Quality). Frame times will follow here.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2797/head:github-bot/gh-2797'
git switch 'github-bot/gh-2797'

Merge

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