GPU: preserve the shape of implicit depth-stencil views #2955
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2955
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2955"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ghptc on GitHub · 2026-11-29 19:00 UTC · original
ghptc:fix/preserve-default-depth-view-shape→main· +89 −4 · 4 files · 2 commits · openWhat it changes
On promoted typeless depth textures, a null DSV description needs an explicit typed format in the host view. The synthesized description always chose TEXTURE2D. That lost array layers, the 1D dimension, and multisample view dimensions.
Reconstruct the implicit view from the resolved host texture's description. Use mip zero and every array slice for default array views. Explicit mip, slice and flags follow the existing path. Resolve the format and shape against the same host texture supplied to the bind or clear call.
ESAT586's Marvisak/VIctory#1406 covers the same default DSV dimension, layers and MSAA correction in the sibling repository, alongside RTV/SRV/UAV cases. This patch addresses the DSV path in VIctory-NVIDIA. #2535 addresses depth-test defaults in PSO stream creation. #2770 addresses depth twin invalidation.
Validation
The renderer team's synthetic CPU control found 5 mismatches among 6 implicit descriptor cases on the baseline and 0 on the candidate. Explicit mip, slice and flags matched in both arms. The baseline's invalid descriptor plan was rejected on the CPU before it reached the driver.
Independent QA on an RTX 5070 checked the candidate offscreen with a single 2D texture and a three-layer 2D array, at 1x and 4x MSAA. The readback verifier matched all 442,368 bytes, including 36,864 directly read D32 samples at 1x and 73,728 RGBA pixels across 1x/4x. Resolved color verifies the 4x occlusion results. The 1D shapes were covered by the CPU control. Candidate draw median and P95 were 12.272 µs and 17.408 µs. These are fixture timings. In-game artifact attribution and a before/after GPU speedup were outside the experiment.
Based on
f889bb076fa884fff8d2b6f0b50ac86f72abfd98. Original commitsf2f2c3215e9ed8d42fa1275334f1cd697b4347b6and5f3ecbf78f5b5e79ea07aba8ced3ac6d67b446a4, cherry-picked with original authorship.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.