Make compute pipelines from programs the title compiled itself (device method 0x218) #98
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/98"
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 DexNom/VIctory. Originally posted by Castyan on 2026-11-26T20:05:04Z.
Stacked on #64 (itself on #61). The changes to review are the 19 commits after
53f1f19, from5fe8cb6to60ff2e8. Split out of #64, where they were reviewed in its comments.What
At start the title builds compute pipelines from programs it compiled itself, through device method 0x218. Until now that method returned
E_NOTIMPLand the title went without them.native_build.rs): the program is read from the 0x60-byte description (registers, console resource table, code) and its root signature, wrapped in a container of its own, then translated and cached like the title's own containers. What the decoder reads: resource tables as the title writes them, root descriptors, root constants counted from the signature, 32-lane programs from their depth word, and directly indexed heaps placed past the root parameters (only when the count matches exactly). A description that cannot be read still getsE_NOTIMPLwith a null output, and the reason is logged.VICTORY_DUMP_NATIVE=<folder>saves descriptions that are not read or do not translate, with their root signatures, for offline replay.src_scc,s_pack_*_b32_b16,s_bfm_b64,s_bitreplicate_b64_b32,image_storewith any channel mask (port of fxceless/victory-fork#146 by Davi713), typed buffer stores of fewer than four channels,v_ldexp_f32, a structured buffer made raw for the descriptor it is loaded as, and thesrc_scccarry into an address's high half.Nothing is guessed: a program whose semantics are not reproduced exactly is still refused, with its reason. Each change comes with a test.
Results (RTX 5060)
60ff2e8Checks
cargo clippywith and without--all-features(-D warnings) andcargo test --workspace --lockedpass on the branches stacked on this one.🤖 Generated with Claude Code
Imported from DexNom/VIctory. Originally posted by andrewDoing on 2026-11-26T22:46:50Z.
Independent RTX 5070 end-to-end check at
60ff2e8: generated a synthetic 0x218 description with 32 threads, register/table metadata, descriptor load, arithmetic and per-thread UAV store; called the real device slot 0x218, translated the returned compute container, created a PSO and dispatched it. All 32 output DWORDs matched 33 through 64. A zero-length-code negative case returnedE_NOTIMPLand a null output. This covers one synthetic metadata layout, not captured title programs or gameplay.Verification was AI-assisted with GPT-6.2 Astra.
Imported from DexNom/VIctory. Originally posted by Castyan on 2026-11-27T07:40:26Z.
Merged into #64 (
83bfddc), where this work continues. Closing as superseded.Pull request closed