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

Open
opened 2026-11-30 17:45:41 +00:00 by drake1ch · 12 comments
drake1ch commented 2026-11-30 17:45:41 +00:00 (Migrated from github.com)
Contributor

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: 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6702565210 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771). Originally posted by [drake1ch](https://github.com/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: 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.
notlismcfly commented 2026-11-30 17:58:52 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7287134405 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7287134405). Originally posted by [notlismcfly](https://github.com/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.
drake1ch commented 2026-11-30 18:04:34 +00:00 (Migrated from github.com)
Author
Contributor

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:

  • The ground is already wrong before lighting, as #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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7287306903 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7287306903). Originally posted by [drake1ch](https://github.com/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: - The ground is already wrong **before lighting**, as #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.
notlismcfly commented 2026-11-30 18:27:23 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7287875724 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7287875724). Originally posted by [notlismcfly](https://github.com/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.
notlismcfly commented 2026-11-30 18:28:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by notlismcfly on 2026-11-30T18:28:42Z.


image-1796063302853
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7287907364 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7287907364). Originally posted by [notlismcfly](https://github.com/notlismcfly) on 2026-11-30T18:28:42Z. --- <img width="2000" height="1125" alt="image-1796063302853" src="https://github.com/user-attachments/assets/d555fb79-8a91-4faa-a87c-1bf5533e7547" />
drake1ch commented 2026-11-30 19:20:47 +00:00 (Migrated from github.com)
Author
Contributor

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'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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7289242088 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7289242088). Originally posted by [drake1ch](https://github.com/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'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.
zmasi commented 2026-12-01 05:01:50 +00:00 (Migrated from github.com)
Author
Contributor

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 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7301350552 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7301350552). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-01T05:01:50Z. --- 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).
drake1ch commented 2026-12-01 14:08:39 +00:00 (Migrated from github.com)
Author
Contributor

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=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.

