You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AMD RX 9070 XT (RDNA4): black flickering patches on roads and soil outdoors #2770
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.
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.
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.
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):
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' })
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' })
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).
Activity
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.
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…