RX 7800 XT: flickering black tile patches in the open world; CS_FinalGather tiles missing (not the 65,535 cut) #2771
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?
Imported from ubiquitarianism/leonida. Originally posted by drake1ch on 2026-11-30T17:45:41Z.
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: aGetUserDefaultLocaleName/XPackageGetUserLocaleoverride 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
-Captureand adumpfile holding4(about 400 targets each) at the camp's boardwalk: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.DROPPEDlines).What it is not
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.rtDynamicShadows=false,directionalScreenSpaceShadowQuality0 or 1 andworldHeightShadowQuality0 or 1 in settings.xml change nothing here.CS_TraceShadowRays_ScreenSpaceOnlyFullReseb9a057a81d18c42,CS_TraceShadowRays_Fullres4e816e1ef600ddcfandCS_RTConstantCostShadowsTileClassificationNormalCones2620618869072a85(on top of the default skip list) changes nothing.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.ps1settings. 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.Imported from ubiquitarianism/leonida. Originally posted by notlismcfly on 2026-11-30T17:58:52Z.
Same on an RX 9070 XT (RDNA4), driver 32.0.32015.2008, Windows 10, at
be454caa4: 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.
Imported from ubiquitarianism/leonida. Originally posted by drake1ch on 2026-11-30T18:04:34Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by notlismcfly on 2026-11-30T18:27:23Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by notlismcfly on 2026-11-30T18:28:42Z.
Imported from ubiquitarianism/leonida. Originally posted by drake1ch on 2026-11-30T19:20:47Z.
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.Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-01T05:01:50Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by drake1ch on 2026-12-01T14:08:39Z.
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.
https://github.com/user-attachments/assets/8f74efd1-16cd-49b1-875d-75e3b5abfdce
Imported from ubiquitarianism/leonida. Originally posted by 8aty on 2026-12-01T15:10:08Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T00:54:54Z.
Thanks @drake1ch and @8aty — ruling out
LEONIDA_TARGET_BARRIERS=3,LEONIDA_LIST_TWIN_MOVE=1,LEONIDA_HOST_WAVE32=1,LEONIDA_RDNA_FLOAT=0,LEONIDA_SAMPLE_MASK=0,LEONIDA_MESH_COUNTS=1,-RayTracing, and the small-UAV host-copy port narrows the field considerably.From comparing
leonida-shader/leonida-gpudirectly against Vesper7b7e556(plus Foxhound and Victory-Neo):LEONIDA_HOST_WAVE32=1: neither this translator nor Vesper's has a wave-size form outside compute programs (SM 6.6 allowsWaveSizeon compute shaders only). SoLEONIDA_HOST_WAVE32=1could not have changed the terrain's mesh or pixel programs, and its negative result says nothing about them.0eab02a8b, an indirect mesh record(X, 0, 0)(which terrain tessellation writes) is promoted to(X, 1, 1)and asks its list's budget forX * 128(d3d12/crates/leonida-gpu/src/indirect.rs:146-160,indirect/batch.rs:111-132), whereas Vesper, Foxhound, and Victory-Neo still draw nothing and charge0for it. Whether that causes the black ground triangles here is not yet known.Next checks (cheapest first, no new build needed for 1–2)
...-<w>x<h>-f<format>.png)? Target dumps save PNGs at half width and height, so a1920x1080target saves a960x540PNG.frame-<n>-ops.txt, which pipelines draw into those two target resources?"indirect mesh dispatches: ... indirect records a frame ran empty for want of their list's budget"0.00throughout?-More @{ LEONIDA_INDIRECT_BATCH = '0'; LEONIDA_INDIRECT_WINDOW = '0' }-More @{ LEONIDA_RAW_VIEWS = '0' }-More @{ LEONIDA_TWIN_BIAS = '0' }-More @{ LEONIDA_TAKE_BLOCKS = '0'; LEONIDA_PASSES_AHEAD = '0' }Please also quote the start-up line
"host view heaps hold ... views"(for itsraw_twinsfield).diagbuild containingd87ada391(mainfrom 2026-12-01 onward, e.g.b3910e5e3on the RX 7900 XTX):-More @{ LEONIDA_MESH_AMPLIFY = '1'; LEONIDA_AB = '4,LEONIDA_MESH_AMPLIFY' }, checking whether the patches follow the 4 s phases and quoting"mesh executions launched by the amplification stage ... per frame"from each phase.d3d12/docs/replay.md): whether the pictureleonida replay <folder>saves shows a black patch at all.AI-assisted: code comparison by Claude Fable 5.2, reviewed by GPT-6.2 Astra; nothing here was run on an AMD card.
Imported from ubiquitarianism/leonida. Originally posted by 8aty on 2026-12-02T19:38:09Z.
Tested the checks from the comment above on the RX 7900 XTX, same setup as my report:
mainatb3910e5e3(hasd87ada391),diagbuild, Series X, 1080–1440 dynamic, 2560x1440,LEONIDA_THIN_THREADS=8. Each run was on the asphalt road by the beach in daylight, standing still at the black triangles. None of them changes the patches.LEONIDA_MESH_AMPLIFY=1withLEONIDA_AB=4,LEONIDA_MESH_AMPLIFY: it engages:mesh executions launched by the amplification stage (LEONIDA_MESH_AMPLIFY) per frame: 454 … 5431, with 1–10 waits for earlier writes ahead of themin the "on" phases, no such lines in the "off" phases. About 38 phases outdoors; the triangles look the same in both and do not follow the 4 s rhythm. They still change every frame.LEONIDA_INDIRECT_BATCH=0+LEONIDA_INDIRECT_WINDOW=0: patches unchanged. The game drops to ~10 fps (95 ms a frame, ~60 ms on the GPU).LEONIDA_RAW_VIEWS=0: start-up line changes toraw_twins=false, all pipelines rebuilt, ~48 fps. Patches unchanged.LEONIDA_TWIN_BIAS=0: patches unchanged. Outdoors:raw twins of buffer views made per frame: 8894, of them 178.0 that do not begin on 16 bytes (171.0 null, 0.0 kept from 16 bytes before with a bias; LEONIDA_TWIN_BIAS=0: null).LEONIDA_TAKE_BLOCKS=0+LEONIDA_PASSES_AHEAD=0: patches unchanged, ~36 fps.Log lines you asked for:
host view heaps hold 2097152 views; … views=2097152 raw_twins=trueindirect mesh dispatches: the largest group count asked for 336 (run: at most 65535), 20157 groups asked per frame; 0.00 indirect records a frame ran empty for want of their list's budget (2^27)So the
(X, 0, 0)→(X, 1, 1)budget path never leaves a record empty here, and the amplification-stage path doesn't change the result.Frame recording (
d3d12/docs/replay.md): the capture finishes on the 62 GB PC. It was taken standing at the black triangles, triggered with thegofile:66 submissions, 315 lists, 63068 resources, 1296 pipelines; 4939 MB of the card's memory, 1254 MB of changes by the CPU; 15.9 s→frame recorder: the frame is captured. The frame it saved (frame-0.png, screenshot below) shows the black triangles. Notes:Barrier(enhanced barriers) called 44 times and not recorded; 32 lists on another queue; 2 drawing-queue waits.leonida replayon it doesn't get far: it ends ~3 s after start, before it could have uploaded the 4.9 GB, with0x887A0005(device removed) and no other output. Same with--loops 1 --breadcrumbsand with--wait-lists. No driver reset in the Windows event log.--breadcrumbsturns DRED on, but nothing reads it back after the removal, so there's no location. I can share the capture (~6.5 GB) or run a build that prints DRED.Still on the newest
main:b41763227(2026-12-02), rebuilt, no switches: the black triangles are still there at the same spot (~36 fps,0.00 indirect records a frame ran emptyagain).Happy to test more builds or switches.
AI-assisted: runs launched and logs read with Claude Opus 5.5; what's on screen observed by me on the RX 7900 XTX.
Imported from ubiquitarianism/leonida. Originally posted by spyland8k on 2026-12-02T23:14:37Z.
Same on an RX 7900 XT (RDNA3, 20 GB): a fourth card, and a third RDNA3 one.
System and build
mainat8d82a34ae(2026-12-02, containsb41763227),diagbuild without DLSS,scripts\play-d3d12.ps1: Series X, 2560x1440 output, no frame generation. Rendered height pinned at 1440 (LEONIDA_RENDER_SCALE=1, saved by the F1 menu).What it looks like here
Same as described above: outdoors only, on the ground (grass, sand, soil and concrete slabs around a stilt house in daylight). Black areas with stair-stepped edges, with white specks inside the larger ones; buildings, rocks, plants and the character draw fine. The F3 panel at that moment:
DROPPED 0,PIPES PENDING 0, VRAM 14.1 / 17.7 GB, commit left 39 GB, so it is not missing pipelines or memory pressure. (I have a screenshot but am not posting it, per CONTRIBUTING.)What it is not (each run separately, patches unchanged)
LEONIDA_HW_RT=1, andLEONIDA_BVH_BUILDER=1(real rays).LEONIDA_INDIRECT_BATCH=0: frame median 51.6 → 71.0 ms.LEONIDA_INDIRECT_BATCH=0+LEONIDA_INDIRECT_WINDOW=0: frame median 85.1 ms.Log lines asked for above
host view heaps hold 2097152 views; … raw_twins=trueindirect mesh dispatches: the largest group count asked for810 to 2124, 24,549 to 50,030groups asked per frame,0.00 indirect records a frame ran empty.LEONIDA_INDIRECT_BATCH=0andLEONIDA_INDIRECT_WINDOW=1, the largest asked for is65535, about 374,000 groups per frame, and0.18to0.42records a frame ran empty for want of the list's budget. The patches looked the same in that run, so I don't think it is related.Also seen
The full precompile on this card lost workers to
0xc0000005in AMD's compiler on 61 of 60,682 pipelines (rays off);warm-bad.txtnow lists 305 after the precompiles with rays on. No crash while playing.Happy to test builds or switches on the 7900 XT.
AI-assisted: logs read and this comment drafted with Claude Opus 5.5 (Claude Code); what's on screen observed by me on the RX 7900 XT.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T14:21:22Z.
One more card with the same symptom, reported on 2026-12-03: RX 7900 XTX (RDNA3), 2560x1440 output, flickering black blocks on the ground all the time, with or without frame generation, Series S or 4K output,
NAN SCRUBon did not help. So it is not RDNA4- or 7800 XT-only. AI-assisted (Claude Code).