[Linux / AMD RX 6800 / RADV] Severe geometry/screen corruption at highway toll plaza that persists across desktop apps until GPU suspend/resume #123
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp#123
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?
@wildman9x on GitHub · 2026-12-05 19:09 UTC · original
Summary
When driving up to a specific area (highway toll plaza at night), severe graphics corruption triggers in-game and then persists across other desktop applications even after
larp.exeexits cleanly (exit code 0). Only suspending and resuming the PC (which re-initializes the GPUSMU/DMUB/DCN 3.0) clears the desktop-wide corruption.(Video recording to be attached in a follow-up comment)
Visual Symptoms (shown in video)
00:00: Bright magenta/pink bloom flare on the vehicle rear and corrupted pixel strips along the bottom edge of the screen.00:04: Thin diagonal pink/white stretched geometry lines cutting across the screen near the toll plaza.00:06–00:09: When pausing, thick diagonal white/pink spikes cut across the entire screen, corrupted/stretched triangles appear over the top-left pause menu UI, and a vertical seam splits the blurred background.larp.exe(clean exitcode 0), visual glitches remain in other desktop applications until GPU suspend/resume.Environment
v1.0.11(larp-linux-proton.exe,9715a1d) vialinux/run.sh(umu-launcher 1.4.3,GE-Proton11-5-x86_64)larp-linux(proton-cachyos-native)d3d12.dll/d3d12core.dll(VKD3D_FORCE_WAVE32=1,VKD3D_CONFIG="dxr11,no_descriptor_heap,pipeline_library_app_cache",wave lanes min=32 max=32)0x1002:0x73bf, Navi 21 / RDNA 2, DCN 3.0)3:26.3.1-5(vulkan-radeon/ RADV), Linux7.3.7-2-cachyosniri 26.04-1.1+xwayland-satellite 0.8.3-1.13840x2160),frame_rate=60,texture_detail=1 level down, host ray tracing on (tier=1.1), natived3dcompiler_47.dllinstalled.Steps to Reproduce
larp(./linux/run.sh) on Linux with AMD RX 6800 (RADV).larpexits withcode 0) — corruption persists in other desktop apps until suspending/resuming the system.What Was Already Tested & Ruled Out
memtest_vulkan v0.5.0passed the full 5-minute test (4,573iterations, ~50 TB written & checked at ~460 GB/s, 0 errors).RADV_DEBUG=nodcc,zerovram.--stream-budget 2000.LARP_RT_WHOLE=1(ray tracing's structure memory and positions' pool are made whole).journalctl -kshows noamdgpuVM page faults, ring timeouts, GPU resets, or MCEs during gameplay.Relevant
play.logWarningsConsistently logged on every run prior to entering the area:
Full
play.log: https://gist.github.com/wildman9x/557f3075bb1937bf620072bf45409a65@gamingwithhomie on GitHub · 2026-12-05 21:02 UTC · original
Please retest on v1.1.1 [Linux/Proton]: it includes #142 (refused lighting pipelines - your log in that thread had them), #135 Wine fixes and #147. If the toll-plaza corruption persists on v1.1.1, its in the family PR #183 (wide-heap RADV replacements) addresses - thats in review now. A RADV hang that corrupts other desktop apps is a GPU reset; the vkd3d log lines (
VKD3D_CONFIG=fault) from a v1.1.1 run would help a lot.@WhiteAssassins on GitHub · 2026-12-05 23:49 UTC · original
Same here, on another RDNA2 card. Corruption triggered right after passing the highway toll plaza while driving toward the city, and it spread to the whole KDE desktop. It persisted after larp exited cleanly and after restarting plasmashell; a reboot cleared it.
Environment
linux-testbuilt from source at219d404(v1.1.4 + post-v1.1.4 batch)texture_detail=1 level down, RT shadows at Low/offImportant: I'm running with
LARP_SHADER_REPLACE=0. With the replacement shaders on, the 3D world renders black on this card (HUD only), so I had to turn them off. That may be why I hit this: the wide-heap RADV replacements (#183) are exactly what I can't use.journalctl -k.I'll retest once
9c0d435("Build shader replacements for both descriptor heap sizes") reacheslinux-test, and can grab a run withVKD3D_CONFIG=faultif that helps.@WhiteAssassins on GitHub · 2026-12-06 02:03 UTC · original
Follow-up from my earlier comment (RX 6750 XT 12 GB, RDNA2, RADV). I retested with PR #183 included and the replacement shaders on, and it still happens. It looks tied to VRAM running out.
Build / setup now
linux-testat103bb4c, which includes #183 (44b6a8d/e59a37a) and9c0d435. Replacement shaders on:usable=86,missing_wide_variants=0. The world renders correctly now (no more black world).texture_detail = 1 level down, RT shadows low/off. Stock clocks, Mesa 26.3.1, kernel 6.18 LTS, Proton Experimental 11.0-20261203b.3 out of 3 times, at the same place: just after the highway toll plaza, driving into the city
F9 VRAM breakdown at the moment of the corruption (run 2)
So
texture_detailcan only touch the ~0.9 GB of streamed textures. Most of the pressure is "ungrouped" plus empty heap space plus RT structures. Over a ~45 min session, fps also dropped from ~24 to ~19–22 in comparable scenes as VRAM filled and spilled. GPU stayed at 99% busy while drawing only ~125–140 W of 215 W, which looks like it was waiting on PCIe.Related open PRs that look relevant
LARP_HEAP_MB: smaller heaps, which would cut "free in the heaps".window of title memory outside buffers is made partly over a buffer the GPU ownsandtitle memory read inside a buffer the GPU ownserrors in this session.Could the ≤ 8 GiB tightening from #393 (or something similar) also kick in when a 12 GB card's usage nears its budget? I'm happy to test any branch, or to run with
VKD3D_CONFIG=faultand post the log.@WhiteAssassins on GitHub · 2026-12-06 02:32 UTC · original
Update with harder data. I took a snapshot of
amdgpu_gem_info(debugfs) every minute during a run to see which buffer objects grow. Same setup as my last comment: RX 6750 XT 12 GB,103bb4cwith #183, replacement shaders on, Series X, FSR 4.1.1 Performance, FSR FG 2x,texture_detail = 1 level down, RT shadows low/off,LARP_WINE_NO_SPARSEat its default (on under Wine).Note: I also hit the corruption once while flying a plane, nowhere near the toll plaza. So it doesn't seem tied to that location; it shows up once enough new map has been streamed in.
Game process memory (route: house → toll plaza at ~min 4 → city)
Total for the game: 11.75 GB → 14.0 GB in 6 minutes. F9 "ungrouped" went 1.8 → 2.2 GB in the first minutes; in earlier runs it reached 5.6 GB.
What grows (min 2 → min 8)
About +1.1 GB net in small BOs with
VRAM VISIBLE CPU_ACCESS_REQUIRED CPU_GTT_USWC EXPLICIT_SYNC. The sizes form a doubling chain, with the smaller ones going away and the bigger ones appearing:That looks like per-command-buffer upload buffers that double when they run out (RADV's cmd-buffer upload BO grows like this) and are kept per command buffer/allocator. These aren't in any larp pool, so F9 shows them as "ungrouped". This is my guess from the pattern, not confirmed.
About +0.7 GB net in large heaps (64/128/256 MB, no CPU access). Once VRAM is full they land in GTT.
From minute 5 on, VRAM is full and new allocations go to GTT. This run I got no artifacts, but the HUD disappeared in the city. Earlier runs got whole-desktop corruption, or
device removed 0x887A0005with a kernel GPU reset.So on a 12 GB card it never levels off: it keeps allocating until VRAM is full and then spills. Questions:
LARP_HEAP_MB) also apply on 12 GB cards when usage gets close to the budget?The snapshots, log and script are available if useful. Next I'll test
LARP_WINE_NO_SPARSE=0(sparse is fine on RADV; the workaround is for NVIDIA) and report back.@wildman9x on GitHub · 2026-12-06 03:24 UTC · original
Update: Reproduced on
v1.1.6— Fullring gfx_0.0.0 timeout+ AMDGPU DevcoredumpReproduced again on
v1.1.6(larp-v1.1.6-linux-proton-FULL, withLARP_WINE_NO_SPARSEactive and patchedvkd3d-protonwave lanes min=32 max=32).This time, the same region triggered a full GPU hang &
MODE1reset (0x887A0005/DXGI_ERROR_DEVICE_REMOVED/ exit-2005270523) twice back-to-back (10:46and11:17).Kernel log (
journalctl -k)AMDGPU Devcoredump Summary (
5.4 MB, full dump available on request)GC v10.3.0(Navi 21 / RX 6800),Ring Name: gfx_0.0.0,process_name: main(TGID: 54978),thread: vkd3d_queue(PID: 55019)[gfxhub] Page fault observed,Faulty page starting at address: 0x0000000000000000mmGRBM_STATUS = 0xa06131ac(GE_BUSY,PA_BUSY,SC_BUSY,SPI_BUSY,SX_BUSY,TA_BUSY,TCP_BUSY,GDS_BUSY)mmGRBM_STATUS2 = 0x50100008mmCP_GFX_ERROR = 0x0IB1 @ 0x8003eaea1000(cmd_bufsz 0x70c0),IB2 @ 0x800100025000(cmd_bufsz 0xa8)larp v1.1.6also dumped 5 in-flight graphics queue submissions at the0x887A0005hang containing active[mesh ...]and[compute ...]pipelines, which lines up with the geometry engine (GE_BUSY/PA_BUSY) hang and the stretched diagonal geometry artifacts in the video.