Skip to content

RX 7800 XT: flickering black tile patches in the open world; CS_FinalGather tiles missing (not the 65,535 cut) #2771

Backlog

Description

@drake1ch

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.txt says those targets are written by:
    • CS_FinalGather_0_1_1_0 2dc364df5d3278b8 (indirect, kind 2) and CS_FinalGather_1_1_1_0 940c2635dc1312f4 (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 DROPPED lines).

What it is not

  • Not the 65,535 cut of wide indirect dispatches described in d3d12/docs/findings.md for 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, directionalScreenSpaceShadowQuality 0 or 1 and worldHeightShadowQuality 0 or 1 in settings.xml change nothing here.
  • Not the sun's shadow tracing: leaving out CS_TraceShadowRays_ScreenSpaceOnlyFullRes eb9a057a81d18c42, CS_TraceShadowRays_Fullres 4e816e1ef600ddcf and CS_RTConstantCostShadowsTileClassificationNormalCones 2620618869072a85 (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

  1. notlismcfly commented on Nov 30, 2026

    @notlismcfly

    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.

  2. drake1ch commented on Nov 30, 2026

    @drake1ch
    Author

    Thanks, this is the same as #2770. A correction to my report, after looking at the G-buffer targets of the same captured frames:

    • The ground is already wrong before lighting, as AMD RX 9070 XT (RDNA4): black flickering patches on roads and soil outdoors #2770 says: in the base colour target (960x540, R8G8B8A8) the bare soil next to the boardwalk is black, and the normals target (960x540, f87) has the same ground filled with flat grey blocks with stepped edges.
    • So the missing tiles in the outputs of CS_FinalGather_* (2dc364df5d3278b8, 940c2635dc1312f4) and CS_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.

  3. notlismcfly commented on Nov 30, 2026

    @notlismcfly

    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.

  4. notlismcfly commented on Nov 30, 2026

    @notlismcfly
    image-1796063302853
  5. drake1ch commented on Nov 30, 2026

    @drake1ch
    Author

    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's VESPER_LEGACY_MUL_PLAIN=0): black ground patches still there.
    • A port of VIctory-NVIDIA's terrain page-table fix (cfa18bfb, via foxhound 39e33eb04: small unordered-access textures get their host copies when their views are written into the view heap). The log shows it running (host copies made for small unordered-access textures ... n=32 and 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=1 and VESPER_NARROW_BARRIER=1 are the ones left untested; I don't know Leonida's equivalents. Happy to try any switch or build.

  6. zmasi commented on Dec 1, 2026

    @zmasi
    Contributor

    PR #2834 is up with three opt-in diagnostic/candidate switches (all off by default so main behaviour 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):

    1. LEONIDA_TARGET_BARRIERS=3 (1 = named texture moves from ID3D12GraphicsCommandList7::Barrier groups, 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' })
    2. LEONIDA_LIST_TWIN_MOVE=1 (moves non-16B-aligned raw buffer twins in per-list view slots via move_raw; also supports -More @{ LEONIDA_AB = '4,LEONIDA_LIST_TWIN_MOVE' })
    3. LEONIDA_HOST_WAVE32=1 (32-lane wave lowering on RDNA 32..64 hosts; 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 the waits for what was drawn into targets and raw twins log 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).

  7. drake1ch commented on Dec 1, 2026

    @drake1ch
    Author

    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=3 with LEONIDA_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 target a 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=1 with A/B: engaging, ~560 of those a list keeps moved to their view a 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
  8. 8aty commented on Dec 1, 2026

    @8aty

    Same on an RX 7900 XTX (RDNA3, 24 GB): a third card, and a second RDNA3 one.

    System and build

    • Radeon RX 7900 XTX 24 GB, AMD driver 32.0.21042.62 (April 2026, an older branch than the 32.0.32xxx drivers above, so it is not tied to one driver release)
    • Ryzen 9 9950X3D, 62 GB, Windows 11 (10.0.26200)
    • main at b3910e5e3 (2026-12-01), diag build without DLSS, scripts\play-d3d12.ps1 with Series X, dynamic resolution 1080-1440, 2560x1440 output, no frame generation, LEONIDA_THIN_THREADS=8
    • It was there on the build from 2026-11-30 too.

    What 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.
    • The shaders that do not translate: leonida shaders gives 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=0 could not be tested on this driver: with the passes off, AMD's compiler crashes on some pipelines. It reproduces: two starts, both ended in amdxc64.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. mesh 2d3111604dadce52 + pixel 919b671c1bf1eb34), but several are made at once, so which one it is I cannot say.

    Happy to test builds or switches on the 7900 XTX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions