GPU: fix D3D12 debug-layer state/type errors in the ambient stand-ins #787
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!787
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-787"
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?
@JoeY54 on GitHub · 2026-11-28 05:53 UTC · original
JoeY54:fix/d3d12-debug-layer-states→main· +27 −2 · 2 files · 1 commits · merged 2026-11-28 19:39 UTCSummary
Fixes two D3D12 debug-layer errors from the ambient stand-ins in a normal Series X 1440p + DLSS Quality + DLSS FG 2x session. I reported them in #726. Two files change, and nothing changes outside the ambient passes.
Scope change: this PR first also changed the card-copy compare (
id=538on title-buffer card copies, ~56,700 per run). #194 already fixes that, so that commit has been dropped. The original two-commit head was7a89b07. The branch now holds only the ambient commit, rebased onto currentmain.id=538ERROR on a depth textureRole::Miss) reads the title's depth through its SRV table. At that point the depth is still in theDEPTH_READstate the title's draws left it in.DEPTH_READ | SHADER_RESOURCEwithensure_statebefore the pass. A texture that is not a depth target getsSHADER_RESOURCEonly.id=646ERRORdepthinto root parameter 1, which is a static SRV table. Theirkeep/meanprograms never readt0. This is a different path from #2, which is already onmain.t0range in the ambient root signature isDESCRIPTORS_VOLATILE.indirect.rsalready uses that flag.Other expected debug-layer output, untouched here:
id=6452× (probe_view_limitheap probes) andid=1378(full-output viewport over the DLSS render-size target).Relation to other open PRs:
mainon their own.Validation
Title runs (RTX 5090, driver 621.24, official signed Streamline 2.14.16 / NGX 310.9.16, own legally obtained copy,
play-nvidia.ps1defaults: Series X, native 1440p, DLSS Quality, DLSS FG 2x)8fc2254+ #479 + #613.VICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=light, over 240 s.VICTORY_AMBIENT_SPECULAR=0removed the depth-texture538before the fix, which attributes it to the reflections stand-in.MissandAirpasses.On this branch (
63b902f+a45bea7; same stable patch-id as the original7a89b07)cargo build -p victory: passes.cargo clippy -p victory-gpu --all-targets --locked --offline -- -D warnings: fails only onshadow.rs:1708% 16, which is already onmain. It is fixed in #479. The two changed files have no Clippy findings.cargo test -p victory-gpu --lib --locked --offline -- --test-threads=1, under an exclusive GPU lock: 453 passed, 0 failed, 36 ignored, exit 0.Raw logs stay local.
AI-assisted (Claude); runs on my own hardware.
@Aniseto on GitHub · 2026-11-28 07:08 UTC · original
Ran the victory-gpu library suite at
7a89b07on an NVIDIA Blackwell desktop part:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build;VICTORY_D3D12_ADAPTER=NVIDIA.All 453 tests pass here with 36 ignored; no skips were reported. The PR has no comments yet, so this is the first datapoint in the thread and the first from an RTX 5070 Ti. These are CPU-side tests of the state/type handling; I did not run a debug-layer session, so the
id=538/id=646error counts from the description were not reproduced here.Not tested: a real Series X 1440p + DLSS + frame generation debug-layer session, a paired smoke run, the full workspace suite, release profile, AMD and Intel GPUs, native wave64 hosts, Wine, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
@Dukestar69 on GitHub · 2026-11-28 07:12 UTC · original · approved these changes
Tested locally merged onto
main(63b902f).cargo xtask policypassed (294 files ok).cargo test -p victory-gpu --lib ambient::passed (5 passed; 0 failed).cargo test -p victory-gpu --lib draw::passed (8 passed; 0 failed; 1 ignored).cargo test -p victory-gpu --lib host::card_steps::passed (9 passed; 0 failed; 1 ignored).Targeted D3D12 debug-layer state/type correctness fix for card-copy compare and ambient passes. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
GPU: fix D3D12 debug-layer state/type errors in the card-copy compare and ambient stand-insto GPU: fix D3D12 debug-layer state/type errors in the ambient stand-ins7a89b0777etoa45bea7de9@JoeY54 on GitHub · 2026-11-28 08:43 UTC · original
Closing this as a duplicate. #194 already fixes the main
id=538error, on the card-copy compare (copies left inCOPY_DESTafter copies in place), as noted in #726. I should have checked for existing fixes before opening this.Thanks to Aniseto for the test run on the RTX 5070 Ti.
@JoeY54 on GitHub · 2026-11-28 08:52 UTC · original
Reopening with a narrower scope. #194 covers only the card-copy compare
538, so that commit is dropped. The depth-texture538from the reflections stand-in and the646from the Radiance/Air roles are not fixed elsewhere, and they stay here. New heada45bea7on currentmain. The description is updated.@Aniseto on GitHub · 2026-11-28 09:00 UTC · original
Re-ran the victory-gpu library suite at
a45bea7after the head moved from7a89b07; this is a new response in the same thread, not an edit of my earlier report:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build;VICTORY_D3D12_ADAPTER=NVIDIA.Same counts as at the previous head: all 453 tests pass with 36 ignored and no skips. These are CPU-side tests; I did not run a debug-layer session, so the
id=538/id=646error counts from the description were not reproduced on either head.Not tested: a real Series X 1440p + DLSS + frame generation debug-layer session, a paired smoke run, the full workspace suite, release profile, AMD and Intel GPUs, native wave64 hosts, Wine, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.