beta-amd: black smears on vehicles close to the camera come from the TAA disocclusion mask (RDNA 2, RX 6900 XT) #145
Labels
No labels
accessibility
bench-bm-v1
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/PastiiJay--klbf-lab#145
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@MalarkZA on GitHub · 2026-11-27 23:48 UTC · original
What you see
Parked vehicles close to the camera have ragged black smears on and around them: across the body, the windows and the edges (a sedan's roof and side, a pickup's open door, a boat trailer, a dark convertible almost entirely). A few steps back they disappear. It shows on cars, pickups, motorcycles and passing traffic; some nearby vehicles never get it. It doesn't depend on
VICTORY_HALF_VIEWS(posted in #86). Standing still or a short pan away and back doesn't clear it; once, it shifted after the game's long idle camera pan.Machine and build
beta-amdat4c79ac5+ the aperture-segment fix from #127,--profile diag --features diagnostics, plus two local diagnostic additions (below)play.ps1defaults (Series X, memory hooks off, probe rays on, ray tracing off), hand-playedHow we traced it
We added a local hotkey: with
VICTORY_CAPTUREset, F9 captures the next frames likeVICTORY_CAPTURE_FRAMESdoes (picture, ops listing and, withVICTORY_DUMP_TARGETS=1, every target), so a frame can be captured the moment something shows up in play. We captured a "near" frame (smears visible) and a "far" frame a few steps back (same vehicles, no smears) and compared the targets. Shader names come fromshaders.rpfviaVICTORY_DUMP_MATCH/victory.exe translate.The first target that differs between near and far is the mask written by
TAA_UtilitiesCS_Disocclusion. Near, it covers the nearby vehicles completely; far, it only has a thin rim around the player. The rest of the TAA chain carries those shapes through to the screen:TAA_UtilitiesCS_ReconstructSurfaces11bbed94ee7a3243image_atomic_umax) from depth and motion vectors. It skips pixels whose motion is under 0.01 or over 0.2, so it only writes moving pixels.TAA_UtilitiesCS_Disocclusion488b12f581b37bfcTAA_UtilitiesCS_SceneColorTemporalResolveDualOutputWithLumaDOFAwareb2b1ea29bc3987dbTAA_UtilitiesCS_ComputeShadingChangee7fbf3641855150dTAA_UtilitiesCS_FilterShadingChange773e5dd5d74eba77TAA2_PrepareFrameStatse535cfd7baac93b8TAA2_Resolvedf11dcd012cd7382From the console code (disassembled with the
VICTORY_INSPECTtool): Disocclusion takes the nearest depth in each 3×3 neighbourhood and reprojects it with the motion vector. It flags a pixel if last frame's class there shares no bits with this frame's 3×3 classes. Otherwise it flags it whenc/(1+d−z_now) − c/(1+d−z_prev), clamped to 0..1, is over a threshold, withz_prevread from the texture in 1. The constants and threshold come from its constant buffers.Ruled out
An experiment that didn't fix it
In the lab, the texture from step 1 is about zero on static pixels (it only writes moving ones), and we suspected that zero made Disocclusion see a large depth change on anything near. We tried a local switch: F8 toggles a copy of the depth plane into that texture just before ReconstructSurfaces, through a scratch buffer, so static pixels hold real depth.
So that texture's zeros aren't the cause.
What we couldn't check
What we can share
The near/far captures (ops listings and all targets) and the console logs of these runs, on request. The F9 capture hotkey is a small change we can send as a PR if it's useful to others.
@PastiiJay on GitHub · 2026-11-28 00:03 UTC · original
Really clear trace, thank you. Comparing the near and far frames target by target is exactly what helps place it in the TAA disocclusion mask. We're looking into it, and you'll be credited for the find.