RX 6950 XT (RDNA2): host GPU device removed during world load, every run, no TDR event #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?
Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-26T13:24:31Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-26T13:28:03Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T13:29:40Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T13:30:25Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-26T13:48:52Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T13:59:32Z.
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).Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-26T14:04:21Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T14:09:29Z.
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.
Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-26T15:42:38Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T15:47:11Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-26T16:14:26Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T16:16:48Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-26T17:25:44Z.
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
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T17:26:55Z.
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.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T04:36:52Z.
Ran the skip test. It came back the other way: the program is not the trigger.
Run: diagnostics build,
VICTORY_RELAY=1,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1, yourVICTORY_SKIP_PIPELINESwithce684a9201818f3fappended to the repo'sskip-amd.txt, my pool reductions,-LowMemory, Series S + FSR. Removed at ~270 s.The skip took effect. The failing list went from 8 commands to 7,
ce684a9201818f3fis not in it, and the log says so directly:It was still removed. This is the list that was in flight:
So
ce684a9201818f3fis ruled out as the trigger. What every failing list has had in common, with it and without it, is the three small placed copies at the head — 64×128 f28, 64×150 f29, 64×320 f41, all with row_pitch 256 — and the removal always lands inside the list right after them.One more run would separate those two: the same test with
8bb272e763f76148skipped as well. If it still comes down, the copies are all that is left in the list; if it does not, the remaining dispatches are back in play. Five minutes either way if you want it.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T05:09:09Z.
Cross-project summary: the same break, three trees, one RX 6950 XT.
Since this issue is where it got worked out, I want to put the whole picture in one place. All of the below is one PC: RX 6950 XT (16 GB, RDNA2), i5-12600KF, 32 GB RAM, Windows 11 26300.8935, Series S + FSR where the tree offers it.
The common shape.
RELAY=1or2→ host GPU device removed within 2–6 minutes, every time.RELAY=0→ no removal for as long as I let it run, but the copy-back goes back onto the submitting thread and the frame roughly doubles or worse.beta-2@8187780beta-2@8187780beta-2RELAY_OWN_QUEUE=0a-publier(the XTX build)a-publiera-publierPORT_*patchescool_foxshare packagecool_foxshare packageThree independent code trees, one trade.
RELAY=0is the only mode that holds this card, and it costs 2–4x. The skip test above rules out one specific program; this rules out "it is one fork's bug".What the frame says under
RELAY=0. The card is busy about half the frame and idle the other half — 300 ms frames with 150 ms on the GPU, 10,600 draws. WhenRELAY=1did hold briefly, the copy-back fell from 463 ms to 43.6 ms and the frame from 660 to 143 ms. So the cost ofRELAY=0is exactly the relay work, and the speedRELAY=1buys is real, not noise.The 6950 XT reports elsewhere, for anyone who wonders whether it is one machine:
Every public 6950 XT record I can find ends the same way: a few fps at best, then a device removal or a null-write crash. None of them reads like a tuning mistake on the user's side.
What I think would help most. Not making
RELAY=0faster — making the relay able to fail without taking the device with it. If a flight's landing can fault, be dropped and the device rebuilt, thenRELAY=1's 5x would be available on RDNA2 at the cost of a hiccup instead of a run. That is the same point as before, but the table above is what makes it worth the work: it is 2–4x on every RDNA2 card, in every tree that has the relay.I have logs,
crashes.logentries and frame breakdowns for any row above, and I can run any configuration on this card in about five minutes.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T06:29:57Z.
The cause is identified and a fix exists — and it is not a relay synchronisation bug.
kyokyotosh/VIctory-6700XT (an RDNA2, 32 GB fork of avatarmanz/VIctory-7900XTX) traced it with a GPU ETW capture. From their FINDINGS-6700XT.md:
D3DKMTQueryStatistics, 3 in ETW). It holds the driver's command buffers (1 MB + 64 KB per D3D12 command list, growing with what the list records), the upload scratch chunks and theD3D12_HEAP_TYPE_CUSTOMwrite-back buffers.ReserveResource→0xC0000001, 46 tries), and the kernel marks the device faulted (VidSchMarkDeviceAsError, reason 12). No GPU hang, no page fault, no timed-out packet — which is exactly whyTdrDelay/TdrDdiDelaynever changed anything for me.land()keeps the newest 64 flights' lists (up to 716 of them) and up to 240 title lists are in flight. With every submission waited for (VICTORY_RELAY=0) the count stays at 674 and the segment never fills — which is whyRELAY=0"works" and costs 2–4x.Their fixes (
f173347,018d372,e3c0703,63a773e): finished lists return to the pool at once; preludes are shared from a pool instead of one per host list for life (101 made instead of ~950); while the segment is above 80% every flight lands as it is sent and idle lists are trimmed; plus the 1 MiB / 1024 MiB card-buffer limits from PR #225.Confirmed on a different RDNA2 card. I built that fork and ran it on my RX 6950 XT (16 GB), i5-12600KF, 32 GB, Windows 11 26300.8935, driver 32.0.21045.29003, Series X 1.0.2.1 files:
RELAY=0), otherwise removed91 samples in the world, 10th percentile 11.7 fps, 2,500–6,500 draws a frame. The remaining failure is memory, not the card:
os error 1450(no system resources) in DirectStorage at about 34 GB of commit on a 32 GB machine.So
RELAY=0is not the answer and never was — the answer is to stop the live list count from climbing. Anyone hitting this on RDNA2 can read that findings document instead of re-deriving it, and the four commits above are the ones to port.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T09:52:21Z.
Thanks @a15106479638-hub, the ETW trace finally explains why
TdrDelaynever helped, and the three-tree table rules out a one-fork bug. We'll port kyokyotosh'sf173347,018d372,e3c0703and63a773eontobeta-amdwith credit and post the build here. When it's up, oneRELAY=2run on your 6950 XT would tell us if it holds.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T10:44:34Z.
Yes — post it and I will run it on this card the same day.
What I will do with the
beta-amdbuild, unless you want something else:RELAY=2with-Console series-sand textures capped at 1024, 8–10 minutes, twice, so a pass is not one lucky run.RELAY=2at Series X, since that is the profile that pushed my card hardest.Hardware for the record: RX 6950 XT 16 GB (Navi 21), i5-12600KF, 32 GB, Windows 11 26300.8935, driver 32.0.21045.29003, Series X files 1.0.2.1, nothing overclocked.
One thing worth knowing before you build it: on this 32 GB machine the four commits got the device through the load but the run then died of memory (
os error 1450from DirectStorage at ~34 GB of commit, andmemory allocation of … failedon the newest tree). The 6700XT fork that the commits come from also fits the layer into 32 GB; on its own the four commits fixed the removal but not the wall behind it. With 64 GB that would not matter, and on a 12 GB card their tuning may already be the part that matters most.VICTORY_BURY_LAG=0is worth knowing as a fallback: on my card it kept the segment under 80% for a whole run (0 back-offs against 6 with the default), which says the retained flights' lists are exactly the memory in question — it did not make it faster on a tree that already gives them back early.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T10:55:28Z.
Thanks @a15106479638-hub, your plan is the kind of test that tells us something: two runs instead of one, and the aperture-segment number. Please post the frame stats and the device-removal count from both runs, on
beta-amdv12 (commit84a4f67).Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T11:19:23Z.
Baseline on
beta-amdv12 (84a4f67), built from source here, two runs as asked. Short version: the device is removed in both, so v12 is the "before" the four commits need to beat.One blocker first, because anyone else building v12 from source will hit it. A source build has no
D3D12\folder besidevictory.exe, soD3D12SDKVersion = 620/D3D12SDKPath = ".\\D3D12\\"point at nothing and the host device fails before anything renders:Copying the OS's
System32\D3D12Core.dll(10.0.26100.8935) intoD3D12\does not fix it — the loader wants 1.620. Fetching Agility SDK 1.620.2 from NuGet (Microsoft.Direct3D.D3D12,build/native/bin/x64/D3D12Core.dll, file version 1.620.2.0) and putting it intarget\diag\D3D12\does;host D3D12 device readyfollows. If the release build already ships that folder, ignore this — but the source tree does not.The runs. Settings:
RELAY=2,--console series-s, textures capped at 1024, everything else asplay.ps1ships. No-Fsr. Same PC as before (RX 6950 XT 16 GB, i5-12600KF, 32 GB, Windows 11 26300.8935, driver 32.0.21045.29003), page file grown by demand.The removal is the same shape as before:
Two caveats on what this baseline can say. First, both runs died during pipeline compilation, not after the world settled — on this card v12 does not reach a steady state at all, so there is no frame rate to compare against the patched build; the comparison will be "removed at 2–3 min" against "still running at 10". Second, v12 has no aperture counter, so the segment number I promised needs the patched build — that is the number that will say whether the back-off carried it.
When
beta-amdhasf173347,018d372,e3c0703,63a773eI will run the same two runs and post the same table, plus how often the segment passed 80% and how far the back-off brought it down. If you want the first patched run at Series X instead of Series S, say so and I will do that one first.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T11:27:12Z.
Thanks @a15106479638-hub, the baseline is what we needed, and the Agility SDK 1.620.2 note will help anyone building from source. Could you attach the full console log from one of the two runs, so we can see where the device is removed?
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T11:30:21Z.
thanks, good catch: since
0f51200play.ps1fetches the Agility SDK 1.620.2 from Microsoft's NuGet package whenD3D12\is missing beside the exe. Could you pull and run once more?Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T12:14:39Z.
�f51200 works: I deleted
target\diag\D3D12and the launcher fetched it, host D3D12 device ready, no manual step. FetchedD3D12Core.dll1.620.2.0.20261106.5 (4.65 MB).The re-run, and a difference from the earlier baseline you should know about. With the root
play.ps1(Series X,RELAY=2,CARD_BUFFERS_MIN_KB=64,CARD_AWAKE=0,LATE_WAIT_LISTS=1024) instead ofscripts\play.ps1:scripts\play.ps1, series-splay.ps1, series Xmemory allocation of 1196222 bytes failedat ~6 min, 45.9 GB of commitSo the two launchers do not fail the same way on this card: the root one carries the device through the load and then runs out of 32 GB instead. Worth knowing before the patched build is compared against "v12" — say which launcher you want it run with, because they are not the same baseline.
The log you asked for, the last 52 lines before the removal on
scripts\play.ps1(series-s). Times are stripped; the lines are the log's own "N ms before" form, newest last:ext 10886.6 ms before, thread 22236: pipeline library: made [compute 5e197ce95da2d6ad] in 4691.2 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 10854.5 ms before, thread 21164: pipeline library: made [compute 7a071f906f98311b] in 4609.4 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 10600.1 ms before, thread 21376: pipeline library: made [compute 5b919f378a79b1a1] in 4641.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 10581.5 ms before, thread 2292: pipeline library: made [compute a1b20bc47e3c9597] in 1756.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 10170.5 ms before, thread 17088: pipeline library: made [compute b461734931c923ed] in 4510.3 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 10070.8 ms before, thread 19344: pipeline library: made [compute 17829ac71aab4e8d] in 826.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 9917.6 ms before, thread 21596: pipeline library: made [compute d1934235b4c1a802] in 4454.1 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 9309.3 ms before, thread 2292: pipeline library: made [compute afeea48bbb9913ad] in 1148.9 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 8660.5 ms before, thread 21164: pipeline library: made [compute e8c962358d862e3f] in 2127.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 8643.3 ms before, thread 21164: pipeline library: made [compute d2f4f8e0e2610d8c] in 13.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 8303.4 ms before, thread 21856: pipeline library: made [vertex dfafaf385b2f94e8, pixel 06295fb1d1aefb78] in 1.5 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 7849.4 ms before, thread 10748: sweep: 5 host copies of windows of title memory let go (28672 KiB), held by no list and no slot 6860.7 ms before, thread 21576: pipeline library: made [compute 6697dff15287e544] in 4026.1 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 6647.2 ms before, thread 10748: sweep: 9 host copies of windows of title memory let go (40960 KiB), held by no list and no slot 6299.7 ms before, thread 21376: pipeline library: made [compute a9983f75e1e974a1] in 4222.8 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 6284.8 ms before, thread 21376: pipeline library: made [compute b2efa9e53e9aa087] in 8.8 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 6028.3 ms before, thread 19344: pipeline library: made [compute 782e8e19cfa21ce1] in 3961.8 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 6013.9 ms before, thread 22236: pipeline library: made [compute 4c9cd93d98b9347f] in 4782.5 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 6012.0 ms before, thread 19344: pipeline library: made [compute a119712dc08b0171] in 11.4 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 5676.4 ms before, thread 17088: pipeline library: made [compute 06796b9a23b4a7b1] in 4390.3 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 5411.9 ms before, thread 21596: pipeline library: made [compute 2d1a812e23c2b70f] in 4399.8 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 5273.6 ms before, thread 10748: sweep: 9 host copies of windows of title memory let go (45056 KiB), held by no list and no slot 5150.1 ms before, thread 2292: pipeline library: made [compute 4a88a9732b2f30c4] in 3925.1 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 4689.7 ms before, thread 17088: pipeline library: made [compute 191ecaed66eea3b1] in 900.6 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 4515.2 ms before, thread 2292: pipeline library: made [compute 65de113e23fa4fdd] in 593.3 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 4334.5 ms before, thread 21164: pipeline library: made [compute 8d0899ce5fcf72a7] in 4238.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 4257.2 ms before, thread 10748: sweep: 8 host copies of windows of title memory let go (36864 KiB), held by no list and no slot 3178.9 ms before, thread 10748: sweep: 1 host copies of windows of title memory let go (4096 KiB), held by no list and no slot 3030.3 ms before, thread 21576: pipeline library: made [compute 2dc1a06791036e46] in 3765.5 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 2376.2 ms before, thread 21576: pipeline library: made [compute 804b342cb4b9d1e9] in 614.1 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 2021.5 ms before, thread 22236: pipeline library: made [compute 0d6e8ac93ccea91b] in 3902.5 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1784.9 ms before, thread 2292: pipeline library: made [compute be6ce5d849d51127] in 2505.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1784.3 ms before, thread 21376: pipeline library: made [compute 962a7cfc5520cf4f] in 4411.6 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1780.0 ms before, thread 19344: pipeline library: made [compute 4c97c2ac777ebc3c] in 4146.5 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1484.2 ms before, thread 21596: pipeline library: made [compute 7398df71d31fc190] in 3849.1 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1480.2 ms before, thread 21596: pipeline library: saved 44088 bytes, renamed over the library's file 1077.4 ms before, thread 19344: pipeline library: made [compute 31d703207b51549a] in 648.1 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1039.9 ms before, thread 22236: pipeline library: made [compute ab5455fc6abb804f] in 864.2 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 1033.4 ms before, thread 10748: sweep: 25 host copies of windows of title memory let go (126976 KiB), held by no list and no slot 1033.4 ms before, thread 10748: sweep: 1 staging buffers of textures let go (15 KiB), held by no list 696.4 ms before, thread 21596: pipeline library: made [compute 240cb516c1af0bc3] in 727.6 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 574.0 ms before, thread 21164: pipeline library: made [compute ab8bd5a9904baf76] in 3599.7 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 427.0 ms before, thread 17088: pipeline library: made [compute 20ab5ea44cad8dca] in 4183.0 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) 260.4 ms before, thread 19344: pipeline library: made [compute 1d44a723bdebbf27] in 754.2 ms (the library did not load it: 鍙傛暟閿欒銆?(0x80070057)) ERROR victory_gpu::host: device-removed data; breadcrumbs (done/count, list) [] ERROR victory_gpu::host: host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 43 lists; breadcrumbs (done/count, list) []; device removed: GPU 涓嶅搷搴旀洿澶氱殑鍛戒护锛屾渶涓哄彲鑳界殑鍘熷洜鏄叾浠栧簲鐢ㄧ▼搴忛€掍氦浜嗘棤鏁堢殑鍛戒护銆? 璋冪敤搴旂敤绋嬪簭搴旇閲嶆柊鍒涘缓璁惧骞剁户缁€?(0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command KLBF Lab: host GPU failure: host GPU device removed after 1 submissions sent ahead (VICTORY_RELAY=1) of 43 lists; breadcrumbs (done/count, list) []; device removed: GPU 涓嶅搷搴旀洿澶氱殑鍛戒护锛屾渶涓哄彲鑳界殑鍘熷洜鏄叾浠栧簲鐢ㄧ▼搴忛€掍氦浜嗘棤鏁堢殑鍛戒护銆? 璋冪敤搴旂敤绋嬪簭搴旇閲嶆柊鍒涘缓璁惧骞剁户缁€?(0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_21' -- falling back to NewBE title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_22' -- falling back to NewBE title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_23' -- falling back to NewBETwo things in it that I did not expect, and that may matter more than the relay settings:
the library did not load it: 0x80070057(parameter incorrect), even thoughpipeline library: saved … renamed over the library's filea moment earlier. That is the same0x80070057that #329 reports on an RX 6700 XT with 1.6–9.8 s per pipeline. So on this card the library is written but never read back, and every start pays the full compilation again.That is also why the second launcher changed the outcome: warming the cache first (it precompiled 25,000-odd shaders before the run) means far fewer pipelines are built in the first minutes, so the device never meets the storm — and the run gets far enough to hit the memory wall instead.
Full log is here if you want to grep it (11,749 lines, 2.5 MB) — say how you want it sent and it goes.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T12:27:15Z.
Thanks @a15106479638-hub for confirming the Agility SDK fetch works on
0f51200.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T12:28:12Z.
I ported the three commits onto
beta-amdv12 locally rather than wait, because the answer is short and you need it before doing the work: three of the four commits are enough to carry the device through. The prelude pool (63a773e) is the one I did not take — v12 already hasPreludeSlotand the idle-age trim, and porting a second pool over it would have been a rewrite, not a port. So this isf173347+018d372+e3c0703only.Same machine, same settings as the baseline above (
RELAY=2,--console series-s, textures 1024, everything else asplay.ps1ships):RELAY=2, series-sTwo things worth reading into that:
the library did not load itwas 0 times in this run, against dozens in the baseline. I think that is the warm cache from the baseline runs (the shaders were compiled then), not the patches — worth knowing so it is not over-credited.The frame rate is low here for a reason unrelated to the fix: this tree does not fit 32 GB (44.6 GB commit) and the settings are heavier than the other forks I ran. On the 6700XT fork, which fits the layer into 32 GB, the same commits gave me 18.1 fps average / 28.8 max. So the removal is the part these three commits solve; the memory is a separate piece, and
63a773eis part of it (952 preludes held for the life of their lists is not nothing).The patches are a diff against
84a4f67:host.rs(+~90),list.rs(+~60),host/segments.rs(new, 128 lines),Cargo.toml(one feature line).list.rsneeds one change the fork does not have —Idlecarries a third field here, sotrim_idlematchesIdle(_, bytes, _).Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T12:42:22Z.
This is great, thank you: 0 device removals against 2-3 before is exactly what the RDNA2 cards needed, and skipping 63a773e makes sense since v12 has PreludeSlot. Could you push your three ports to a public branch and link it here? We'll take them onto beta-amd with an A/B bench and credit you and @kyokyotosh by name.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:00:58Z.
Thanks @a15106479638-hub, you're credited in the Quick fixes table in the README.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:28:17Z.
@a15106479638-hub New stable v12 is up (
stablebranch,4c79ac5): bench fix for slower cards (the opening fade no longer counts as black frames), Linux fix for the 2 fps stall, quick-fix table in the README. If you tested before, please re-test, and before any bench or comparison: start the game once and let it translate the shaders (a few minutes, automatic), then play about 10 minutes so the effects are built. Otherwise they compile during the run and the figures aren't comparable. Results with the bench card on github.com/PastiiJay/klbf-lab 🙏Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:35:56Z.
A test branch for RDNA2 is up:
rdna2-test(eb6feb8) = stable v12 + kyokyotosh's three aperture fixes (thanks @a15106479638-hub for proving them on v12) + a few memory fixes. Could you run it with the defaultRELAY(no RELAY=0 workaround) and tell us if the device still gets removed? Let the shaders translate and play ~10 min before a bench. Credit to kyokyotosh and to you in the commits.Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T18:11:33Z.
rdna2-test(eb6feb8), built from source here: the device is not removed. DefaultRELAY=2,--console series-s, ten minutes, one aperture-segment back-off, zero removals.eb6feb8,RELAY=2, series-sAgainst the same settings on v12 before the commits: device removed twice and three times, at ~2 and ~3 minutes. So the branch answers the question you asked it to answer.
Two caveats on the numbers, so they are not over-read. This machine had another game running while I tested (a Java process holding ~9 GB), so system commit started at 27 GB; I capped textures at 256 to make room and it still reached 43.4 GB. The frame figures are therefore not comparable with a clean machine — treat this run as "the removal is gone", not as a bench. The second is that one back-off is a thin sample: the segment crossed 80% once in ten minutes, so the back-off was exercised once, not repeatedly. A run that spends longer in a heavy scene (Series X, or a busy street) would exercise it more.
The Agility SDK fetch in the root
play.ps1is in this branch and works: I deletedD3D12\and it came back without a manual step.Same card and OS throughout: RX 6950 XT 16 GB, i5-12600KF, 32 GB, Windows 11 26300.8935, driver 32.0.21045.29003.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T18:15:16Z.
Thanks @a15106479638-hub, zero removals in 10 minutes where v12 lost the device twice and three times is the answer we wanted, and your caveats keep it honest. Next step when you have a quiet machine: the heavier run you suggested (Series X or a busy street, 15 min or more) so the back-off gets exercised more than once.
Imported from PastiiJay/klbf-lab. Originally posted by a15106479638-hub on 2026-11-27T18:29:23Z.
No separate branch from me —
rdna2-testalready carries the three fixes, so a second public port would only be a rival copy of the same diff for you to reconcile. Take kyokyotosh's commits as the source of truth; they are the ones I applied.The two things I learned porting them onto v12 that are not in the commits, and that cost me time:
list.rsneeds one change of its own. v12'sIdlecarries a third field (the idle moment), sotrim_idle's byte sum matchesIdle(_, bytes, _), notIdle(_, bytes). Small, but the compiler stops there and the message reads like a typo.63a773eshould be skipped here, not ported. v12'sPreludeSlotplus the idle-age trim already cover what the pool was for, and stacking the fork's pool on top would have been a rewrite. Skipping it is why the three-commit version fits v12 at all.Everything else is verbatim:
Held,take_held,land→recycle_landed,keep_idle,host/segments.rs, theWdk_Graphics_Direct3Dfeature, and the tight check in the send path.eb6feb8is the same code in your tree, so if it benches as you want, there is nothing of mine left to take.On your other note: I will start once, let the shaders translate, play ten minutes to build the effects, then bench — and post the bench card rather than my ad-hoc frame counts. That will be on a machine with nothing else running, unlike the run above.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T18:44:19Z.
Thanks, those two porting notes (the third
Idlefield and skipping63a773eon v12) are exactly what saves time on our side. Noted with the kyokyotosh commits as the source.