Avoid creating the GPU detiler for CPU texture staging #2797

Open
ghptc wants to merge 1 commit from upstream-pr/2797 into main
ghptc commented 2026-11-29 17:25:02 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-29T17:25:02Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5553206032 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2797). Originally posted by [ghptc](https://github.com/ghptc) on 2026-11-29T17:25:02Z. --- 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.
dyshay commented 2026-11-29 17:48:55 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T17:48:55Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7259985304 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2797#issuecomment-7259985304). Originally posted by [dyshay](https://github.com/dyshay) on 2026-11-29T17:48:55Z. --- 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 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/2797:upstream-pr/2797'
git switch 'upstream-pr/2797'

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