Crash in the AMD shader compiler on RX 9070 XT (RDNA 4): the game makes pipelines that warm already marked bad #60
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#60
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?
@BackseatDrivers-Unbound on GitHub · 2026-11-26 00:48 UTC · original
Summary
Commit
0a43566does not get into the game on a Radeon RX 9070 XT. The process dies with an access violation inside the AMD driver's compiler,amdxc64.dll+0x861b9f, while pipelines are being made.victory warmfinds the offending pipelines (70 of 60,680) and lists them inwarm-bad.txt, but the game itself does not read that list and crashes on them again.System
0a43566, built from source with the pinned toolchain, unmodifiedscripts\play.ps1with-Safe; fresh cache and data foldersWhat happens
amdxc64.dll+0x861b9fVICTORY_PIPELINE_BOOK=1victory warmThe same address every time.
What we think the cause is (from reading the code, not proven)
warm-bad.txtis read only by thewarmcommand. The game makes its early pipelines in its own process and has nothing that keeps it from compiling a pipelinewarmfound to crash the driver.VICTORY_SKIP_PIPELINEStakes shader hashes, whilewarm-bad.txtholds pipeline names, so the list cannot be passed through that switch.A different fork (Belobug's) starts on this same card and driver: it isolates pipelines that crashed and leaves known ones out. So the shaders involved are probably ones this driver's compiler cannot take, not a hardware fault.
What would help
warm-bad.txt.warm-bad.txtinto somethingVICTORY_SKIP_PIPELINESaccepts.Happy to run a test build or collect more (a dump, a log with a switch you name).
warm-bad.txt from this card (70 pipelines, each with exit code 0xc0000005)
github-bot referenced this issue2026-11-26 11:21:40 +00:00
@BackseatDrivers-Unbound on GitHub · 2026-11-26 15:35 UTC · original
Follow-up with what we found since, in case it helps. Everything below was measured on an RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 5800X3D, 32 GB. We are not continuing on this fork, so no PR from us; take whatever is useful.
1. The
amdxc64.dll+0x861b9fcrash: a translator pattern triggers it (proven by test on a snapshot of this fork)The crashing pipelines (28
CS_RaytracingResolve_{b1139868,ae7b7f3c,f21e9178}ofped_standard_{muv*,head,skin,lod_*}, plusbvh_skinning:CSComputeSkinningTreeAnimVelocity_d2f99501) all contain this construct in one basic block:createHandleFromHeap→annotateHandle(ByteAddressBuffer) →getDimensions(handle, undef)as the handle's first use →rawBufferLoadthrough the same handle.descriptor_datainemit/lower.rsemits a size query at every descriptor load; DEAD later removes unread ones, but REUSE inemit/bitcode/opt.rsfirst replaces the live, late query with the identical earliest one, right next to the handle's creation.victory translate <dir> --pipelines --list --jobs 1(child process, guard off) onped_standard_muv_secmoCS_RaytracingResolve_b1139868(container hashd2c52fcd936985b4): crashes 2 of 2 atamdxc64.dll+0x861b9f. Same shader withVICTORY_SHADER_OPT=59(REUSE off): pipeline made. Healthy control7364921ed673344b: pipeline made.lower.rs), so REUSE has nothing to hoist. The tree-skinning shader has the construct for a different reason (the title itself reads the size at the first load), so it needs a different emission order.lower.rsdiffers from the snapshot we tested. The original0a43566crashed at the same address, so it is likely still there.2. Placed views: the shape table fills up and memory then grows without bound
shape_ofindescriptor.rskeys on the raw words, but the title leaves stack contents in some of them (resource words 1 and 13, view words 3 and 9; your own comment inresource::texture_atmentions words 1 and 13). Measured in a 26-minute run with an audit counting both ways: 133 M placed views, 1,676,979 shapes raw vs 85,661 with those words cleared. With raw words the table reaches its cap (2^22) after about 30 minutes of play; after that every placed view becomes a kept table entry: 16.65 M entries / about 6.6 GB at 67 minutes, the frame time roughly doubles and a 32 GB PC starts paging. Clearing those words before shaping cost nothing measurable in an on/off A/B (same draws, same pictures).3. Smaller things
scripts/play.ps1setsVICTORY_TITLE_PRIORITIES=0, which leaves the title's idle-priority streaming threads at idle; the comment inkernel.rsrecords loads 1.1-4.8 s late in that state. Likely related to late faces/props after scene changes.E_NOTIMPLwarning for pipeline creation methods (device slots 0x1c8 and 0x218) is logged only for calls 1-4 and powers of two, so 29 log lines stood for at least 18,432 refused creations in one session.