RX 9070 XT (RDNA4): the ray-tracing builder runs here; unbacked title pages then cost either the device, or 86 GB/frame of refresh #543
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#543
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?
@0xmp3 on GitHub · 2026-11-25 02:04 UTC · original
RX 9070 XT (RDNA4): the ray-tracing builder runs here; unbacked title pages then cost either the device, or 86 GB/frame of refresh
Setup
Windows 11 build 26300, RX 9070 XT (RDNA4, gfx1201), Adrenalin 32.0.32015.7029, Ryzen 5 5600, 32 GB. Title 1.0.2.1, Series X profile, diag build,
c96b4f2.Switches:
VICTORY_SHADER_OPT=59 VICTORY_SHADER_LOOP_LIMIT=256 VICTORY_RELAY=2 VICTORY_D3D12_DRED=1.Without
VICTORY_SHADER_OPT=59this machine dies inamdxc64.dll+0x85fd0f— that is #422, and 59 clears it on this driver too. Everything below is with 59.What works
Second run on the same shader cache reaches the prologue. The 3D scene renders (dark, as expected with the builder off), credits and subtitles composite correctly, and about 14 minutes of walking around the prison starting area at 1–2 fps was possible. Warm in-world frames: 1,031–4,862 draws/frame, 499–788 ms/frame.
1. The ray-tracing builder runs on this card
docs/fork-ray-tracing.mdlists as a known gap that the builder "still stays off in a real run: a few of its pipelines are refused by the host (they still ask for 64-lane waves on a 32-lane GPU) or do not translate". WithVICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1here:So on RDNA4 the 64-lane request is not a refusal, and all of the builder's programs got host pipelines. That may be worth knowing before anyone spends time on a 32-lane workaround.
2. Unbacked title pages are what removes the device
With the builder off, every warm frame attributed its drops:
...and the run ended with:
DRED printed that frame's bindings as well, including
u5=0x1f071a0 [heap 1016717: Placed(false, …)]and two UAVs ons0.The builder builds the structures the traversal programs read. With its stages off, those pages are never written and never get host copies, while traversal is still translated, bound and dispatched — so a traversal read lands in title memory with no copy behind it. The DRED line is exactly that.
With the builder on, the same accesses are caught instead of faulting:
No device removal in that run. So the fork's diagnostic path catches these, and the fault above is the path where the access reaches the GPU first.
3. The cost of making those copies is the new wall
With the builder running, per-frame refresh volume:
86 GB per frame of texture refresh, 24.4 GB resident, 0 fps at 3,752 ms/frame (4,805 draws/frame). Earlier, builder-off runs showed the same trend more slowly — 7,728 → 10,125 → 15,637 MB — and the same regions copied repeatedly (
0x1002ba0000+0x1518000: 2.9×/frame,0xdb6e90000+0xa7df00: 4.1×/frame), with 636 ms of one frame spent "waiting for title memory to hold still (the runtime remapping it)" over 253 hash passes and 1,144 pieces. VRAM sat at 14.7 of 16.0 GB.So: every builder write invalidates host copies, and the refresh path re-uploads the world. Avoiding the fault this way moves the wall to bandwidth and VRAM rather than removing it.
4. One named translation gap, for completeness
compute b22a16a178976e1b(compute_graph_ops:CS_TransposeVecMatMulAlignedOperation) is refused witha wave sum of 16-bit floats where not every lane runs, dropping 42 draws/frame in the world. Everything else I looked at translates — 0 refused programs in the world runs themselves.Not tested
VICTORY_BVH_BUILDER=1without the quarantine; a longer builder-on run to see whether it ends in the same place; the newer commits afterc96b4f2;VICTORY_INPLACE.No game data: driver build, the module offset from #422, page addresses as the log prints them, program hashes, counts and timings. No screenshots attached. AI-assisted (Hermes Agent).
@0xmp3 on GitHub · 2026-11-25 02:07 UTC · original
A follow-up on what the builder-on run actually looks like, because it changes how this issue should be read: it is not only fault-free, it is the correct-looking picture.
Same machine and switches as above, plus
VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1. Builder on, warm cache, 5,068 draws/frame, 0 fps at 2,948–3,750 ms/frame:Builder off, the same scene is flat and washed out — no falloff, no indirect, nothing reading as material. So the tradeoff is not "correct but slow" versus "wrong but fast": builder on is the target state, and the only thing standing in the way is the refresh volume in section 3 (43,707 → 86,959 MB/frame). In other words the fix is to make the refresh cheaper, not to keep the builder off.
Not verified against a console reference — I cannot compare with the real thing, only say that the image is coherent, coloured and lit, and that elements which depend on the structures exist in it (the yard population and the shading both do).
No screenshots attached (asset policy); this is a description only. AI-assisted (Hermes Agent).
@0xmp3 on GitHub · 2026-11-25 03:36 UTC · original
Correction to the refresh figures above, from #591: the per-frame refresh volume I quoted (43,707 → 86,959 MB, and 55,008 MB in later runs) is the sum of requests before batching, so it overstates physical copies. Treat it as an upper bound on traffic, not as bytes moved. The trend across a run — climbing, then holding — still stands, and so does the VRAM observation (14.7 of 16.0 GB), but I should not have implied those numbers were raw PCIe volume. Thanks to DoubleD17 for the correction and for the disjoint-range fix.
Two related updates while I am here:
No game data; numbers from VIctory's own log. AI-assisted (Hermes Agent).
@nuiiv on GitHub · 2026-11-25 09:42 UTC · original
A data point from RDNA 2 on a small machine: the builder runs natively here as well, but on 16 GB of system memory the run ends about 10 s into the world, when memory shared with the card runs out.
Setup
main9376fd6+ #150 + #112 + #25 + #156, plus one local change that is not in any PR (a longer texture budget for the decoration bake before the first world frame only). Fresh shader cache.VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_LEVELS_ON_DEMAND=1, everything else default.Offline on this card (
translate --pipelines, no host-wave override):sr_tracing:CS_Tiling_Generate_Opaque(2cc4c197ee29e291), which 32-lane hosts refuse (#512): pipeline made. So are all 112sr_tracing/sr_denoisingprograms.shadowmask:CS_TraceShadowRays_*programs translate, validate and make pipelines;_FullAdaptivestill stops ("a lane mask holding lanes elsewhere read as data"), as #156 says.In the title, one run:
the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53.title memory by address: shaders touched pages that had no copy ... pages=1078 first=0x10000.title memory by address: no number left for another copy; its pages read zeros COPIES=1023.no shared buffer ... (0x8007000E) size=4194304and 78 ×no upload buffer ... (0x8007000E), with the PC's memory shared with the card at 5,674 of 7,338 MB at the last memory line.host GPU failure: no memory to fetch what shaders wrote to the card's memory (6356992 bytes, VICTORY_RELAY=1). No device removal, no exception in the title.For comparison, the same build without #156 and with the builder off ran a whole session in the world with no failure: 2.7–3.2 fps, 97 card copies of title buffers (941 MB).
So on this machine the limit came at two points close together: the 1,023 numbered copies for title memory by address, and the shared-memory budget (about half of 16 GB). With 32 GB and 16 GB of VRAM the run above got further. I have not tested whether a larger copy count alone would get past the first, or what memory the run would need.
Not tested: a second run; a builder-on run without #156; a diagnostics build.
AI use: Claude Code (Claude Opus 5.5) set up the build, ran it on my machine, read the logs and wrote this comment.
@0xmp3 on GitHub · 2026-11-25 10:35 UTC · original
Fault rate and a new fault shape on
9376fd6(RDNA4, RX 9070 XT)Machine unchanged from the first post: RX 9070 XT (gfx1201), driver 32.0.32015.7029, Ryzen 5 5600, Windows 11 26300, game on
D:\GTA6.Build and switches for every run below:
cargo build --profile diag -p victory --features diagnostics, thenVICTORY_KEYS=25:Enter,40:Enter,...drives the boot and menus; the window is left alone after that, so every run sits at the same first-world-frame view.VICTORY_INPLACEwas 1 except where noted. Runs are capped at 6 minutes by the harness, so "survived" means "still drawing at the cap", not "stable".What happened
c96b4f2c96b4f2c96b4f20xffffffffffffffff8dd30ab0xffffffffffffffffa26859f0x2c760009376fd60x3bf70009376fd60x3d5d0009376fd6INPLACE=0)0x500002fe50009376fd6VIEW_GUARD=0)VCRUNTIME140+0x1bc5bSo: 3 of 3 runs on
9376fd6with the view guard at its default ended in a host device removal at 2:58–3:41, at 3,082–5,010 draws. 2 of 3 runs onc96b4f2ran the full cap (6:08 and 8:17) at 5,829–5,901 draws, and its one failure was the title-side fault, not a device removal.I am not claiming a clean regression: with 3 runs against 3 runs and a failure that is clearly stochastic on this card, that is a rate observation, not a bisect. What I think is solid is the shape of the new failures.
The shape that is new to me
Three of the four
9376fd6deaths read an address that is backed by nothing, and they are not all the same kind of nothing.Unbacked title page (runs 1 and 2, and
a26859f):A wild descriptor address (run 3):
That second one I have never seen on this card before: the read is ~0x4ff8_79d6_5000 above everything the runner knows, i.e. not a page that lost its copy, but a descriptor whose contents are wrong. It points at the record-mirroring / draw-table slot work in
a26859fand9376fd6rather than at the page-copy path.What the breadcrumbs say
With
VICTORY_D3D12_DRED=1, the last recorded activity before the run-2 removal is a sweep handing copies back:A copy released as "held by no list and no slot" 51 ms before a shader read faults on memory that has no copy is the thing I would look at first. If a list that is still in flight (5 were sent ahead) can read a copy the sweep has just judged unheld, both of the shapes above follow: the read is unbacked, and under
a26859f's mirroring a descriptor can be mirrored from a copy that has since gone. But DRED only keeps recent activity, so I can't show the copy the read wanted being the one that was let go — treat this as where I'd start, not as a diagnosis.Switches that did not help
VICTORY_INPLACE=0: same device removal (though the fault shape changed to the wild descriptor).VICTORY_VIEW_GUARD=0(turning off the per-page guard over every view from8dd30ab): no rescue. It ended in the title-side0xc0000005 ... read 0xffffffffffffffffat 2:01 instead.What I could not measure, which is the part that matters to me
The four commits at
9376fd6are exactly the processor-side work I pulled them for, and I still cannot say whether they help:9376fd6never reached the draw counts where the old numbers were taken (3,082–5,010 against 5,829–5,901), because it dies first. Onc96b4f2the clean runs sit at 1,947–2,166 ms/frame with 711–1,000 ms on the GPU, and both its texture lane and its copy-back lane settle once streaming finishes (texture refreshes fall to 3–7 ms/frame). So the frame-time question is still open on this card.Not tested
310c6eb/8dd30ab/a26859f/9376fd6individually; only the range as a whole was run.VICTORY_STALE_TEXTURES=0,VICTORY_REUPLOAD_WHEN_FULL=0,VICTORY_CARD_ROOM_FOR_BUFFERS=0(the other new defaults) — these are the next three runs I'd make if anyone wants the rate narrowed.9376fd6from a cold shader cache was run once only.No game data. Numbers from VIctory's own log. Logs kept local; happy to paste any specific line.
AI-assisted (Hermes Agent).
@0xmp3 on GitHub · 2026-11-25 11:22 UTC · original
Same evening, after
f85101b: the "second night" switch set on RDNA4f85101bbuilds and runs here. The set from the README (VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096) is a real frame-rate win on this card with the builder off: 209–261 ms/frame, 3.8–4.8 fps, 5,604–9,870 draws, texture lane 3.5–8.8 ms, copy-back 51–65 ms (from over 1,000). Builder-off baseline on this machine was 499–788 ms and 1–2 fps.It is not a stability fix. Five runs, five failures:
0x47e60000xffffffffffffffff0x700002b67000MERGE_GAP=00x5f71000LEVELS_ON_DEMAND=10x300002617000MERGE_GAP=0andLEVELS_ON_DEMAND=1change neither the frame rate nor the failure. With levels on demand the texture lane sits at 3.5 ms a frame and the queue settles, so a full card is not what triggers this.What I had not seen before: every device removal tonight faults inside the title's first ~100 MB of console addresses, and three of them carry junk above bit 40 while the low 40 bits are a real console address in the same band as the untagged ones.
Read as a 64-bit pointer whose upper half was never written, the tagged and untagged faults are one fault: the low part lands in one band, and the read would have been backed if the high part were clean. That points me at a partially initialised address field — a descriptor record, or title memory the layer writes — before the page-copy path. I cannot show which field, so this is a lead, not a diagnosis.
Still unverified: whether moving around matters. Every run above is static after the menus; the one session that was walked around died at 4:36 while the static runs died at 2:35–4:47, so I have no separation between "movement" and "time".
No game data; numbers from VIctory's own log. AI-assisted (Hermes Agent).
@0xmp3 on GitHub · 2026-11-25 11:24 UTC · original
Correction to the table above: two "peak draws" figures were the last frame's count, not the run's peak. Read from every frame line in each log:
f85101bdefaults (builder on): 4,000 draws/frame, not 1,932So the full set is 4,000 / 1,660 / 6,801 / 9,870 / 5,959. Nothing in the conclusions moves — the runs still fail between 2:35 and 4:47 — but every draw count goes up, and the two that got furthest into the scene are
MERGE_GAP=0(9,870) and the second-night set with the builder off (6,801), both of which still end in a device removal.My error: I read the last frame line in the log rather than the maximum. Logs kept local.