[GH #46] Reproduction on an AMD RX 7600 (8 GB, RDNA3): playable prologue, and the four open PRs it needs #46
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 Zettrox/ztrx. Originally posted by dodo4154 on 2026-11-25T05:53:16Z.
Reproduced on a card the README does not cover (AMD RX 7600, 8 GB, RDNA3) and measured.
Not a pull request: a reproduction and measurement report. ztrx's README says it was
tested on one NVIDIA card and asks for others; this is an AMD one, and the notes below
say which of the open pull requests are needed to make it stable and glitch-free here.
Machine
--console series-x)What ran
mainat the time of this report, plus four open pull requests applied on top withgit apply -3(no source edits of my own):Only #110 and #150 conflict textually, both in the re-export test block of
crates/victory-shader/src/emit/mod.rs; keeping both tests resolves it.cargo build --release -p victoryis clean,cargo test -p victory-shader -p victory-gpupasses(210 and 114).
Shader translation, measured offline
victory.exe translate --validate --list shaders.rpfover the title's 26,503 containers(26,084 programs), Windows SDK 10.0.26100 dxil.dll:
The remaining 81 are dominated by one merged ES+GS shader that exceeds DXIL's
vertex-plus-primitive output limit (72 lines), plus six interpolation-mode mismatches
and three "out of bound coord must be undef".
In the world, with the four fixes
Automated run: the title was started with
VICTORY_KEYSpressing through the first-bootscreens and menus and
VICTORY_CAPTUREsaving frames, so no one touched the PC.13-minute run and none in the run that followed, with
VICTORY_RELAY=2only.24,104 slots with 23,070 due (oldest 2,552 frames) on victory-fork on the same
machine, which is where that build then died (below).
Without #115 and #141 the opening suffers the stale-texture glitching those two
describe: menus and cutscene show the previous frame's content in patches. With them,
the opening and the cutscene handover are clean.
What fails here, for the record
VICTORY_WAVE_WIDE=1: entering the world dies with0xc0000005reading0xbfd45018inside the title image. So on this card wave64 lowering is not usable yet.VICTORY_LATE_WAIT=3withVICTORY_WIDE_BACK=1: the title takes exception0x80000003(a breakpoint, the title's own check) exactly at the cutscene-to-gameplayhandover, after three compute pipelines bind for the first time.
VICTORY_RELAY=2alone does not.
failing with
hr=0x800706f8(an invalid user buffer) while the texture queue wassaturated, one line before the title's breakpoint.
still does not run, as the README says.
Reproducing this
Scripts used, if useful to anyone: a launcher that also pins the title's audio session
to 20 % once it appears, and a sweep that runs a list of environment configurations and
records each one's median frame time. Both are PowerShell and depend on nothing outside
Windows.
Imported from Zettrox/ztrx. Originally posted by dodo4154 on 2026-11-25T06:04:22Z.
One more data point from the same card, in case it is recognisable: the run does not always survive, and the way it dies looks the same every time.
0x80000003is a breakpoint, so this is the title's own check failing rather than a fault inside the layer. It lands at different frames on different runs (r12/r13held 1075, 1701 and 2155 in three runs), always a couple of minutes into the prologue, and in each of those runs the last lines before it are a burst of the descriptor layer's fallback for a UAV over a depth texture:One run of thirteen minutes reached the same scene and never hit it, so it is not a fixed frame; it behaves like a resource or state that the burst of depth UAV binds needs and does not get here. Everything else is as in my first post:
VICTORY_RELAY=2, Series X profile, #115/#141/#110/#150 applied.Imported from Zettrox/ztrx. Originally posted by dodo4154 on 2026-11-25T07:26:32Z.
The crash in my earlier comment is fixed here by a sibling fork's pair of commits, and the rooms come back with it. The stack that now survives is:
#141(staging buffer overwritten in flight),#110and#150(signature order and interpolation modes) as before;myokex/victory-amdc6dc4d8c"a write through one view of a page is seen at its other views";myokex/victory-amd10ea38ed"kernel reads into title memory are read beside and copied in";#115dropped:c6dc4d8cis its fuller form and adds the kernel-read half.Results on the same card (AMD RX 7600 8 GB, RDNA3, Series X profile,
VICTORY_RELAY=2):#115victory-amdcommitshr=0x800706f8from DirectStoragecargo test -p victory-shader -p victory-gpu: 213 and 116 passed.The
0x800706f8was exactly what10ea38eddescribes: a block guarded again betweenkernel_will_writeand the read, which fails that read and stops the title seconds after the first world frame. Both commits applied to this tree cleanly and needed no edits.Imported from Zettrox/ztrx. Originally posted by thatirishguyyy on 2026-11-25T07:58:21Z.
Another Windows Radeon data point on an RX 9070 XT (RDNA4, driver
32.0.32029.2010), ztrx90b529f, Series X profile. The stock release reached loading and exited after 2:24 with0xc0000005inamdxc64.dll+0x861b9f, with about 11 GiB of Windows commit headroom.In an offline screen of 141 character
CS_RaytracingResolveshaders, 75 created D3D12 pipelines and 66 exited with0xc0000005. The 66 include the 41 hashes from fxceless/victory-fork#3 and 25 additional hashes. Three traced examples passed standalone DXIL validation before failing at pipeline creation.With those 66 hashes plus the two dispatch skips from fxceless/victory-fork#3 and a local diagnostics patch to honor the skips during pipeline prewarming, one run rendered the opening scenes and hit
DXGI_ERROR_DEVICE_HUNGat 7:11. A warm follow-up reached the interactive prison-cell tutorial and stayed up until my planned 10-minute cutoff. Camera input and menu navigation worked at roughly 1–2 FPS hands-on. Clothing and lighting artifacts remained. Commit headroom was about 6 GiB at cutoff.I can share the hashes and prewarm patch if helpful. AI-assisted: Codex ran the offline tests and helped analyze the logs.
Imported from Zettrox/ztrx. Originally posted by sil-kong on 2026-11-25T08:11:11Z.
Another RDNA3 data point, this time on Linux/Wine, with one finding about the ray-tracing builder on 64-lane hosts.
Setup: RX 7900 XT (RADV, Mesa 26.2.7), Arch Linux, GE-Proton10-34's Wine,
90b529fcross-built with mingw, plus fxceless/victory-fork#115. Series X 1.0.2.1.What it took to get past loading:
vkCreateGraphicsPipelines/vkCreateComputePipelines(Wine assertion inwinevulkan/loader_thunks.c), first on mesh shaderd4111a6e6ea49d91, then089d6271be6650efand4e296b1885c37b29. Swapping in thed3d12.dll/d3d12core.dllfrom Proton Experimental 11.0-20261112 fixes it, same as Marvisak/VIctory#144 on NVIDIA.Ray-tracing builder: with
VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1, it does turn on on this card:docs/fork-ray-tracing.mdsays it stays off because some builder pipelines need 64-lane waves. A 64-lane host doesn't have that problem. The scene is still black: the builder runs quarantined, and nothing visible reads its output yet.What still doesn't translate here (3 programs):
b22a16a178976e1b:a wave sum of 16-bit floats where not every lane runs2fd01fca16993001,6b6db9f1a526daeb:a descriptor read only as dataAbout the first one: in
emit::emit, the retries for programs stopped "where not every lane runs" (without early-outs or skips, thenwiden) only run whenhost_max_wave() == 32. On a 64-lane host, a console wave64 program that stops there gets no retry at all.half_sumalso only records the block (need) on the two-host-wave path, sowidencouldn't find the branch anyway. On a 64-lane host,widenis exact and needs no group barrier, since one console wave is one host wave. I have a small local patch for this (both changes, behindZTRX_WAVE64_RETRY=0to turn it off) and a unit test (a_16_bit_wave_sum_inside_a_lane_branch_on_a_64_lane_host_is_taken_wave_wide, passing).cargo test -p victory-shaderpasses, exceptstub_pipeline_is_created, which fails under vkd3d-proton with or without the patch (it doesn't check the DXIL digest). I haven't confirmed in game yet thatb22a16a1now translates. I'll follow up, and I can open a PR if you want one.Performance under Wine: about 0.2 fps in the world, mostly texture refresh waiting on title memory and the write watch. The GPU is busy for about 40–450 ms per frame.
Imported from Zettrox/ztrx. Originally posted by sil-kong on 2026-11-25T08:17:48Z.
Follow-up on the 64-lane retry patch: confirmed in game. With it,
b22a16a178976e1btranslates and gets a host pipeline on the RX 7900 XT (Wine). I didn't see any regression over a run into the prologue cutscene, and the builder still runs (53 pipelines). The scene stays black, so that program wasn't what kept it dark here. The two pixel programs (a descriptor read only as data) are what remains.Imported from Zettrox/ztrx. Originally posted by sil-kong on 2026-11-25T09:33:25Z.
An RDNA3 data point (RX 7900 XT, 64-lane waves), on
90b529f+ fxceless/victory-fork#115, #110 and #150. It confirms your result on a second AMD card: the prologue renders with characters, faces and hair, and #115 removes the intro's back-and-forth frames here too. #141 didn't apply to90b529fwithout a manual merge, so it isn't in. (This card runs under Linux/Wine, so I'm leaving speed numbers out; they say more about Wine than about AMD.)Two AMD-relevant findings:
1. Wave64 programs on 64-lane hosts get no retry. Compute
b22a16a178976e1bfailed witha wave sum of 16-bit floats where not every lane runs. Inemit::emit, the retries for programs stopped "where not every lane runs" (without early-outs or skips, thenwiden) only run whenhost_max_wave() == 32.half_sumalso only records the block (need) on the two-host-wave path, sowidencouldn't find the branch anyway. On a 64-lane host,widenis exact and needs no group barrier, since one console wave is one host wave. With the patch below,b22a16a1translates and gets a host pipeline in game, with no regression seen.cargo test -p victory-shaderpasses, apart fromstub_pipeline_is_created, which fails the same way without the patch when the device is vkd3d-proton.2. A DirectStorage write into a read-only page, with #115. Twice, inflate or a plain copy into a title destination faulted on a read-only page that the guard's handler declined (the block wasn't in its protected set):
Once the same thing came back from a file read as
hr=0x800703e6(ERROR_NOACCESS: the kernel reports it instead of faulting). The title then took its own breakpoint at+0x23d8f03on the null result. Locally I worked around both: the handler makes such a page writable again and notes it written, and the read retries through a buffer. That is a band-aid, not a root cause; it looks like a race between the guard's protect and a remap. I can share it if it helps.wave64 on 64-lane hosts: retry without early-outs/skips, then widen
Imported from Zettrox/ztrx. Originally posted by dodo4154 on 2026-11-25T14:27:33Z.
Same driver message we get on RDNA3, so this looks like one AMD problem rather than two: on an RX 7600 (8 GB, RDNA3) the release at
90b529falso ends in0xc0000005, and one of ours lands inside the driver path rather than in the layer (victory-image+0x23cf683on a write to 0). YourCS_RaytracingResolvescreen is the useful part: 66 hashes that the AMD compiler refuses is a concrete, shareable list, and the fact that a run with them skipped reached the prison cell hands-on at 1-2 FPS matches what we see.Yes please to the hashes and the prewarm patch. Two things on our side that may save you time:
90b529f+#141+#110+#150+myokex/victory-amdc6dc4d8c(a write through one view is seen at its other views) +10ea38ed(kernel reads into title memory beside and copied in), with#115dropped as the subsumed one. Frame time 422-427 ms, distinct colours/brightness 3881/57.5 against 3434/46.1 before. The second commit is the one that ends ahr=0x800706f8DirectStorage failure that stopped the title seconds after the first world frame.sil-kongin this thread has a patch for thea wave sum of 16-bit floats where not every lane runsretry that only arms on 32-lane hosts; if your 9070 XT reports 64 lanes like our 7600 does, that may remove one more refused program without any hash list.If you post the hashes as a file or a comment, I will fold them into the skip list on our card and report whether the 20-minute run still holds.
Imported from Zettrox/ztrx. Originally posted by dodo4154 on 2026-11-25T14:27:38Z.
Your wave64 finding is the one I can test directly, because our card is the same wave shape: an RX 7600 reports
host wave lanes min=32 max=64, andb22a16a178976e1bis exactly the hash our runs still print asso on a 64-lane host that program is being refused for a reason the retry path cannot see. If you can paste the patch — or just the two hunks you describe, the
host_max_wave()condition inemit::emitand theneedcall on the single-wave path inhalf_sum— I will apply it to90b529f+#141+#110+#150+myokex/victory-amdc6dc4d8cand10ea38edand report whether that program gains a host pipeline here and whether anything regresses over a 20-minute run.Your second finding matches something we hit and then stopped hitting: with
#115in the tree we lost the title to a DirectStorage read failing withhr=0x800706f8, and10ea38ed("kernel reads into title memory are read beside and copied in") is the commit that ends it — it exists precisely because a block could be guarded again betweenkernel_will_writeand the read. That commit also supersedes#115: it carries the every-view guard plus the kernel-read half, which is why we run it instead now.Imported from Zettrox/ztrx. Originally posted by sil-kong on 2026-11-25T15:10:31Z.
@dodo4154 it's already there: the collapsed "wave64 on 64-lane hosts: retry without early-outs/skips, then widen" block at the end of my comment (https://github.com/Zettrox/ztrx/issues/46#issuecomment-7158490003). It holds both hunks, the
need(self.cur_ir)change inhalf_sum(lower.rs) and the 64-lane retry inemit::emit(emit/mod.rs, switchZTRX_WAVE64_RETRY=0), plus a test inwave64_tests.rs. It's against plain90b529f; I haven't tried it with #141 or the twomyokex/victory-amdcommits, somod.rsmay need a small manual merge there. Thanks for the pointer to10ea38ed, that fits what I saw with #115.Imported from Zettrox/ztrx. Originally posted by dodo4154 on 2026-11-25T15:14:53Z.
Applied, and it lands cleanly on the stack we run:
90b529f+#141+#110+#150+myokex/victory-amdc6dc4d8c+10ea38ed, then your patch —lower.rs,mod.rsandwave64_tests.rsall applied without a manual merge, andcargo test -p victory-shadergives 214 passed, 0 failed (213 before it, so your test is running here too).For the record, I had written the same two hunks by hand from your description before finding your block, and yours is the better version: the
ZTRX_WAVE64_RETRYswitch and the test that asserts the branch is named and then lowers wave-wide are exactly what a change tohalf_sumneeds. I am keeping yours and dropping mine.One caveat on how this gets confirmed: the offline census cannot see the difference.
set_host_max_waveis only called fromvictory-gpu/src/host.rswhen a D3D12 device is created (WaveLaneCountMax), sovictory translatekeepshost_max_wave()at 32 and never takes the 64-lane path — the census still listsb22a16a178976e1bas refused. The real check is one game run on the card: whether that hash gains a host pipeline and whether a 20-minute run still holds. I will report both numbers here when I have them.