Works on AMD RX 9070 XT (lit opening cutscene) with three AMD-specific pipeline skips #3
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/fxceless--victory-fork#3
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?
@luisaugustz on GitHub · 2026-11-24 19:18 UTC · original
fxceless/victory-gta6renders the lit opening cutscene on AMD (RX 9070 XT), with three AMD-specific skipsThanks to the fork's work, the intro now renders fully lit on an AMD card too: Lucia at the window, the yard and watchtower, sun shafts through the haze, hair rim light, subtitles. As far as I know, this is the first AMD report for it.
Machine: RX 9070 XT (RDNA 4, native 64-lane waves), Adrenalin 32.0.32029.2010, Ryzen 7 5800X, 32 GB, Windows 11 build 26300. Title 1.0.2.1, Series X profile, diag build.
Tree:
fxceless/victory-gta6at578d459(the README's last clean commit), unmodified.VICTORY_SHADER_LOOP_LIMIT=256.What AMD needs (
VICTORY_SKIP_PIPELINES). Without these, the run dies:CS_RaytracingResolvevariants crash AMD's shader compiler (amdxc64.dll+0x861b9f, read 0x8). Found offline one program at a time (details: #71). The other 867 compile fine. All 41 are ped materials (_b1139868/_f21e9178):eeed82b877b44b5f(CS_ComputeHitDetectionSkinnedResults): the known page fault (#981).fc5e66f8f873d3bb(meshlet_culling:CS_BatchCullMeshlets_Prev): on this card, its indirect dispatch page-faults at an address with no title memory copy near it (device removed, DRED points at that dispatch). This happened as the first cold-cache run finished its pipelines, right before the cutscene would have shown.Runs:
Shadowed areas behave as the README describes (no ray-traced bounce light yet). I haven't tried the newer commits or the
VICTORY_BVH_*switches on this card yet; I'll report when I do.AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data.
@ghost on GitHub · 2026-11-24 19:36 UTC · original
Same on an RX 9060 XT (RDNA4, Adrenalin 32.0.32029.2010, Windows 11),
578d459unmodified, default switches. No game data.fc5e66f8f873d3bbstopped the GPU in both unskipped runs, 2-3 min in during loading (DRED in one: list stopped at itsindirect kind 2dispatch). We saw a hang, not a page fault.integration/testers94e0ea5the same program translates and runs without a hang, so it looks tied to this fork's changes.CS_RaytracingResolvecrash address (amdxc64+0x861b9f) is the one the #483 guard form triggers on r4tedx's tree, whereVICTORY_HEAP_GUARD_FORM=uminavoids it.AI-assisted (Claude Code, Claude Opus 5.5); no game data.
@fxceless on GitHub · 2026-11-24 19:53 UTC · original
Thanks for the AMD report and the skip list; noted for the README. Newer commits than
578d459are usable again frome9765a7on (the device loss in between is fixed, see #5).@pablogonz12 on GitHub · 2026-11-24 20:13 UTC · original
A RADV data point on whether AMD on Linux needs these skips: in my run, no.
578d459as-is (noVICTORY_SKIP_PIPELINES, no loop limit), with Microsoft'sd3dcompiler_47next to the exe instead of Wine's (Wine's refuses the clamp, see #6), 952 s: world reached and lit, 2.02 fps average in the world, up to 6,994 draws/frame, 0 device removals, 0 crashes.So the skips from the Windows report look Windows-driver specific here: the 41
CS_RaytracingResolvevariants crashamdxc64.dll, which RADV does not use, and the two GPU-fault skips listed above also ran without a device removal. That says nothing about whether those programs produce correct output on RADV, only that no skip was needed to reach and stay in the world for 16 minutes.Setup: RX 9070 XT (RDNA4, RADV), Mesa 26.3.1, Ryzen 9 9900X, 30 GB, Arch Linux, GE-Proton11-14, vkd3d-proton master. Not tested: longer sessions, the
VICTORY_BVH_*switches, the newer commits after578d459. (AI-assisted; numbers from my own runs.)@hashdev512 on GitHub · 2026-11-24 20:25 UTC · original
Another RX 9070 XT data point (Adrenalin 32.0.32029.2010, Ryzen 7 5700X3D, Windows 11 26300),
578d459, diag build, Series X, v1.0.2.1. Nine runs of 7–10 minutes with noVICTORY_SKIP_PIPELINES: lit cutscene and prologue, pad input works, no device removal.One compute never finishes in the AMD driver:
39f0e9aeb156a61c.victory translate --validateon that one program: 2 s, valid. With--pipelines: not done after 420 s (stopped by hand), one core busy, process memory 2.1 → 5.9 GB in 40 s. It has 66,501 IR instructions and loads 2,509 descriptors. In the game a worker was still making it after 300 s, so "1 being made" stays for the whole run and the statistics show "500.5 ms waiting for pipelines" in every frame.Median ms/frame, 2–5 min after the first slow frame, warm cache, no input, one run each:
VICTORY_D3D12_DRED=1VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c,VICTORY_LATE_WAIT=1With that compute skipped: 0 being made, 0 ms waiting for pipelines.
Other switches, measured on a local build that sets the pipeline wait budget to zero instead of skipping (not for a PR):
VICTORY_LATE_WAIT=1349; addingWIDE_BACK=1,JOIN_COPIES=1andLATE_WAIT=2336, within noise;LATE_WAIT=1withVICTORY_INPLACE=1380. With the stock wait,VICTORY_LATE_WAIT=1alone changed nothing (732).Not tested: commits after
578d459, whether the picture differs with that compute skipped, sessions longer than 10 minutes. Half of the runs used that local build, which also logs the name of a pipeline still not made after a wait; nothing else differs from578d459.No game data: hashes, counts and timings from VIctory's own log.
AI-assisted (Claude Fable 5.2): runs launched and summarised by the model on my machine.
@clems206 on GitHub · 2026-11-24 21:05 UTC · original
RX 9070 (non-XT): lit opening cutscene and playable prologue on
7b0f736, with one more AMD skip:0452fc2d2e2fc4c3Machine: AMD Radeon RX 9070 (RDNA 4), driver 32.0.32029.2010, Intel i7-12700K, 32 GB RAM, Windows 11 build 26200. Title 1.0.2.1, Series X profile, diag build of
7b0f736(unmodified), own shader cache (cold on the first run).Switches:
VICTORY_SHADER_LOOP_LIMIT=256,VICTORY_D3D12_DRED=1, andVICTORY_SKIP_PIPELINES= the 43 hashes from the first post here, plus one.The extra skip. On the cold-cache run, about 1 min 45 s in (during loading), the device was removed at an indirect dispatch (
indirect kind 2 max 1) of compute0452fc2d2e2fc4c3=meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev, the pre-skinned twin offc5e66f8f873d3bb(CS_BatchCullMeshlets_Prev). DRED reported a page fault about 0x1d1ff000 bytes past the end of the view heap (slot about 16,777,088), so it looks like a wild descriptor index rather than bad title memory. This tree has no heap-index guard like upstream #483, which would clamp such an index. The otherimage_gather4_lculling variants (9f017d9011377efa,87bf9e3f2bf2f052,4fb416369fc50b6e,764ca63daec9c616) ran without trouble before the fault. With0452fc2d2e2fc4c3added (44 skips), no device removal in two runs (16 min and 10 min).What renders: the night intro, the white fade-in, the fully lit window cutscene, then the cell block with interaction prompts and keyboard movement. Shadowed areas are dark, as the README describes.
Artifacts (same as #8 on the RX 9060 XT):
Memory is the limit on a 32 GB machine. The process reached about 57 GB of commit after 6 minutes in the world (the README says about 24 GB). RAM sat at 99 % with the disk at 100 % from paging, at 550-2,800 ms per frame. The first run (no speed switches) ended after 16 min with
memory allocation of 1310720 bytes failedwhile Windows was growing an auto-managed page file (peak use 68 GB).VICTORY_RELAY=2: in the log, the time the submitting thread waits for the card fell from 256-350 ms to 24-39 ms per frame, and the card went from 1-3 % to 21-31 % busy. The frame time on screen did not improve, because paging dominates on this machine.Happy to run a build with logging around the culling dispatch or the memory growth.
AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data.
@AwkGrep256 on GitHub · 2026-11-24 21:09 UTC · original
Adding an RX 9070 XT reproduction on an older commit,
d279e69, which I picked to match the earlier Windows lit-yard reports. Native Windows 1126300.9974, AMD driver32.0.32029.2010, Series X, title package1.0.2.1, diagnostics build.VICTORY_SHADER_LOOP_LIMIT=32, with FSR and frame generation off and no pipeline skips.GetDeviceRemovedReasonwas0x887A0006. The run had no DRED breadcrumbs.VICTORY_D3D12_DRED=1plus present captures. It reached the opening credits and lost the device about 2m37s from launch, around 73s after the first 500-draw frame. DRED saw a GPU page fault at0x11e0f0000,0x1b200000bytes past the logged view heap. The list stopped at command237/475,indirect kind 2 max 1 [compute fc5e66f8f873d3bb]. Pipeline creation for39f0e9aeb156a61cwas also still running at about 140s, as others have observed.The last saved present had visible opening credits and faint scene detail. I didn't reach the lit yard or verify movement. Windows logged an unexpected shutdown around the second failure. I haven't tried the skip or reproduced this on current
main.@luisaugustz on GitHub · 2026-11-24 21:23 UTC · original
RX 9070 XT follow-up: stable lit gameplay on
578d459, plus four things other 32 GB / AMD users will hitSame machine as above: RX 9070 XT, Adrenalin 32.0.32029.2010, Ryzen 7 5800X, 32 GB RAM, Windows 11 build 26300, diag build, Series X profile.
1. Stable on
578d459.578d459+ the change in point 4, DRED off, skips = the 41CS_RaytracingResolvehashes above +eeed82b877b44b5f+fc5e66f8f873d3bb+0452fc2d2e2fc4c3+39f0e9aeb156a61c(@hashdev512's never-finishing compute).2. Memory on a 32 GB machine: use a fixed page file.
memory allocation of N bytes failed(a host allocation, not the GPU).3. The prewarm list ignores
VICTORY_SKIP_PIPELINES(d279e69and later).early-pipelines.txtin the pipeline cache is built at launch without consulting the skip list.VICTORY_SKIP_PIPELINES. Here that wasamdxc64.dll+0x861b9f, 4 s after launch.early-pipelines.txtaside fixed it. Checking the skip list before prewarming, or not recording skipped hashes, would avoid this.4. A page fault inside a freed staging buffer (Series S profile,
578d459).host GPU device removed ... page fault ... inside freed ["staging of ... 1024x1024x1 f99"]DropforStagingandHostTextureonly updates counters, so the buffer is freed while a copy or view of a running submission may still use it.Drops hand the resource to the fork's ownretirequeue (host::release_late, a wrapper). That's 3 files, +14 lines, cherry-picks cleanly onto4e17478. The crash did not return.5. Newer commits on RDNA 4.
4e17478, other pedCS_RaytracingResolvevariants crashamdxc64.dll+0x861b9fat the prison scene, even with the 41 skips, so that list matches578d459's translation only.4e17478the scene before the prison also rendered nothing here, and the intro flickers.VICTORY_LATE_WAITis not the cause: it flickers with it off too.Seen on
578d459too: Lucia has no face, the dormitory's ceiling is missing (like #62), purple mattresses, and a fine line pattern on her shirt. I'm testing now without the loop limit (we used 256) and without the0452fc2dskip, which is the pre-skinned meshlet cull, since characters seem the likely victims of skipping it.AI-assisted (Claude Code): measured on this machine with my own copy of the game. Hashes, counts and log lines only.
@PastiiJay on GitHub · 2026-11-24 21:29 UTC · original
RX 9070 XT (Adrenalin 32.0.32029.2010, Ryzen 7 9800X3D, 32 GB, Win 11): two fixes for the purple mattresses and the late/missing textures
Same symptoms as @luisaugustz above (purple mattresses spreading to walls, fine lines on Lucia's shirt, dark face). Two things that helped here, on top of
578d459+39f0e9aeb156a61cskipped + the 41/43 AMD skips:1. Purple blocks: 32-lane pixel shaders running in 64-lane waves. On AMD the driver may launch the console's wave32 pixel shaders as wave64; the upper half then reads the lower half's lane mask (
s_bcnt1,s_ff1,v_mbcnt, "no lane active" tests), lighting loops exit wrong and NaN ends up in the temporal buffers (screen-fixed purple squares that grow over time). Running those programs per half wave (ballots and wave reductions per half) plus a NaN/Inf filter on float colour exports took purple from up to ~55% of some frames to 0% in our captures. The ambient light then still comes out purple on walls (green channel invalid), so it's not the whole story yet.2. Late textures: the texture upload queue is fixed at 192 MB / 250 ms per frame. At 3–4 fps it can't keep up; we saw ~4,860 due slots. With the budget raised (we made it
VICTORY_TEXTURE_QUEUE_MB/VICTORY_TEXTURE_QUEUE_MS, tried 1024 / 1000) the queue drained to ~200 within a minute: pale/white hair and missing surfaces filled in. Expect a slow first minute while it catches up. A small PR with just the configurable queue (defaults unchanged) is coming to this repo.Speed on this card: ~4.4 fps (≈225 ms/frame) stable with
VICTORY_LATE_WAIT=1 VICTORY_WIDE_BACK=1; 6–9 fps withVICTORY_LATE_WAIT=3+ card buffers, but the device was removed after ~3 min. Thanks for the DRED tip, we always ran with it on and will try without.Builds and numbers are in the AMD test branch of KLBF Lab if anyone on RDNA wants to compare. Hashes, counts and log lines only.
@bunbeans2-arch on GitHub · 2026-11-24 21:32 UTC · original
RX 9070 XT: the two meshlet-cull indirect dispatches stop hanging with buffer-state tracking (upstream VIctory #334) ported in, no skip needed
Data point for the two indirect dispatches this thread skips (the meshlet cull and its pre-skinned twin), since skipping the second one may cost character geometry.
Machine: RX 9070 XT, driver 32.0.32015.7029, 32 GB, Windows 11 Pro build 22631, Series X profile, diag build. Every build below carries a local input-file patch only (no GPU or translator changes). No
VICTORY_SKIP_PIPELINESin any run.Without the change (three runs:
578d459default switches,7b0f736default switches,7b0f736with AnyXboxX's launcher switches incl.VICTORY_SHADER_LOOP_LIMIT=32): the device was lost every time, and each time the fork's own breadcrumb log (DRED off) put the stopped list at anindirect kind 2 max 1dispatch of one of those two programs. In the two runs that stopped on the first program, its argument address lay inside the title's large shared buffer copy (one run: a 182452224-byte copy, the argument at 0x3cd76d00 inside it). Times from launch: 1 min 51 s, 9 min 47 s and 9 min 56 s.With the change (on
578d459, default switches): I hand-ported Marvisak/VIctory#334 (buffer state tracking: per-list buffer states, a transition before each use, and the arguments moved to a read state before the indirect dispatch reads them). It does not merge cleanly onto this fork:draw.rs,host.rsandindirect.rsconflict. In the port, the fork's scratch-bufferExecuteIndirectpath and lazy prelude stay as they are, and only #334's state tracking is taken.memory allocation of 11829970 bytes failed, which looks like the 32 GB page-file limit @luisaugustz describes above.The one thing I can't rule out yet: the D3D12 process heap in the two port runs grew faster than in the runs without it. It reached 28359 MB and 52558 MB, against 9706 MB and 11309 MB at the end of the runs without the port. The fork's own Rust allocations stayed between 1100 and 1280 MB in all four. The port runs also lived longer, so this may just be time plus the page-file issue. I have a 1-second sampler running for the next run and will report.
If it helps, I can open the port as a PR against this fork, kept separate from the input patch.
AI-assisted (Claude Code): measured on this machine with my own copy of the game. Counts and log lines only; no game data.
@siniasoclicar-cell on GitHub · 2026-11-24 21:59 UTC · original
AMD RX 7900 GRE (RDNA 3, 16 GB) data point on
90228a7— lit prologue reached at 3 fps (335 ms) with speed switches, plus RDNA 3 DRED hangsHardware & environment:
32.0.32029.2010fxceless/victory-forkat90228a7,diagprofile (--features diagnostics), Series X profilecargo test --workspace— 496 passed, 0 failed, 7 ignored (all GPU shader and DXIL BVH tests pass on RX 7900 GRE)1. RDNA 3 DRED hangs observed (
0x887A0006, default Windows TDR)Starting from the
#3baseline skips (fc5e66f8f873d3bb,eeed82b877b44b5f) +VICTORY_D3D12_DRED=1:VICTORY_SHADER_LOOP_LIMIT=256hung inlist 9 of 10(8 commands) with these four compute dispatches in flight:b83629b90cd2b7bc4fb416369fc50b6e—indirect kind 2 max 1, withSrv s0+24: buffer None24317e785c8688e3(dispatch 1x1x1)c1488f485ad606fb(dispatch 1x1x1)4fb416369fc50b6egot past that hang into the world (~2 fps / 559 ms, 2,334 draws), then hit a second hang inlist 4 of 7(340 commands) across:42683eebec081520(dispatch 128x64x1, 2560×1440 SRV + 128×72 3D SRV → four 1024×512 UAVs)82849f7a614208eb(dispatch 8x4x1)9afd549c4f530901(dispatch 1x1x1,u5=0x1584880 [heap 705092: null])VICTORY_SHADER_LOOP_LIMIT=64and adding9afd549c4f530901(keeping42683eebec081520enabled) eliminated that hang completely and reached the lit opening cutscene and playable prologue room (detailed hair/rim light, sunlit yard & watchtower, locker/magazine textures,Move around/Move the cameraprompts) with only 6 dropped dispatches/frame (9afd549c4f530901×3,fc5e66f8f873d3bb×2,4fb416369fc50b6e×1).list 9 of 10hung once more with the same companion dispatches:fdd56d97a806bcca(dim 1 182452224x1)b83629b90cd2b7bc(dispatch 42x1x1,u7 [heap 2630: null], u8 [heap 262144: null])24317e785c8688e3(dispatch 1x1x1)c1488f485ad606fb(dispatch 9x1x1,u5 [heap 552: null], u6 [heap 16: null])Notice the recurring pattern on Windows Adrenalin
32.0.32029.2010: every hanging list had compute dispatches binding eitherSrv: buffer Noneor[heap ...: null]slots.2. Frame-time impact of the card-buffer speed switches on RX 7900 GRE
VICTORY_SHADER_LOOP_LIMIT=64, default shadow/copy):2 fps, 521–543 ms/frame, 4,164–4,625 draws/frame399.4 msidle/frame,323.5 msbehind submitting thread),349.3 MBscanned on CPU (322.6 MBin ≥1 MiB buffers),720hash passes/frame,119.1 mswaiting for card.VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1024,VICTORY_CARD_REHASH_RUNS=1,VICTORY_LATE_WAIT=3,VICTORY_WIDE_BACK=1,VICTORY_JOIN_COPIES=1, noVICTORY_RELAY):3 fps,335.2 ms/frameat5,851 draws/frame(~38% lower frame time even with +1,226 more draws/frame).(Report compiled with assistance from Antigravity / Gemini 4 Neon; all timings, tests, and DRED logs were collected locally on the RX 7900 GRE above.)
@IxMxAMAR on GitHub · 2026-11-24 22:19 UTC · original
I'd like to test your #334 port on an RX 9070 XT (Intel Core Ultra 5 225, 32 GB, driver 32.0.32029.2010), on the commit AnyXboxX now pins:
fd021bf(7b0f736plus this fork's PRs #63, #71, #32, #82, #83, #81, #77). Upstream #334 doesn't apply to7b0f736(11 conflict hunks indraw.rs,host.rs,indirect.rs), so a branch with your port would avoid a second, divergent port.Without skips, both meshlet dispatches (
0452fc2d2e2fc4c3,fc5e66f8f873d3bb) faulted here at 8 to 9 min (d279e69). With the 45 skips (7b0f736+ #63), the run lasted 15 min, then died withmemory allocation of 655360 bytes failed(system-managed page file). On your port I can also log system commit against the commit limit every second, which should help with the heap-growth question.@luisaugustz on GitHub · 2026-11-24 23:16 UTC · original
RX 9070 XT: PastiiJay's texture queue, measured here. The queue size needs the texture budget raised with it, or textures black out
@PastiiJay thanks for the queue numbers. I made the two constants configurable locally (
draw.rs, 192 MB / 250 ms per frame, as env switches) and ran the same prologue three times on578d459+ staging fix, Series X, loop limit 256,VICTORY_CUT_WRITES=1, DRED off, the 41 AMD resolve skips +eeed82b877b44b5f+39f0e9aeb156a61c, warm cache, 8 minutes each.VICTORY_TEXTURE_BUDGET_MBThe log line
textures picked by index, the queueexplains the third row: slots due fell from 1,210 (default) to about 200, but the uploads since the start fell from about 42,000 to about 20,800, with 10 to 13 slots always "waiting for their memory". Texture copies are only made past 2 GB while the card's memory in use is under nine tenths of the budget the system gives (resource.rs,room()), and staging 1 GB a frame seems to cross that early. SettingVICTORY_TEXTURE_BUDGET_MB=6144(an explicit limit on the copies' bytes) brought the uploads back and the textures with them. So a configurable queue PR probably wants a note that a large queue should come with the budget switch.What it did not change: the first room's own walls, floor and ceiling are still not drawn, and the window frame and wall photos stay dark with about 120 slots still due at the end of 8 minutes.
A negative result on the refused views, since @Yorivel's count (121 views,
R32G32B32_FLOAT) matches our log (buffer view not on an element of its host copy offset=... element=12on every run): I hand-ported the idea of upstream86a5ed6(a copy of its own bytes for a typed view whose buffer does not start on an element) onto this base. The refusal line went away, but the whole picture came out blown out to white and orange for the full run (frames 2,000 and 2,500 alike), and the walls did not appear. So on this card those views are not the missing shell; they look more like the colour or exposure blocks. Reverted.Settings, counts and log lines only; no game data.
AI-assisted (Claude Code): measured on this machine with a diag build.
@PastiiJay on GitHub · 2026-11-24 23:35 UTC · original
@luisaugustz thank you, that's a very useful measurement and it explains something we saw too (some textures turning dark/flat with the 1024 / 1000 queue). We hadn't set
VICTORY_TEXTURE_BUDGET_MBat all, so we'll run our next builds with 6144 next to the larger queue, compare with and without on our RX 9070 XT, and add the note to our run settings if it holds here too. Thanks also for the negative result on the refused views, that saves everyone a detour.@luisaugustz on GitHub · 2026-11-24 23:56 UTC · original
@PastiiJay thanks, and good that it lines up with what you saw. So we don't both write the same change: the queue switches are a small diff here (
draw.rs, +17 -3:VICTORY_TEXTURE_QUEUE_MBandVICTORY_TEXTURE_QUEUE_MS, read once, defaults unchanged at 192 and 250). I have it committed locally on its own branch and have not pushed or opened anything. Since you said your PR is coming, I will leave it to you and keep mine local; if you want the diff to compare or reuse, say so and I'll paste it here.One more number for your comparison: with the queue at 512 / 500 and no budget switch, purple was still on the frame and on the mattresses at the same point where 1024 / 1000 had none.
AI-assisted (Claude Code).
@PastiiJay on GitHub · 2026-11-24 23:56 UTC · original
@luisaugustz thanks for checking first, kind of you. The queue switches are already up as #106 (
VICTORY_TEXTURE_QUEUE_MB/VICTORY_TEXTURE_QUEUE_MS), so no need to open a second one. We're running a with/withoutVICTORY_TEXTURE_BUDGET_MBcomparison on our card tonight; if it holds here as it did for you, we'll add a note to #106 that a large queue should come with the budget switch, and credit your numbers. Thanks also for the 512 / 500 data point.@PastiiJay on GitHub · 2026-11-25 00:19 UTC · original
@luisaugustz the comparison came out differently on our card, so a heads-up before anyone adds it as a recommendation. Same first-cell shot (Lucia at the window), our current test build (fork base + #334 + the 1024 / 1000 queue), RX 9070 XT, three 10–14 min runs:
VICTORY_TEXTURE_BUDGET_MBSo here the budget switch fixed the shirt but seems to drop the walls; our base differs from yours (#334, DirectStorage page-list change), which may be why. Only three runs, so not conclusive. We'll keep it off in our recommended settings for now and won't add the note to #106 until it's clearer.
@siniasoclicar-cell on GitHub · 2026-11-25 00:49 UTC · original
Follow-up on
31714de(fix/amd-view-heap-clamp): RX 7900 GRE (RDNA 3) now runs with zero pipeline skips and zero device removalsSame machine (RX 7900 GRE 16 GB, Adrenalin
32.0.32029.2010, Ryzen 5 5600, 32 GB RAM, Windows 11 Build 26200),diagbuild at31714de:cargo test --workspace— 504 passed, 0 failed, 8 ignored.VICTORY_SKIP_PIPELINESunset (completely empty),VICTORY_SHADER_LOOP_LIMIT=64,VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1024,VICTORY_CARD_REHASH_RUNS=1,VICTORY_WIDE_BACK=1,VICTORY_JOIN_COPIES=1,VICTORY_D3D12_DRED=1(noVICTORY_LATE_WAIT, noVICTORY_RELAY).fc5e66f8f873d3bb,4fb416369fc50b6e,9afd549c4f530901,b83629b90cd2b7bc,c1488f485ad606fb,24317e785c8688e3) now runs cleanly with 0 skipped dispatches and 00x887A0006device removals.9afd549c4f530901was no longer skipped).391.3 ms/frameat5,890 draws/frame(11,735–21,972 indirect mesh groups/frame); card busy rose from ~24% to 44–46%; CPU shadow scan dropped from349.3 MBto28.5 MB/frame(0.0 MB≥1 MiB); idle time behind submitting thread183.7 ms, waiting on card179.3 ms.Huge improvement for RDNA 3 on Windows — thanks!
(Follow-up compiled with assistance from Antigravity / Gemini 4 Neon; all measurements collected locally on the RX 7900 GRE above.)
@IxMxAMAR on GitHub · 2026-11-25 01:12 UTC · original · edited 2026-11-25 01:13 UTC
On the memory growth on 32 GB AMD machines (@clems206, @luisaugustz, and the heap question from @bunbeans2-arch): on my RX 9070 XT it is the AMD shader compiler working forever on
39f0e9aeb156a61c, which the early-pipeline prewarm starts even when that hash is skipped. #375 stops that (as did #172, now closed, whose change I tested onfd021bf). Without it, the compiler's own heap grew to 13.8, 24.3 and 31.9 GB at 4, 6.5 and 9.5 min and runs ended out of memory. With it, or withearly-pipelines.txtdeleted from the pipeline cache, private bytes stay at 23 to 25 GB here instead of climbing past 50 GB.To spot this kind of thing sooner: #458 names a pipeline whose compile has run for a minute in the log, and #459 shows heaps other than the process heap (like the compiler's) in the memory map.
@bunbeans2-arch on GitHub · 2026-11-25 01:41 UTC · original
Follow-up on the GPU hang at the indirect dispatch of the pre-skinned meshlet cull program (the one testers here skip). RX 9070 XT.
Before fork main's view-heap clamp (
31714de):VICTORY_SHADER_OPT=0, its DXIL is byte-identical on an older build and on the hanging one (checked with a small dump tool that callsemit::translateon the saved program). So the hang comes from the program's inputs or state, not its code.After merging fork main (
a803c87+31714de), with no skip of that program:VICTORY_RELAY=0only).VICTORY_SHADER_OPT=0+VICTORY_SHADER_LOOP_LIMIT=256+VICTORY_TEXTURE_BUDGET_MB=6144; a warm repeat of that; and one without the loop limit.This fits 31714de's explanation. About 25 pipelines translate before the title makes its view heap, so on the old code those shaders had no clamp, and a wild view index read past the heap. A sample of 4 against a 2-in-6 hang rate is suggestive, not proof (about a 20 % chance of 4 clean runs by luck). But on this card I'd try dropping the skip with
31714dein before adding it.AI-assisted (Claude Code); numbers are from my own runs' logs.
@IxMxAMAR on GitHub · 2026-11-25 02:09 UTC · original
A data point for your clamp note, @bunbeans2-arch. RX 9070 XT,
19feca8(AnyXboxX's current pin) with 31714de's view-heap clamp (itsdescriptor/host.rs,shader_cache.rsand emit changes; I left out itsv_cvt_f32_f64andv_permlane16parts, which need helpers this base lacks) but without #334, and the two meshlet-cull programs no longer skipped, cold cache: the device was removed 8 min in. DRED: page fault at0x400003e13000,view heap 0x100170000+0x4000000: ... past its end, with1c4b3c0547e3e6fa,fdd56d97a806bcca,b83629b90cd2b7bc,4fb416369fc50b6e(indirect kind 2),24317e785c8688e3andc1488f485ad606fb(u6 [heap 16: null]) in flight, the group @siniasoclicar-cell saw on RDNA 3. With the two programs skipped again, the same build ran 13+ min clean. So here the clamp alone was not enough; your clean runs had #334 as well.@GamingRipperDoc on GitHub · 2026-11-25 02:15 UTC · original
The
_Prevmeshlet-culling page faults (fc5e66f8f873d3bb,0452fc2d2e2fc4c3) are not in the translation:CS_BatchCullMeshlets_Prevtranslates to the same DXIL asCS_BatchCullMeshlets, which never faults. So the bad address comes from what the_Prevpass binds, not from its code.Setup: RX 9070 XT, Adrenalin 32.0.32015.7029, Windows 10 22H2, Ryzen 9 9900X.
c96b4f2+ #420 + @Arvi23's pass-4 handle patch from #120 + #58 + #51 + #203, diag build, fresh cache and data folders, no skips.0x5dce000, list stopped atindirect kind 2of0452fc2d2e2fc4c3(CS_BatchCullPreSkinnedMeshlets_Prev)0x8000035c4000, same dispatch, same program0452fc2d2e2fc4c3_Prevprogram: page fault at0x60000288e000,indirect kind 2offc5e66f8f873d3bb(CS_BatchCullMeshlets_Prev)No
amdxc64.dllcrash in any of the three, so on this driver the pass-4 patch covers #422's crash.What I checked offline (
victory translate,VICTORY_VIEW_LIMIT=2097151as the game sets it,dxc -dumpbin):fc5e66f8f873d3bb(_Prev) and3b471c122be79b3e(no_Prev) are the same 7,318-line module.0452fc2d2e2fc4c3and its twin9f017d9011377efadiffer only in instruction order and a few extra loads.createHandleFromHeapindex in both_Prevprograms goes through theUMinto the null slot, and title memory by address goes through the clamped page directory. So an index past the heap or an address outside a copy can't explain it.ExecuteIndirect(indirect::bound), so the group count isn't the title's raw value either.So my guess is a heap slot the
_Prevpass reads (last frame's buffers) still holds a buffer view of a host copy that has since been let go. Both runs that faulted had the card's texture room full a few minutes before ("textures picked by index: the card has no room for more"), so copies were being released. I haven't confirmed this yet. The next step on my side is a run that logs, for each_Prevdispatch, the heap slots it reads and whether their host copies are alive.No game data in this comment. AI-assisted (Claude Code); the runs are on my machine.
@bunbeans2-arch on GitHub · 2026-11-25 02:23 UTC · original
Correction to my comment above: the view-heap clamp did not end the cull hang.
On a newer merge (fork main through
c96b4f2, the depth-bounds commit), 2 of 4 runs lost the device after 8 to 9.5 minutes:VICTORY_RELAY=0; the other had the new copy-back default.Next I'm testing a skip of all three cull programs together. I'll post the result.
AI-assisted (Claude Code); numbers are from my own runs' logs.
@IxMxAMAR on GitHub · 2026-11-25 02:39 UTC · original
@PastiiJay, your NaN guard (
klbf-amd0e5f4b2, colour exports and typed stores) is what finished off the purple here, and it isn't a PR on this repo yet. RX 9070 XT, three runs:fd021bf: purple still on the bedding, posters and a floor strip.19feca8: small spots left.c96b4f2, with #195): none in 14 minutes.Details are in #318. Would you open it as a PR here? It applies to
c96b4f2with one small conflict: main's translation-cache key lists its switches by name (VICTORY_WAVE_WIDEtoVICTORY_F16_NEAREST), soVICTORY_NAN_GUARDgoes into that list. I'm happy to rerun the PR's own commit on this card and post the numbers.@GamingRipperDoc on GitHub · 2026-11-25 03:38 UTC · original
Follow-up on the
_Prevmeshlet-culling page faults (fc5e66f8f873d3bb,0452fc2d2e2fc4c3): they only happen with the relay on. WithVICTORY_RELAY=0two runs were clean for 10 minutes, and every relay-on run (13 so far) lost the device. The fault is not a freed buffer: DRED reports no live or recently freed allocation at the faulting address.Same setup as my last comment (RX 9070 XT, Adrenalin 32.0.32015.7029, Windows 10 22H2,
c96b4f2+ #420 + @Arvi23's pass-4 patch from #120 + #58 + #51 + #203, diag build, fresh cache and data folders).VICTORY_RELAY=0_Prevprograms bound and usedu6) was never writtenfc5e66f8f873d3bbreads as aByteAddressBuffer, holds a null cube view)VICTORY_CARD_BUFFERS=0(no copies in the card's own memory)Every fault is at
indirect kind 2of one of the two_Prevprograms. The faulting address is always small (0x252b000,0x2570000,0x2804000,0x28ba000,0x2b0c000,0x2c0d000), or one of those with garbage high bits (0x60000288e000,0x8000035c4000). Nothing of ours is allocated there: no title memory copy, no heap, and DRED lists no existing or freed allocation. So the card is forming an address from a base near zero, not reading a buffer we let go of.What this rules out:
Still open: how the indirect arguments reach the dispatch when it was sent ahead, and whether the relay's first stage (
VICTORY_RELAY=1) faults as well as the default second stage. I'll run those next.Separately, one real bug turned up: in GPU-based validation, four compute programs (
CS_BatchCullMeshlets_Prevamong them) read typed buffer views of R32_UINT through the translator's float typed loads. I have a small fix that maps 32-bit integer typed buffer views to the float format of the same width so the bits move unchanged. It didn't stop these faults, so it will be its own PR once a validation run confirms the warnings are gone.Workaround on AMD for now:
VICTORY_RELAY=0.No game data in this comment. AI-assisted (Claude Code); the runs are on my machine.
@Yorivel on GitHub · 2026-11-25 03:42 UTC · original
@luisaugustz thanks for testing the typed-view port. That matches what I saw on the 4090 (refusals gone, room still missing), so those 121 views aren't the shell on either vendor.
For the missing walls, floor and ceiling: on my side that was DirectStorage
PAGE_DESTINATIONreads writing into title memory through their own section view without telling the GPU side. The host copies stayed stale for the whole run, so the room came and went at random (about 1 run in 4 good). The fix is a few lines indstorage.rs/xmem.rs(VICTORY_DSTORAGE_NOTIFY=1, branchfix/dstorage-notify-on-a803c87on Yorivel/victory-fork; details in #62). With it the room was complete in 6 of 6 runs. Upstream has the same fix asc75fdba. It might be worth trying on the 9070 XT.And thanks for the
VICTORY_TEXTURE_BUDGET_MB=6144data point. The window's wire mesh goes missing at random here too, so I'll test that next.@GamingRipperDoc on GitHub · 2026-11-25 04:04 UTC · original
Narrowed down: the
_Prevmeshlet-culling page faults need work sent ahead (VICTORY_LATE_WAIT), not the relay thread, and they come only from those two programs. With both skipped, the default relay ran a clean 10 minutes.Same setup as my last two comments (RX 9070 XT, Windows 10 22H2, same stack, diag build, fresh cache and data folders).
VICTORY_RELAY=1)indirect kind 2offc5e66f8f873d3bb, page fault at0x3010000VICTORY_RELAY=0 VICTORY_LATE_WAIT=3)0x253b000VICTORY_SKIP_PIPELINES=fc5e66f8f873d3bb,0452fc2d2e2fc4c3With my earlier runs:
VICTORY_RELAY=0(which also turns sending ahead off) was clean twice. Every run that sent work ahead and ran the_Prevprograms lost the device: 15 runs, stages 1 and 2, with and without the relay thread.What I checked on the indirect path, since the fault is always at the indirect dispatch:
b0and the stride table att255 space1as root views; everything else they read goes through bounded heap descriptors, and the stride table is read at most 8 MB in. So an unset root view can't make these addresses (37–47 MB with a base near zero).So I still don't know which read in those two programs goes bad, only that it needs the card to run them while the CPU goes on with the next submissions.
Narrower workaround than
VICTORY_RELAY=0on AMD, diag builds only:VICTORY_SKIP_PIPELINES=fc5e66f8f873d3bb,0452fc2d2e2fc4c3. It keeps the relay, but it drops the_Prevculling passes, and I haven't checked what that costs visually.No game data in this comment. AI-assisted (Claude Code); the runs are on my machine.
@schmiticle on GitHub · 2026-11-25 04:08 UTC · original
RX 9070 XT (RDNA 4):
f25e735renders the first room with faces and whole characters;warmcrashes the driver while making compute pipelines,--no-pipelinesworksMachine: AMD Radeon RX 9070 XT, Adrenalin 32.0.32029.2010, Ryzen 7 7800X3D, 32 GB RAM, Windows 11 Pro build 26300. Series X profile, diag build of
f25e735, unmodified.VICTORY_D3D12_DRED=1, own cache folder.What renders: the intro video plays steadily (no frames jumping back and forth, which other forks showed on this card), then the opening cutscene and the first room: walls, floor, posters, window light, textured clothing, and faces. Characters stay whole up close. About 2.4–3.4 fps in the room, 4,000–6,400 draws/frame, 0 pipelines waiting on a warm cache. Process commit steady at about 25 GB. Two runs of about 5 minutes each, no device removal. Shaded areas are dark, as the README describes.
1.
victory warmstops while making compute pipelines. With the game folder given, it translated about 21,400 shaders, then the process ended after 95 s with no summary line and no error in the log. That fits a crash in the driver duringCreateComputePipelineState. I did not capture which program.victory warm <game dir> --no-pipelinesfinished:25652 translated, 106 refused; 122 s. The game then made the pipelines itself during the run without a crash.2. One skip still needed on this card,
42683eebec081520. Onfxceless/victory-fork2119b0ethis program removed the device twice in the opening cutscene. The DRED page fault was near address 0, with a table slot showing a null view. I kept it skipped here and did not testf25e735without the skip.3.
0452fc2d2e2fc4c3(CS_BatchCullPreSkinnedMeshlets_Prev) runs fine here. On2119b0eit page-faulted at anindirect kind 2dispatch about 17 minutes in, as in the RX 9070 report on victory-fork #3. Skipping it left characters without faces, heads or torsos up close. Onf25e735it runs. Faces and close-up bodies are drawn, with no device removal so far (about 5 minutes). It looks like the view guard or the texture fixes cured what fed it bad addresses.4. One mesh pipeline refused:
host mesh pipeline refused error=The parameter is incorrectfor[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35].Happy to run a build with logging around the warm crash, or test without the
42683eebec081520skip.AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data.
@PastiiJay on GitHub · 2026-11-25 09:54 UTC · original
@IxMxAMAR thank you, that's great to hear, and thanks for measuring it across three bases. Yes, we'll open the NaN guard as a PR here against current main, with
VICTORY_NAN_GUARDadded to the translation-cache key list as you describe, and link it in this thread. Your rerun on the PR's own commit would be very welcome.@PastiiJay on GitHub · 2026-11-25 09:57 UTC · original
@IxMxAMAR thanks for testing it and for the nudge. Opened as #837, on current main and on its own.
VICTORY_NAN_GUARDis on by default (=0turns it off). The conflict you hit doesn't come up any more, because main's cache key now picks up everyVICTORY_*switch automatically. Shader tests pass. Feedback welcome, especially from other cards.@IxMxAMAR on GitHub · 2026-11-25 16:49 UTC · original
RX 9070 XT (RDNA 4, Windows 11, 32 GB) on today's main
3973179, plus #195, #318, #837, #458 and #459. Both_Prevmeshlet culls are unskipped; the only skip is42683eebec081520. This confirms @GamingRipperDoc's finding on RDNA 4.indirect kind 2 max 1offc5e66f8f873d3bb, page fault at0x283a000, no title memory copy or heap anywhere near it.0452fc2d2e2fc4c3ran without a fault, as @schmiticle saw.VICTORY_RELAY=0_Prevprograms bound and ran for 20 minutes with no device removal. Faces lit on both sides, characters whole, the first prison room and the yard complete once textures streamed in.What
VICTORY_RELAY=0costs here, once loading settled:Separately, a false positive in main's driver watch (
drvwatch): at startup it logged "the graphics driver reported an error to the system's event log: from now on the paths under suspicion are off for this run (draw windows clamp each record again)". At that second, the only System-log entry wasDisplayevent 4127, Windows suggesting "Turn on Auto HDR"; there was no TDR (amdkmdag/dxgkrnl4101) or other driver error. It happened in both runs. Draw windows are off unlessVICTORY_INDIRECT_WINDOW=1, so it cost these two runs nothing. But on a machine where Windows shows that hint, anyone who turns windows on loses them at startup without knowing why. Matching only driver providers and IDs (amdkmdag,nvlddmkm,dxgkrnl,Display4101) would avoid it.Next, I'll try the relay on with only
fc5e66f8f873d3bbskipped (keeping0452fc2d2e2fc4c3), to see what skipping the plain cull alone costs on screen.No game data in this comment. AI-assisted (Claude Code); the runs are on my machine.
@IxMxAMAR on GitHub · 2026-11-25 17:54 UTC · original
A possible root cause of the
_Prevmeshlet-cull page faults: the culls read an image descriptor as a buffer descriptor.This comes from the fault addresses plus the fork's code. Nothing is changed or tested yet, so please check it against your own reports.
The addresses. On AMD, the two descriptor types keep their base address differently:
dword0 = base[31:0]anddword1[15:0] = base[47:32].dword0 = base >> 8(images are 256-byte aligned) anddword1[7:0] = base[47:40], followed by other fields. That's the layout in Mesa's descriptor code for gfx10 to gfx12.A buffer load that reads a T# as if it were a V# therefore goes to
(image_base >> 8) | (dword1[15:0] << 32). That's a small address: bits 32–39 are zero for any image below 1 TiB, and bits 40–47 come from the descriptor's next field. Here's every_Prevfault I have (@GamingRipperDoc's from this thread, and mine on an RX 9070 XT), decoded that way:0x252b0000x253b0000x25700000x28040000x283a000fc5e66f8f873d3bb)0x60000288e0000x28ba0000x600002aa20000452fc2d2e2fc4c3)0x2b0c0000x2c0d0000x30100000x8000035c40000x400003e13000fc5e66f8f873d3bb)All 13 land in one 9.3–15.5 GiB band, inside the range where the same reports show the host's heaps and copies (about 4 to 25 GiB). In every one, bits 32–39 are zero while bits 40–47 vary (
0x00,0x40,0x60,0x80), as the T# layout predicts. A wild pointer would not cluster like that. Three of my faults from builds of 24 November don't fit (0x117e36000,0xe80038120000,0x5e80d4120000).Why only
_Prev, only with work sent ahead, only on AMD._Prevpasses take those indices from the previous frame's records, so they can point at slots that have been described again since.stride[slot], from theSLOT_STRIDEStable (emit/shader.rs). That's an 8 MB upload buffer, and the CPU writes a slot's entry the moment the slot is described (descriptor/host.rs,write_volatile, commented "shaders read it while we write (a dword, either value is one the slot had)").buffer_slots, at the next submission's preparation).stride != 0next to a slot that still holds a texture. With every submission waited for, that window never opens.Tests that would settle it.
On my card both culls fault whenever work is sent ahead: in run 22,
0452fc2d2e2fc4c3faulted too, with onlyfc5e66f8f873d3bbskipped. Both run clean for 20 minutes withVICTORY_RELAY=0, as reported above.No game data in this comment. AI-assisted (Claude Code); the runs are on my machine.
@PastiiJay on GitHub · 2026-11-25 18:00 UTC · original
Thanks @IxMxAMAR for including #837 in this run and for the detailed table. Very useful for RDNA 4 owners.
@GamingRipperDoc on GitHub · 2026-11-25 23:49 UTC · original
@IxMxAMAR's decoding holds, but the race doesn't seem to be the cause: closing the stride/descriptor window didn't stop the
_Prevfaults. What did stop them: reading a slot as a constant buffer only when it really holds one. Two runs went 463 s and 600 s with no device loss, with the relay on and both_Prevprograms running.Same setup as my last comments (RX 9070 XT, Windows 10 22H2, same stack, diag build, the default relay, nothing skipped).
settle_before_heap_writes) before the stride and the view are written (136,164 waits)indirect kind 2of0452fc2d2e2fc4c3, page fault at0x3000026e1000+0x5149aec(the full instance pool of #378, same stack)Before these, every run that sent work ahead and ran both
_Prevprograms lost the device, within 88–291 s (15 runs).Run 21's address decodes like the 13 in @IxMxAMAR's table: bits 32–39 zero,
0x30in bits 40–47, and an implied image base of about 9.7 GiB.Why the race isn't needed. In the translated programs, a buffer picked from the heap by index (
ResourceHeap) is read raw whenstride[slot] != 0. Otherwise it's read as a constant buffer (emit/lower.rs, the scalar load that callsslot_stride). A constant-buffer read on AMD takes the slot's descriptor as a buffer descriptor too. So a slot that holds a texture at that moment, with its stride correctly 0, gives exactly the T#-as-V# address, with no torn write and no stride/descriptor window. Run 21 closed that window and still faulted. Runs 22–23 keep the fallback away from texture slots and didn't.What the experiment does (
VICTORY_CONSTANT_MARKS=1, off by default):note_bufferwritesu32::MAXinto the stride table for a slot that holds a constant-buffer view (View::Constant); buffer views keep their stride, everything else 0;slot_strideturns the mark back into stride 0 for the raw path; the constant-buffer load runs only where the mark is; a slot that is neither reads zeros.Still open:
_Prevpasses take their indices from the previous frame's records, and with work sent ahead a slot named there has been described again as a texture by the time they run. I haven't checked it;I can open the experiment as a PR if it's useful, or keep it local until the slot is found.
No game data in this comment. AI-assisted (Claude Code); the runs are on my machine.
@GamingRipperDoc on GitHub · 2026-11-26 01:27 UTC · original
The fix is now a PR: #1216 (#1216). A slot picked by index is read as a constant buffer only if it holds one. On current main with an RX 9070 XT, it ran 10 min without device loss. The same build without it lost the device at 279 s.
No game data in this comment.
AI-assisted (Claude Code)
@IxMxAMAR on GitHub · 2026-11-26 01:49 UTC · original
Where things stand on the RX 9070 XT (driver 32.0.32029.2010; Core Ultra 5 225, 32 GB) on main
32b31f7, before a few quiet days on our side:_Prevdevice removals: #1195. With the relay on and both culls running, three runs went 17, 14 and 20 minutes without one. #1216 fixes the same read the other way round; either is fine with us (the differences are on #1195).amdxc64.dll+0x861b9f: #1213. A buffer'sgetDimensionsthrough the same uniform heap handle as its loads crashes AMD's compiler. A handle of its own builds all five programs that crash here (f16876929fa64f9f,878933b499cfa14d,a567b9ef845fb680,c1eee35dbc50a9ef,27ce027e7188bed3), and a whole-archivetranslate --pipelinesmade all 25,636 pipelines. #984 alone rescues three of the five.42683eebec081520, not retried yet.VICTORY_THIN), ported here: no gain on this 10-thread CPU (median 343 against 262 ms; its translation took about 24 us a call against about 5 on the title's threads), so not proposed.@IxMxAMAR on GitHub · 2026-11-26 01:59 UTC · original
Thanks, that settles it: the decode holds, and the race I proposed doesn't explain the faults. A slot holding a texture with its stride correctly 0 is enough, through the constant-buffer fallback. Our three runs with #1195 had SKIP and the write order together, so they can't tell the two apart. With your run 21 the write order looks unneeded for
_Prev, and I can drop it from #1195 if the maintainer wants the smaller change.