Use the matching depth plane for the diffuse ambient resolve #206
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!206
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-206"
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?
@TaynanGT on GitHub · 2026-11-27 09:30 UTC · original
TaynanGT:fix/ambient-depth-companion-197→main· +80 −12 · 2 files · 1 commits · merged 2026-11-27 13:43 UTCGaru667 reported that the RTX 3080 resolve stopped after
fa8fc1d. The descriptor at the usual position was a 2D stencil SRV with DXGI format 22 and plane 1.When that slot contains stencil, look for a bound depth SRV of the same texture and mip range among the resolve shader’s SRVs. Use the corresponding depth format and plane 0. The host still checks the resource shape before recording the ambient pass.
The regression test uses the reported descriptor and rejects a stencil view, a different resource and a different mip. Both source files passed the Rust parser and the diff check. Windows CI passed. In a matched RTX 4080 SUPER run with RT off, base
0982bdeplus this change brought back the Resolve pass and restored green foliage. Dark rectangular water patches persisted in that run. Test reportRefs #197
@CowboyBingus on GitHub · 2026-11-27 10:26 UTC · original · edited 2026-11-27 10:36 UTC
One run of this PR on an RTX 5070 Ti (not the 3080 from #197), ray tracing off (no
-RayTracing).role=Resolveis logged atlevel=0.8and there is no depth warning.Setup: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 64 GB, Windows. PR head
292adb5(parent0036c3a),cargo build --locked --profile diag -p victory --features diagnostics, exe md5BBC7759AF3F0A22D0D9420E60CCA3348. Launchscripts\play.ps1 -Console series-s -Machine 4070 -Windowed -Dlss quality(soVICTORY_AMBIENT=0.8from the script defaults), plus the reflection holdVICTORY_AMBIENT_REFLECT=1,VICTORY_AMBIENT_REFLECT_IN=CS_TemporalResolve2_Opaque,CS_TemporalResolve1_Alpha, andVICTORY_KEYS_FILEset: in both runs a background job, started just before the launch script, wrote Enter presses (held 0.3 s) to it once its clock was past 35 s, beginning no new round after 62 s on its clock; each write first waited until the game had taken the previous file, and neither the write times nor when the game took each press are logged; a window capture after each 3 s wait while the game window was up (131 taken in this run, not posted). One 450 s run (n = 1).Log, this run: no
no stand-in for the indirect lightline. The stand-in lines are all INFO:Earlier comparison run, without this PR: a different base, main
4ee1a47plus the #143 commits (local tree935eaca; #143 was rebased after this run) withVICTORY_RT_MISSunset, exe md5B59ED46815DAAD639B969AB248C79ACE, same launch and reflection hold. It logsWARN victory_gpu::draw: no stand-in for the indirect light: missing depth SRV role=Resolveonce, and Radiance/Reflect stand-in lines but norole=Resolvestand-in (INFO) line.Picture, the same camera view in both runs at about 260 s and 440 s: in the comparison run the wall to the right of the window has a violet patch made of rectangular blocks and the area below it is near black; in this run that wall shows its surface and the papers on it, with no patch. Violet patches still show on that wall in some other shots of this run (clearly at about 284 s and 314 s, fainter at about 290, 327 and 351 s). The two runs differ by more than this PR (base commits and the #143 commits). I did not compare other scenes. No performance numbers here: one run, not interleaved with a baseline.
Refs #197
@TaynanGT on GitHub · 2026-11-27 10:37 UTC · original
@CowboyBingus
role=Resolveconfirms the diffuse pass recorded on the 5070 Ti. For the colour comparison, the direct pair is292adb5and its parent0036c3a, with the reflection options fixed. The violet blocks you saw again around 284 and 314 seconds give us specific shots to line up in that pair.@CowboyBingus on GitHub · 2026-11-27 11:07 UTC · original
The direct pair you asked for in this comment:
0036c3a(parent) and292adb5(this PR), one 450 s run each, run back to back (parent first).Setup: same as in my earlier comment, in both runs. RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 64 GB, Windows. Build:
cargo build --locked --profile diag -p victory --features diagnostics -j 4. Exe md5: parentEC5A22383BB94A8381B73FC918593F85, this PRBBC7759AF3F0A22D0D9420E60CCA3348(the same exe as in my earlier run). Launch:scripts\play.ps1 -Console series-s -Machine 4070 -Windowed -Dlss quality. Reflection options fixed:VICTORY_AMBIENT_REFLECT=1,VICTORY_AMBIENT_REFLECT_IN=CS_TemporalResolve2_Opaque,CS_TemporalResolve1_Alpha. The same Enter-press job and window captures as before.Shots at 283 s and 314 s (seconds from the start of each run's capture script, the same in both runs):
Log:
WARN victory_gpu::draw: no stand-in for the indirect light: missing depth SRV role=Resolveonce. Stand-in INFO lines forrole=Radianceandrole=Reflect, none forrole=Resolve.role=Radianceandrole=Reflect, and none forrole=Resolvein this run. My earlier run of the same exe loggedrole=Resolveonce.@TaynanGT on GitHub · 2026-11-27 11:16 UTC · original
@CowboyBingus The direct pair shows the rectangular patches clearing at the two sampled times, 283 and 314 seconds. The generic stand-in line has a shared four-message budget across roles, so Radiance and Reflect can use that budget before Resolve. A dedicated post-dispatch Resolve marker will let us tie the shot to the pass. The pale tint on the papers is still worth checking when we line up the same view again.
@Smoodie7 on GitHub · 2026-11-27 13:17 UTC · original
Positive result on an RTX 4070 Ti SUPER (driver 621.40, Ryzen 7 7700). Series S, 1080p output,
-Dlss quality -FrameGen, no ray tracing,-Machine 4070, warmed caches. Build:231b6a96with this PR merged.no stand-in for the indirect light: missing depth SRV role=Resolve, which every run without this PR logged once at the first world frames, is no longer logged.One caveat: #208 was merged in the same build, so this isn't yet the "#206 alone" pass you asked for. #208's paired programs are mostly the shadow mask, water and sky diffusion, not foliage, and without RT its two wave64 water programs (
a10179ab7eda0dc3,6871d6e4b3ac9a10) still failed to translate in this run. I can do the strict #206-only run on the same route next.@TaynanGT on GitHub · 2026-11-27 13:23 UTC · original
@Smoodie7 That combined build gives us a positive result on the 4070 Ti SUPER: the resolve warning is gone and the foliage looks stable. The #206-only pass with RT off is still the comparison that isolates the depth-plane fix. Keep the same camera and warmed cache for it.
@efsebayern on GitHub · 2026-11-27 13:39 UTC · original
I tested this with ray tracing off on an RTX 4080 SUPER 16 GB, i7-13700K, 32 GB, Windows 11.
diagwith--features diagnostics, this PR (292adb5) merged locally ontomain0982bde.-Console series-s -Machine 4070, launcher defaults (VICTORY_AMBIENT=0.8), no-RayTracing. I played by hand, out on the water and on land.main0982bdemain+ this PRWARN ... no stand-in for the indirect light: missing depth SRV role=Resolvea stand-in for the indirect light role=Resolve size=[1280, 720] level=0.8So the depth plane fix restores the Resolve role here too and clears the purple foliage reported in #197. On this card the darker flickering rectangles on the water stay with this PR alone. With #208 added on top they get fewer, but they don't go away; details are in #208.
AI-assisted (Claude Code).
@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 13:43 UTC · original · edited 2026-11-27 13:45 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
292adb5292adb5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@TaynanGT on GitHub · 2026-11-27 13:44 UTC · original
@efsebayern The isolated run ties the foliage change to the depth-plane fix: the Resolve pass starts, the foliage is green, and the dark water rectangles persist. Windows CI passed and this is now in main at
2532474. The remaining water case can stay in #208 and #270 with its own camera comparison.