Repository navigation
Description
What happens
On an RX 7800 XT (RDNA3), in the open world, black blocky patches with stair-stepped edges flicker on lit surfaces (terrain at the shoreline, sand and rocks near water, the boardwalk at the camp in "Search the camp for Donnie"). They change every frame. Cutscenes look fine.
Commit
232f9e603 (2026-11-30), D3D12 runtime (scripts\play-d3d12.ps1, defaults: Series X, 2560x1440 output, dynamic resolution 1080-1440, no ray tracing, no frame generation). Local changes that should not matter here: a GetUserDefaultLocaleName / XPackageGetUserLocale override for the text language, and F9 capturing two frames instead of one.
System
Windows 11 (10.0.26300), Ryzen 7 5700X3D, 32 GB, Radeon RX 7800 XT 16 GB, AMD driver 32.0.32029.2010.
Where
runtime (leonida.exe, D3D12)
What a capture shows
Four frames in a row captured with -Capture and a dump file holding 4 (about 400 targets each) at the camp's boardwalk:
- Several half-resolution targets (960x540) have whole tiles missing: black rectangles with stair-stepped edges, in the lower right of the picture and scattered on the left, in a different place every frame. That matches what is on screen.
frame-<n>-ops.txtsays those targets are written by:CS_FinalGather_0_1_1_02dc364df5d3278b8(indirect, kind 2) andCS_FinalGather_1_1_1_0940c2635dc1312f4(indirect, kind 2): an R8_UINT target with missing tiles;CS_ScreenProbes_TemporalResolve_ReflectiveCau...34fb51b8a0312e82(dispatch 120x135x1): an R8G8 and another R8_UINT target with the same missing tiles.
- No draws or dispatches are dropped in those frames (no
DROPPEDlines).
What it is not
- Not the 65,535 cut of wide indirect dispatches described in
d3d12/docs/findings.mdfor the same program:widest()takes AMD cards on trust, so I made it ask this card too (runs_wide). The probe says the 7800 XT runs them:runs=true asked=1048576 seen=Ok([1048576, 4294443008, 0, 1048575]), 34.5 ms. - Not the title's ray-traced shadow settings:
rtDynamicShadows=false,directionalScreenSpaceShadowQuality0 or 1 andworldHeightShadowQuality0 or 1 in settings.xml change nothing here. - Not the sun's shadow tracing: leaving out
CS_TraceShadowRays_ScreenSpaceOnlyFullReseb9a057a81d18c42,CS_TraceShadowRays_Fullres4e816e1ef600ddcfandCS_RTConstantCostShadowsTileClassificationNormalCones2620618869072a85(on top of the default skip list) changes nothing. - Not
LEONIDA_NAN_SCRUB_STORE_INF(0 or default).
My guess is the tile classification that fills the FinalGather tile lists, or what the lists hold, rather than the dispatch itself, but I have not checked the lists' contents.
Steps
Load a save in the open world at the camp of "Search the camp for Donnie" (or drive a boat along a shoreline in daylight), default play-d3d12.ps1 settings. It happens every time there. I have a short video and the captured frames (our own renders, no game files) and can test builds or switches.
Activity
notlismcfly commentedon Nov 30, 2026
Same on an RX 9070 XT (RDNA4), driver 32.0.32015.2008, Windows 10, at be454ca: black flickering tiles on asphalt and soil outdoors, never indoors. Details in #2770.
On this card the same three programs (2dc364df5d3278b8, 940c2635dc1312f4, 34fb51b8a0312e82) translate, are bound and run; none is refused or skipped. So it reproduces on RDNA3 and RDNA4.
Happy to test builds or switches.
drake1ch commentedon Nov 30, 2026
Thanks, this is the same as #2770. A correction to my report, after looking at the G-buffer targets of the same captured frames:
CS_FinalGather_*(2dc364df5d3278b8,940c2635dc1312f4) andCS_ScreenProbes_TemporalResolve_ReflectiveCau...(34fb51b8a0312e82) are most likely a consequence, not the cause: they read a G-buffer that has no material there.The suspect is whatever writes the terrain/ground material into the G-buffer outdoors on RDNA3/RDNA4. Happy to test a build or switch on the RX 7800 XT.
notlismcfly commentedon Nov 30, 2026
Data point: on the same PC (RX 9070 XT, driver 32.0.32015.2008, Windows 10) the ground draws correctly in Vesper (github.com/monte-alt/vesper, 7b7e556), another VIctory-family runtime: asphalt and soil outdoors in daylight have no black or flickering patches, same save, same area.
So the title's ground material can be written correctly on RDNA4; the difference is somewhere in this runtime's translation or state, not the card or driver.
Vesper ran with its launcher's Series X profile. Settings in it that may matter for comparing: VESPER_RDNA_WAVE32=2, VESPER_LEGACY_MUL_PLAIN=0, VESPER_LDS_INIT_HOIST=1, VESPER_NARROW_BARRIER=1, VESPER_SHADER_OPT=3007, HW BVH on. I haven't isolated which one (if any) is the difference.
notlismcfly commentedon Nov 30, 2026
drake1ch commentedon Nov 30, 2026
Two more negatives on the RX 7800 XT (main as of today plus #2764/#2687), same places, patches unchanged:
LEONIDA_RDNA_FLOAT=0(every console float instruction spelled out instead of AMD's one-instruction forms, the closest thing here to Vesper'sVESPER_LEGACY_MUL_PLAIN=0): black ground patches still there.host copies made for small unordered-access textures ... n=32and more), but the ground near water is still black in patches.So it is neither the RDNA float forms nor the terrain indirection table not reaching the host. Of the Vesper settings @notlismcfly listed,
VESPER_RDNA_WAVE32=2,VESPER_LDS_INIT_HOIST=1andVESPER_NARROW_BARRIER=1are the ones left untested; I don't know Leonida's equivalents. Happy to try any switch or build.zmasi commentedon Dec 1, 2026
PR #2834 is up with three opt-in diagnostic/candidate switches (all off by default so
mainbehaviour is unchanged when unset) covering the three AMD-relevant differences between Mandy and Vesper (7b7e556) that could produce the outdoor ground-tile corruption on RDNA 3 (#2771) and RDNA 4 (#2770):LEONIDA_TARGET_BARRIERS=3(1= named texture moves fromID3D12GraphicsCommandList7::Barriergroups,2= full target waits on resource-less barriers & pipeline syncs behind target writes; live-toggleable every 4 s inside a single run via-More @{ LEONIDA_AB = '4,LEONIDA_TARGET_BARRIERS' })LEONIDA_LIST_TWIN_MOVE=1(moves non-16B-aligned raw buffer twins in per-list view slots viamove_raw; also supports-More @{ LEONIDA_AB = '4,LEONIDA_LIST_TWIN_MOVE' })LEONIDA_HOST_WAVE32=1(32-lane wave lowering on RDNA32..64hosts; retranslates shaders on first run)If you get a chance to test PR #2834 from an outdoor spot where the flickering tiles appear, running
.\scripts\play-d3d12.ps1 -More @{ LEONIDA_AB = '4,LEONIDA_TARGET_BARRIERS' }first (and sharing whether the ground tiles toggle cleanly every 4 s plus thewaits for what was drawn into targetsandraw twinslog lines) will immediately pinpoint which path is responsible so we can flip the confirmed fix on by default.AI-assisted (Claude Fable 5.2, GPT-6.2 Astra, Claude Opus 5.5, Gemini 4 Carbon).
d3d12: cache one_subresource per texture, split target-barrier move c…
drake1ch commentedon Dec 1, 2026
Tested all three switches from #2834 on the RX 7800 XT (driver 32.0.32029.2010), Series S mode without ray tracing, outdoors where the patches show. None of them changes the black patches.
LEONIDA_TARGET_BARRIERS=3withLEONIDA_AB=4,LEONIDA_TARGET_BARRIERS: ran it twice, the second time for ~4 minutes (56 A/B phases). The log shows it engaging (20–47 recorded for every targeta frame while on, 0 while off), but the patches look the same in both phases. Frame time is the same too (median ~49.5 ms off, ~50 ms on).LEONIDA_LIST_TWIN_MOVE=1with A/B: engaging,~560 of those a list keeps moved to their viewa frame. No change in the patches.LEONIDA_HOST_WAVE32=1: shaders re-translated for 32-lane waves, none refused. No change.The patches don't follow the 4 s A/B rhythm at all. They appear and change shape every frame, in all three runs.
Video from the second TARGET_BARRIERS run is below.
barriers-patches.mp4
8aty commentedon Dec 1, 2026
Same on an RX 7900 XTX (RDNA3, 24 GB): a third card, and a second RDNA3 one.
System and build
mainatb3910e5e3(2026-12-01),diagbuild without DLSS,scripts\play-d3d12.ps1with Series X, dynamic resolution 1080-1440, 2560x1440 output, no frame generation,LEONIDA_THIN_THREADS=8What it looks like here
Outdoors only, on most of the ground but not all of it: roads, grass, sand, soil. Floors inside buildings are always fine. On an asphalt road by the beach in daylight, standing still: whole ground triangles turn black, with sawtooth/stair-stepped edges, and they change every frame. The painted road lines (decals) still draw on top of the black areas in the right places, so the road's depth is there and only its material is missing. That fits the finding above that the ground is already wrong in the G-buffer, before lighting.
What it is not (each tried here, one at a time)
LEONIDA_SAMPLE_MASK=0(the title's sample mask, its LOD fade, ignored as before 2026-11-28): no change. The sawtooth edges looked like the LOD dither, but it is not that.LEONIDA_MESH_COUNTS=1(mesh programs' own output counts): no change.-RayTracing(the structure builder runs, real rays instead of every ray a miss, no lighting stand-in): no change, so it is not the rays-off path.leonida shadersgives the same 200 as always (195 containers without a vertex, pixel, compute or mesh program; 5 "a descriptor read only as data is not supported", e.g.002e93a6cc2aa355), and the runtime log of a run standing at the black triangles has no translation failure or warning.LEONIDA_SHADER_OPT=0could not be tested on this driver: with the passes off, AMD's compiler crashes on some pipelines. It reproduces: two starts, both ended inamdxc64.dll+0x671e18(a read of 0x0) about 5 s after the title started, before the first frame line; the first start's precompile also lost 9 processes. The last pipelines logged before the crash were mesh pipelines (e.g. mesh2d3111604dadce52+ pixel919b671c1bf1eb34), but several are made at once, so which one it is I cannot say.Happy to test builds or switches on the 7900 XTX.