AMD RX 9070 XT (RDNA4): black flickering patches on roads and soil outdoors #2770
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Reference
No Branch/Tag specified
main
github-pr/3295
beta
docs/changelog-3483-3500
github-pr/3294
github-pr/2975
github-pr/2815
feat/gate-driver-start
feat/skip-pipelines-release
perf/lazy-compare
perf/mwaitx-wait
test/prio-ceiling-main
fix/ab-cpu-stdout
fix/gate-old-crashes
diag/ab-cpu
test/main-0312
github-pr/3291
diag/indirect-clamp-census
feat/barrier-enhanced
perf/texture-frame-ceiling
perf/dstorage-threads
fix/console-queue-dma-tables
fix/port-descriptors-record-parts
fix/frame-waits-fence
fix/console-sampler-words
fix/graphics-userdata-spill
fix/xg-reserved-layout-rotation
fix/barrier-console-flags
fix/switches-wait-test-child
test/list-value-waits
test/lot-gxdk-0412
fix/bvh-compacted-size
docs/i18n-quickstarts
feat/native-pipeline-slots
fix/clippy-leonida-gpu
fix/list-value-producers
fix/descriptor-page-straddle
fix/xmem-low-window
fix/ffx-jitter-never-zero
fix/run-stdout-closed
github-pr/2892
github-pr/2896
feat/warm-save-every
github-pr/2980
github-pr/2994
github-pr/3005
github-pr/3010
github-pr/3136
github-pr/3303
github-pr/3220
github-pr/3143
github-pr/3330
github-pr/3226
github-pr/3187
carry/3395
github-pr/2946
github-pr/2947
github-pr/2945
github-pr/2983
github-pr/3001
github-pr/3372
github-pr/3128
github-pr/3296
github-pr/2588
github-pr/3119
github-pr/3378
fix/crash-diagnostics
feat/dlss-mip-bias
fix/retired-out-of-order
fix/dxr-postbuild-barrier
fix/amd-relay-default
fix/removed-report-wait
feat/heap-twin
feat/vram-margin
github-pr/2472
github-pr/3123
github-pr/3088
assets/annonce-v1
github-pr/2794
github-pr/3300
github-pr/3304
github-pr/3308
github-pr/3367
github-pr/3369
fix/launcher-dlss-diagnostics
github-pr/3269
github-pr/2957
github-pr/3205
fix/crash-zero-guard
github-pr/3185
github-pr/3099
github-pr/3104
github-pr/3348
github-pr/3379
github-pr/3377
perf/darner-title-priority-ceiling
github-pr/3376
gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github-pr/3373
github-pr/3368
github-pr/3198
gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github-pr/3346
github-pr/3375
github-pr/2958
github-pr/3151
github-pr/3307
github-pr/3278
github-pr/3374
fix/runtime-test-conservative-fixtures
github-pr/3366
ci/shard-semantic-linux
github-pr/3354
docs/fg-limit-fps-switch
github-pr/3365
fix/read-file-hard-link
github-pr/3364
fix/book-slot-heap-never-read
github-pr/3361
github-pr/3263
github-pr/3360
github-pr/3353
github-pr/3331
fix/alias-later-queued-submissions
github-pr/3352
github-pr/3228
github-pr/3349
claude/gallant-sagan-aamatr
github-pr/3200
github-pr/3132
github-pr/3323
github-pr/3332
github-pr/3340
github-pr/3311
github-pr/3334
github-pr/3297
github-pr/3256
github-pr/2567
github-pr/2851
d3d12/agility-sdk-621
github-pr/3164
github-pr/3114
github-pr/3050
github-pr/3113
github-pr/3326
github-pr/3144
github-pr/2642
github-pr/3072
github-pr/2789
github-pr/2643
github-pr/3009
github-pr/3035
github-pr/3031
github-pr/2686
github-pr/2834
github-pr/3321
github-pr/3325
github-pr/3290
github-pr/3324
github-pr/3130
claude/fervent-curie-m19lnr
github-pr/3309
github-pr/3305
github-pr/3306
github-pr/3302
github-pr/3301
github-pr/3345
github-pr/3211
github-pr/3027
github-pr/3286
github-pr/3235
github-pr/3265
github-pr/3275
codex/skip-no-hit-ray-passes
github-pr/2823
github-pr/2911
github-pr/3262
github-pr/3125
github-pr/3206
github-pr/3250
github-pr/3238
github-pr/3188
github-pr/2952
github-pr/3217
github-pr/3168
t3/preserve-fsr-sdk-restart-path
t3/propagate-host-failure-hresult
github-pr/3209
t3/launcher-custom-parameters
github-pr/3207
github-pr/3183
github-pr/3160
github-pr/3201
ci/less-to-run
github-pr/2930
github-pr/2797
github-pr/2999
perf/native-compute-shader-forms
github-pr/3191
github-pr/3011
github-pr/3019
github-pr/2996
gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
claude/blissful-franklin-ukp7ag
github-pr/3141
github-pr/3156
github-pr/3150
github-pr/3153
github-pr/3163
github-pr/3142
github-pr/3139
github-pr/2841
github-pr/3069
github-pr/3098
github-pr/3107
github-pr/3071
github-pr/2774
github-pr/2889
github-pr/3075
github-pr/2661
github-pr/3064
github-pr/3054
github-pr/3049
github-pr/2855
github-pr/2943
github-pr/3016
github-pr/2887
github-pr/3006
github-pr/3003
github-pr/2993
notes/card-time-and-plant-flicker
github-pr/2989
feat/vulkan-rs
github-pr/2985
github-pr/2951
github-pr/2982
github-pr/752
github-pr/792
github-pr/2877
github-pr/2654
github-pr/2893
github-pr/2948
github-pr/2944
github-pr/2919
github-pr/2915
archive/ci/less-to-run/20261202T1121Z
github-pr/2800
github-pr/2822
github-pr/2833
github-pr/2840
github-pr/2831
github-pr/2832
github-pr/2801
github-pr/2890
github-pr/2891
github-pr/2664
github-pr/2807
rt-call-trace
github-pr/2755
perf/ahead-split
github-pr/2587
github-pr/2698
github-pr/2609
github-pr/3219
docs/readme-runtime-proposal
github-pr/2017
github-pr/1741
github-pr/1667
codex/coord-claim-check-20261124-7e48
v1.1.0
v1.0.1
Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy#2770
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?
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:
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
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
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).
Same fault on a second RX 9070 XT — a datapoint for this issue, plus a local workaround that gets in-game.
System: RX 9070 XT (RDNA4), Ryzen 7 7800X3D, 32 GB, Windows 11 (10.0.26300), AMD driver 32.0.32015.12012.
mainof 2026-12-02, the D3D12 runtime (leonida.exe) viaplay-d3d12.ps1.What happens: deterministic, 3 of 3 runs, at world load (about 2 minutes into loading the first time, seconds on a warm cache):
Same offset every time, and the synchronous call comes from a pipeline worker: the
host pipeline shaders=[...]line of the pipeline being created never prints, the one before it does.The warm stage confirms it is the compiler, not the input: the first run recorded 83,556 known pipelines, and
leonida warmthen ended 22 of its child processes with the same0xc0000005, leaving 111 pipelines inwarm-bad.txt. That is the same class of failure notlismcfly describes above.What did not work for me: feeding the shader hashes of those 111 bad pipelines into
LEONIDA_SKIP_PIPELINESdid not stop it — the in-game crasher is not among them, and in-game creation does not consultwarm-bad.txt(onlyleonida warmdoes), so a pipeline the warm-up could not make still reaches the compiler from the run itself.What did work: a local patch in
pipeline/make.rs(make_with) — the host pipeline's build runs on a thread of its own; a vectored exception handler, which only acts on a guarded build's thread and only when the faulting instruction is outsideleonida.exe, ends that thread withExitThread(0), and the caller takes the empty result slot as "refused", the same path a panicking build already takes. No frame of the broken call is resumed and nothing of the driver's state is trusted after the fault.With that, and the same shader skip list, the run gets in-game: 23 pipelines refused, 0 unhandled exceptions, through the first-run pages into the world. The cost is the picture of those 23 pipelines (dropped draws), which is what I would expect from the approach notlismcfly describes.
Two smaller notes that may save someone time:
Rip/Rspand resuming) is not enough: the continuation after the call needs the frame pointer and the callee-saved registers the driver had at fault time, and restoring those correctly is a much larger job than ending the thread.warm-bad.txtis 111 entries here, all of the form<key> exit code: 0xc0000005; mapping those keys to their shaders' 16-hex skip hashes is possible fromknown-pipelines.bin(record:u32size, 16-byte key,u8count, then per shaderu8stage + 32-byte BLAKE3; the skip hash is the first 8 bytes of that BLAKE3), in case that list is worth wiring into the run itself.Happy to share the diff if it is useful as a starting point for a real PR, with the caveat that it is a local build patch, not something I would call mergeable as-is.
AI-assisted (Mistral Vibe).
Closing as a duplicate of #2771 (same black flickering ground tiles outdoors, already black in the G-buffer base colour before lighting, on RDNA3 and RDNA4). The amdxc64.dll compiler crash while pipelines are built is the one #3333 now catches, see #3287. The project now lives at https://git.leonida.now/leonida/mandy.