https://github.com/user-attachments/assets/8f74efd1-16cd-49b1-875d-75e3b5abfdce

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7313763628 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7313763628). Originally posted by [drake1ch](https://github.com/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=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. https://github.com/user-attachments/assets/8f74efd1-16cd-49b1-875d-75e3b5abfdce
8aty commented 2026-12-01 15:10:08 +00:00 (Migrated from github.com)
Author
Contributor

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

  • 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7315459187 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7315459187). Originally posted by [8aty](https://github.com/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 - 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.
zmasi commented 2026-12-02 00:54:54 +00:00 (Migrated from github.com)
Author
Contributor

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-gpu directly against Vesper 7b7e556 (plus Foxhound and Victory-Neo):

  • Clarification on LEONIDA_HOST_WAVE32=1: neither this translator nor Vesper's has a wave-size form outside compute programs (SM 6.6 allows WaveSize on compute shaders only). So LEONIDA_HOST_WAVE32=1 could not have changed the terrain's mesh or pixel programs, and its negative result says nothing about them.
  • One real Mandy-only difference on the terrain path: since 0eab02a8b, an indirect mesh record (X, 0, 0) (which terrain tessellation writes) is promoted to (X, 1, 1) and asks its list's budget for X * 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 charge 0 for it. Whether that causes the black ground triangles here is not yet known.

Next checks (cheapest first, no new build needed for 1–2)

  1. From what @drake1ch already captured (the four frames and that run's log):
    • What dimensions are in the file names of the base-colour and normals dumps (...-<w>x<h>-f<format>.png)? Target dumps save PNGs at half width and height, so a 1920x1080 target saves a 960x540 PNG.
    • In the four frame-<n>-ops.txt, which pipelines draw into those two target resources?
    • In that run's log, over the seconds the patches appear, is "indirect mesh dispatches: ... indirect records a frame ran empty for want of their list's budget" 0.00 throughout?
  2. One launch each on a reproducing build (separate runs so nothing is confounded):
    • -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 its raw_twins field).
  3. On a diag build containing d87ada391 (main from 2026-12-01 onward, e.g. b3910e5e3 on 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.
  4. If a frame recording completes on the 62 GB PC (d3d12/docs/replay.md): whether the picture leonida 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7331099690 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7331099690). Originally posted by [zmasi](https://github.com/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-gpu` directly against Vesper `7b7e556` (plus Foxhound and Victory-Neo): - **Clarification on `LEONIDA_HOST_WAVE32=1`:** neither this translator nor Vesper's has a wave-size form outside compute programs (SM 6.6 allows `WaveSize` on compute shaders only). So `LEONIDA_HOST_WAVE32=1` could not have changed the terrain's mesh or pixel programs, and its negative result says nothing about them. - **One real Mandy-only difference on the terrain path:** since `0eab02a8b`, an indirect mesh record `(X, 0, 0)` (which terrain tessellation writes) is promoted to `(X, 1, 1)` and asks its list's budget for `X * 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 charge `0` for it. Whether that causes the black ground triangles here is not yet known. ### Next checks (cheapest first, no new build needed for 1–2) 1. **From what @drake1ch already captured** (the four frames and that run's log): - What dimensions are in the *file names* of the base-colour and normals dumps (`...-<w>x<h>-f<format>.png`)? Target dumps save PNGs at half width and height, so a `1920x1080` target saves a `960x540` PNG. - In the four `frame-<n>-ops.txt`, which pipelines draw into those two target resources? - In that run's log, over the seconds the patches appear, is `"indirect mesh dispatches: ... indirect records a frame ran empty for want of their list's budget"` `0.00` throughout? 2. **One launch each on a reproducing build** (separate runs so nothing is confounded): - `-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 its `raw_twins` field). 3. **On a `diag` build containing `d87ada391`** (`main` from 2026-12-01 onward, e.g. `b3910e5e3` on 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. 4. **If a frame recording completes on the 62 GB PC** (`d3d12/docs/replay.md`): whether the picture `leonida 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.
8aty commented 2026-12-02 19:38:09 +00:00 (Migrated from github.com)
Author
Contributor

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: main at b3910e5e3 (has d87ada391), diag build, 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=1 with LEONIDA_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 them in 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 to raw_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:

  • Start-up, default settings: host view heaps hold 2097152 views; … views=2097152 raw_twins=true
  • Throughout, while the triangles show: indirect 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 the go file: 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 replay on it doesn't get far: it ends ~3 s after start, before it could have uploaded the 4.9 GB, with 0x887A0005 (device removed) and no other output. Same with --loops 1 --breadcrumbs and with --wait-lists. No driver reset in the Windows event log. --breadcrumbs turns 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 empty again).

Happy to test more builds or switches.

frame-0

AI-assisted: runs launched and logs read with Claude Opus 5.5; what's on screen observed by me on the RX 7900 XTX.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7356485164 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7356485164). Originally posted by [8aty](https://github.com/8aty) on 2026-12-02T19:38:09Z. --- Tested the checks from the comment above on the RX 7900 XTX, same setup as my report: `main` at `b3910e5e3` (has `d87ada391`), `diag` build, 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=1` with `LEONIDA_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 them` in 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 to `raw_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: - Start-up, default settings: `host view heaps hold 2097152 views; … views=2097152 raw_twins=true` - Throughout, while the triangles show: `indirect 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 the `go` file: `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 replay` on it doesn't get far: it ends **~3 s after start**, before it could have uploaded the 4.9 GB, with `0x887A0005` (device removed) and no other output. Same with `--loops 1 --breadcrumbs` and with `--wait-lists`. No driver reset in the Windows event log. `--breadcrumbs` turns 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 empty` again). Happy to test more builds or switches. <img width="2560" height="1440" alt="frame-0" src="https://github.com/user-attachments/assets/05790cb1-abe9-4cfc-9ccc-b64f1847027e" /> AI-assisted: runs launched and logs read with Claude Opus 5.5; what's on screen observed by me on the RX 7900 XTX.
spyland8k commented 2026-12-02 23:14:37 +00:00 (Migrated from github.com)
Author
Contributor

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

  • Radeon RX 7900 XT, AMD driver 32.0.31041.1004
  • Ryzen 7 5800X3D, 32 GB, Windows 11 Pro (10.0.26100)
  • main at 8d82a34ae (2026-12-02, contains b41763227), diag build 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)

  • Rays off (the default), LEONIDA_HW_RT=1, and LEONIDA_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

  • Start-up: host view heaps hold 2097152 views; … raw_twins=true
  • In the world, with the default batch settings: indirect mesh dispatches: the largest group count asked for 810 to 2124, 24,549 to 50,030 groups asked per frame, 0.00 indirect records a frame ran empty.
  • One difference: with LEONIDA_INDIRECT_BATCH=0 and LEONIDA_INDIRECT_WINDOW=1, the largest asked for is 65535, about 374,000 groups per frame, and 0.18 to 0.42 records 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 0xc0000005 in AMD's compiler on 61 of 60,682 pipelines (rays off); warm-bad.txt now 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.

black_floor
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361744497 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7361744497). Originally posted by [spyland8k](https://github.com/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 - Radeon RX 7900 XT, AMD driver **32.0.31041.1004** - Ryzen 7 5800X3D, 32 GB, Windows 11 Pro (10.0.26100) - `main` at `8d82a34ae` (2026-12-02, contains `b41763227`), `diag` build 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) - Rays off (the default), `LEONIDA_HW_RT=1`, and `LEONIDA_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 - Start-up: `host view heaps hold 2097152 views; … raw_twins=true` - In the world, with the default batch settings: `indirect mesh dispatches: the largest group count asked for` 810 to 2124, 24,549 to 50,030 `groups asked per frame`, `0.00 indirect records a frame ran empty`. - One difference: with `LEONIDA_INDIRECT_BATCH=0` and `LEONIDA_INDIRECT_WINDOW=1`, the largest asked for is `65535`, about 374,000 groups per frame, and `0.18` to `0.42` records 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 `0xc0000005` in AMD's compiler on 61 of 60,682 pipelines (rays off); `warm-bad.txt` now 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. # # <img width="2560" height="1440" alt="black_floor" src="https://github.com/user-attachments/assets/036452f0-9c5f-4140-8a14-0f59e5b4cf07" />
MoonEyes commented 2026-12-03 14:21:22 +00:00 (Migrated from github.com)
Author
Contributor

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 SCRUB on did not help. So it is not RDNA4- or 7800 XT-only. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7381307391 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2771#issuecomment-7381307391). Originally posted by [MoonEyes](https://github.com/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 SCRUB` on did not help. So it is not RDNA4- or 7800 XT-only. AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#2771
No description provided.