Skip to content

AMD RX 9070 XT (RDNA4): black flickering patches on roads and soil outdoors #2770

Backlog

Description

@notlismcfly

What happens

Outdoors, asphalt and bare soil show black patches that flicker as the camera moves; indoors they don't.

Commit

be454ca (with 3 local patches, see below)

System

Windows 10 Pro 22H2, Ryzen 7 7800X3D, RX 9070 XT (driver 32.0.32015.2008), 32 GB RAM

Where

runtime

Command and steps

What we checked:

  • A frame capture (LEONIDA_CAPTURE_WORLD with LEONIDA_DUMP_TARGETS) shows the base colour of those ground surfaces is already black in the G-buffer, so it happens before lighting.
  • Not the shader clean-up passes: LEONIDA_SHADER_OPT=0 gives the same black ground.
  • Not the skipped ray-tracing resolves: with them compiled and running, the ground is the same.
  • Not the AMD legacy_mad change from D3D12-SHADER-RDNA-LEGACY-MAD: restore RDNA LEGACY lowering path in legacy_mad #2624: same with it.

Local patches needed to load at all: on this card the stock build crashes while loading because AMD's shader compiler (amdxc64) crashes (0xc0000005) on about 25 pipelines, several of them CS_RaytracingResolve. To get in-game I added three local patches: (1) pipelines in warm-bad.txt are skipped in game, (2) a pipeline worker that crashes in the compiler is caught and replaced (same idea as the Belobug/Whiplash guard), (3) LEONIDA_NO_REUSE_FOR leaves out the REUSE clean-up pass for named programs. Happy to share them as a pull request. The black ground was the same before and after these patches.

I can't share captures or shader files (game data), but I'm happy to run any setting or test build you suggest.

Output

No error, it's a visual problem. The game runs fine otherwise.

Activity

  1. added
    bug
    on Nov 30, 2026
  2. notlismcfly commented on Nov 30, 2026

    @notlismcfly
    Author

    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.

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

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions