RX 6950 XT (RDNA2): host GPU device removed during world load, every run, no TDR event #82
Labels
No labels
accessibility
bench-bm-v1
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/PastiiJay--klbf-lab#82
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?
@a15106479638-hub on GitHub · 2026-11-26 13:24 UTC · original
RX 6950 XT (RDNA2): host GPU device removed during world load, every run, no TDR event
Environment
beta-2branch (Lab 62), built from source, Rust 1.98.1Kits\FidelityFX\signedbingame_scarlett_master.exe, title id 7952987A)What works
cargo build --releaseclean.translate --cache --pipelines --jobs 8 shaders.rpf→ 27097/27097 pipelines, ~19 min, one pass, no driver crash. Later runs report27090 already pre-built.fidelityfx ...\amd_fidelityfx_upscaler_dx12.dll (host, for the title's upscaler)What fails
Every run ends the same way 1.5–3.5 minutes after launch, while the world is still loading; the title never reaches gameplay.
16 consecutive runs, N between 1 and 55, M between 76 and 236 — I can paste the whole
crashes.log.It does not look like a TDR
TdrDelay=10andTdrDdiDelay=10(DWORD,HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers), rebooted, and verified both values are in effect from boot.So the device is lost without the watchdog firing, which reads more like the driver faulting than a command taking too long.
What I ruled out
play.ps1as shipped, commit charge climbed to 41.9 GB against a 41.6 GB limit, and one run also died earlier withmemory allocation of 1048576 bytes failedplustexture creation failed (0x8007000E). After reducing the pre-allocated pools (below) the peak stayed at 36–38 GB, well under the limit — the device removal still happened at the same point, so it is independent of memory pressure.VICTORY_LATE_WAIT=0(the workaround mentioned in the README for "device lost about a minute after the world starts loading"): on this machine it made things worse — device removed at ~60 s instead of ~180 s.--console series-s) both fail.-LowMemory(VICTORY_TEXTURE_MAX_DIM=512): lowers the memory peak, does not change the crash.Settings used (diff from
play.ps1)Identical to
play.ps1except the pool sizes, which I reduced so a 32 GB machine can fit the run:This may be worth documenting on its own: with the shipped pools a run on a 32 GB machine hits the Windows commit limit before the GPU failure, so the two problems mask each other.
Two questions
VICTORY_D3D12_DEBUG=1/ DRED run useful? I can build a diagnostics profile and send the output if that helps name the command.@HandshakeHackin on GitHub · 2026-11-26 13:28 UTC · original
There is a new beta-2 change for this card family since Lab 62. The maintainer’s RDNA 2 fix defaults
AHEAD_FIRST,CARD_FLAGGED,PASSES_AHEADandRELAYto off on RX 6000 cards. It follows the RX 6900 XT bisect in #52. Your RX 6950 XT is a useful independent check.For one comparable run, rebuild current
beta-2and keep the pool sizes and scene from your tuned run. Ifplay-tuned.ps1came from Lab 62, check its$setblock for the oldVICTORY_RELAY = '2'entry and remove that entry so the new default can take effect. The same applies to explicit assignments for the other three switches. The startup lineRDNA 2 adapter: AHEAD_FIRST, CARD_FLAGGED, PASSES_AHEAD and RELAY default to 0 (issue #52)confirms the adapter was recognized. The commit SHA, whether the world loads, and elapsed time to any removal would make the two runs comparable.If you still get a removal and want DRED, I built a Windows diagnostics executable from
9e0db50, with the GPU code from upstream8187780. It includes the executable checksum and revision. SetVICTORY_D3D12_DRED=1inside your tuned launcher after its environment cleanup so the executable receives it. Build and adapter test.@PastiiJay on GitHub · 2026-11-26 13:29 UTC · original
Thanks @a15106479638-hub, this is a very complete report, and the commit-limit note for 32 GB machines deserves its own line in the guide. On RDNA2, the one switch we would try first is
VICTORY_RELAY=0: in #52 an RX 6900 XT stayed stable with it while the relay modes lost the card. Note thatplay.ps1currently resets that variable before launch (#81 fixes it), so for now set it and startvictory.exedirectly, or apply #81. If it still drops the device, yes, aVICTORY_D3D12_DEBUG=1/ DRED run would be the next most useful thing.@PastiiJay on GitHub · 2026-11-26 13:30 UTC · original
Update that makes my last note simpler:
beta-2got commit8187780a moment ago. On RDNA 2 cards like yours,AHEAD_FIRST,CARD_FLAGGED,PASSES_AHEADandRELAYnow default to 0 when unset, andplay.ps1no longer forcesRELAY=2. So pleasegit pullbeta-2, rebuild, and runplay.ps1as usual; the log should show one line starting withRDNA 2 adapter: … default to 0 (issue #52). And thanks again for the commit-limit finding, we will add it to the guide.@HandshakeHackin on GitHub · 2026-11-26 13:48 UTC · original
I added the 32 GB commit-limit finding to the Windows guide in the existing docs PR #13. It points readers to Task Manager’s Committed values and credits this report for both measurements: roughly 42 GB at the limit with the shipped pools, then 36–38 GB with smaller pools and the device removal still present. The docs PR targets
beta. Guide-only commit for the beta-2 docs batch.@PastiiJay on GitHub · 2026-11-26 13:59 UTC · original
Thanks @HandshakeHackin for writing that up with the Committed values and credit. @a15106479638-hub, the guide note is in #13; the next useful thing from you is still the run on the updated beta-2 (
git pull, rebuild,play.ps1as usual).@a15106479638-hub on GitHub · 2026-11-26 14:04 UTC · original
Thanks both — the fix works on the RX 6950 XT. Reporting back as asked.
Run:
beta-2at8187780(rebuilt from source, Rust 1.98.1). Settings are the branch'splay.ps1with only my pool reductions and noVICTORY_RELAYassignment:-LowMemory, Series S + FSR (SDK 2.4.0).The startup line confirms the adapter was recognized:
The device is no longer removed, and the world loads. I stopped it at ~9 minutes, where every previous run lost the card at 150–210 s. The prison prologue renders; I have a screenshot if it helps.
It is not playable on this machine yet: 0.3–1.8 fps. Last frame line:
Commit charge sits at 42.8 of a 43.3 GB limit throughout, and 117 GB of textures have been uploaded — it is thrashing. The GPU itself is only ~120 ms busy per frame; the cost is on the CPU side (heap buffer passes 1221 ms, texture uploads 507 ms).
So the RDNA2 device-removal bug looks fixed. What is left here is 16 GB of VRAM and 32 GB of RAM against the title's texture churn — which I do not think any switch will fix.
The commit-limit finding still stands and is worth the guide line: on a 32 GB machine the shipped pools put the run at the Windows commit limit before the GPU ever gets going, so a machine like this fails for a second, unrelated reason and never reaches the RDNA2 bug at all.
Happy to do either of these next if useful:
RELAY=1, thenRELAY=2, one at a time, to see whether any of them still holds the card now that the defaults are 0 — that would be the cheapest speed back if one does.@PastiiJay on GitHub · 2026-11-26 14:09 UTC · original
Great news, thank you for reporting back so carefully: no more device removal on RDNA 2 and the world loads, which is exactly what #52 was meant to fix. Please keep the screenshot to yourself though; we keep game images out of the repo, and your log lines say more anyway. Your numbers point at memory, not the GPU: commit stuck at 42.8 of 43.3 GB while textures keep re-uploading. One experiment that would tell us a lot: a fixed, larger page file (for example 64 GB) so the commit limit is far above the peak, then the same run, to see whether the 1.2 s heap-buffer passes and texture churn shrink.
@a15106479638-hub on GitHub · 2026-11-26 15:42 UTC · original
Three more experiments since the last report, all on
beta-2@8187780, RX 6950 XT (16 GB, Adrenalin 32.0.21045.29003), i5-12600KF, 32 GB RAM, Windows 11 26300.8935, FSR SDK 2.4.0,-LowMemory, Series S + FSR, with my pool reductions only (no explicitRELAYassignment).The short version. The split point is
RELAY, and on this card it is all-or-nothing:RELAY=0RELAY=1Turning the relay on is worth 5x — and it is also what takes the device. The 5x is the copy-back leaving the submitting thread (463.3 ms → 43.6 ms); the copy-back is the thing that kills the card. I could not find anything between the two ends, and a larger page file is neither possible here nor the missing piece (the commit limit was 4.1–4.4 GB above the peak in both runs). Details below.
1. The larger page file: cannot be done here, and the numbers already answer it
A fixed 64 GB page file is not possible on this machine. The only internal disk is a 118 GB NVMe with 13.9 GB free; 64 GB of commit with 31.8 GB of RAM needs a ~32 GB page file. The second disk is USB-attached and Windows will not create a page file on it (I set
d:\pagefile.sys 24576 24576, rebooted, and it was never created). Even clearing every cache I can reach leaves about 15 GB free, which caps the page file at ~12 GB — a commit limit of ~43.7 GB, against the 42.8 GB already in place.But the experiment has effectively already run, because the commit limit was not binding in the last two runs:
RELAY=0RELAY=1So do not spend a reboot on this at my end; there was nothing left to give.
2. What the baseline did change
I did run the closest version of it: closing the background apps (browser, chat client, Radeon Software) took idle commit from 15.4 GB to 8.0 GB, which gave the run 31.3 GB of room under the limit instead of 26.9 GB.
It fixed one thing and not the other:
You were right that memory pressure was doing damage — the heap-buffer passes go from 1221 ms to 25.8 ms once the limit is out of the way, which is also what those 3.4 s frames were. But the frame that is left is dominated by the copy-back, not by memory.
3.
RELAY, three configurationsRELAY=0(new default)RELAY=1RELAY=1+RELAY_OWN_QUEUE=0With
RELAY=1, copying back drops 463.3 ms → 43.6 ms and the GPU time 107.7 → 23.9 ms — the 5x isexactly the copy-back moving off the submitting thread. And that is exactly what takes the card:The
RELAY_OWN_QUEUE=0variant was my guess at a middle ground. It is worse on both counts, so the queue of its own is not the culprit — it is buying speed and time here, not costing them.Two things worth having on record:
RELAY=1survives about twice as long as the oldRELAY=2did (360 s against 150–210 s), so this is not "any relay dies at once"; and the relay looks all-or-nothing —RELAY=0never loses the card,RELAY=1always does.Where that leaves it
This machine has 1.5 fps that never drops the device, or ~7 fps for six minutes. I could not find a configuration between the two, and I do not think the remaining gap is a switch: it is 16 GB of VRAM and 32 GB of RAM against a title that re-uploads 84–117 GB of textures per run.
If there is a design direction in this, the numbers say it is this: a relay that can fail and be rebuilt instead of taking the device down with it. The five-fold difference between
RELAY=0andRELAY=1is what that would be worth here.I still have every run's full stderr and the 18
crashes.logentries and can paste any of it, and I can run a DRED/diagnostics build on request.@PastiiJay on GitHub · 2026-11-26 15:47 UTC · original
Thank you, this is the clearest picture we have had of the relay on RDNA 2: the memory pressure part is solved by freeing commit, and what is left is a clean trade between
RELAY=0(stable, slow) andRELAY=1(5x faster, loses the card at ~6 min). Your design point, a relay that can fail and be rebuilt instead of taking the device down, is noted. Next step that would help most: oneRELAY=1run withVICTORY_D3D12_DEBUG=1(DRED), so the removal names the command it died on.@a15106479638-hub on GitHub · 2026-11-26 16:14 UTC · original
Ran it.
beta-2@8187780, built withcargo build --profile diag -p victory --features diagnostics(target\diag\victory.exe),VICTORY_RELAY=1,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1, otherwise the same settings as before. Same outcome as the release build — removed at ~360 s, ~6,400 draws, 1.4 fps at the end — so the diagnostic build does not change the behaviour.One thing you should know first: this machine has no D3D12 debug layer. The run logged
so
D3D12GetDebugInterfacefails and DRED's auto-breadcrumbs come back empty (breadcrumbs (done/count, list) []). Installing the Graphics Tools optional feature (admin) would fix that — say the word and I will do it and repeat the run.But the diagnostics build's own record still names the command, which is what we needed:
So it dies in list 2 of 198, at command 8 of that list's 8: a 64×320 format-41 copy through a placed footprint with row pitch 256, recorded next to an 8×1×1 compute dispatch of
ce684a9201818f3fwriting an unordered buffer at heap 434144 (title memory0x98dc5c8c0+0x1000).Two questions:
ce684a9201818f3fenough to identify the program on your side? If it translates cleanly I can dump its translation, the containing shader container, and the exact list contents around command 8 from the diagnostics build — just tell me which of those would help.@PastiiJay on GitHub · 2026-11-26 16:16 UTC · original
Thank you, that record is exactly what we needed. Yes,
ce684a9201818f3fidentifies the program on our side. The most useful next thing is its translation dump plus the list contents around command 8, from the same diagnostics build. Hold off on Graphics Tools for now: we would rather look at that program first, and come back to you if real DRED breadcrumbs are still needed.@a15106479638-hub on GitHub · 2026-11-26 17:25 UTC · original
ce684a9201818f3f.zip
Reproduced it, and this time with the whole list — all 8 commands, not the last 6.
Run: diagnostics build,
VICTORY_RELAY=1,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1,VICTORY_SHADER_SAVE, my pool reductions,-LowMemory, Series S + FSR. Removed at ~270 s.The failing list, all 8 commands (
last_notesraised from 6 to 64 in my build so all of them print):Three runs now, three different submissions — 198 lists, then 7, then 210 — and every one of them dies with the same pair at the same place: the
64x320 f41copy and then thedispatch [compute ce684a9201818f3f]. It is deterministic and it is that program.The translation dump is attached as
ce684a9201818f3f.zip(2.9 KB — GitHub will not take.dxil/.cdxildirectly).VICTORY_SHADER_SAVEwrote 6,153 files (209 MB) over the run; these two are the program in question:ce684a9201818f3f.compute.cdxil24ce7c29…a79f28ce684a9201818f3f.compute.dxila57955df…418292Both are DXBC containers (
44 58 42 43), and small enough that the whole program is in there. If the attachment does not come through, the same two files are below as base64 — both decode withcertutil -decodeon Windows orbase64 -d.ce684a9201818f3f.compute.cdxil — base64, 1,124 bytes
ce684a9201818f3f.compute.dxil — base64, 2,424 bytes
@PastiiJay on GitHub · 2026-11-26 17:26 UTC · original
Thank you, three runs dying on the same pair makes this deterministic, and with the full list plus both containers we have everything we need to look at
ce684a9201818f3f(it is an append-counter clear in the title). One cheap experiment meanwhile: the sameRELAY=1run with$env:VICTORY_SKIP_PIPELINES = 'ce684a9201818f3f'set. If the card then survives past the usual point, that confirms the program as the trigger rather than the copies around it.