docs(xbox_d3d12_xs): root-signature flags measure 0x80; 0x03000000 is absent (D3D12-RTS0-FLAGS-MEASURED) #1048
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1048"
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 ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T17:20:04Z.
Claim:
claiming: D3D12-RTS0-FLAGS-MEASURED(issue #14).Item ID: D3D12-RTS0-FLAGS-MEASURED.
What
Adds
docs/xbox_d3d12_xs.md§2.5 and updates the §6 table row. It records what the executable'sPRIVroot-signature path actually does, since the flag enum itself has no public page (§2.4):FUN_14247fc40builds aD3D12_VERSIONED_ROOT_SIGNATURE_DESCand passes it toD3D12SerializeVersionedRootSignature. It writesVersion= 2 (D3D_ROOT_SIGNATURE_VERSION_1_1) andFlags=0x80(D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE) unconditionally; the description carries no parameters or samplers.FUN_140fa09f0, which does not walk the description: it checks the 8-byte DXBC chunk headerPRIV(+0..+3id,+4..+7uint32payload lengthN) plus the two-byte marker0xDC 0xE2at+8..+9, keys its ordered map (0x1475e7760) on the unaligned 32-bit dword at+0xb(bytes1..4of the compact stream), expands[chunk + 0xa, chunk + 8 + N)into a temporaryID3DBlobviaFUN_1455ac630, passes the expanded bytes andIID_ID3D12RootSignature(0x1461e06c8) toID3D12Devicevtable slot 16 (+0x80,CreateRootSignatureat0x140fa0b34), and releases the temporaryID3DBlobat slot 2 (+0x10,0x140fa0b45). In3VS_AlphaTransmissionFullScreenTrithe three containers declarePRIVchunks of 484, 480 and 480 total bytes (10-byte prefix + 474/470/470-byte compact stream), so it is not a fixed flag blob.0x03000000occurs in neither place: 0 hits over 3,997 validPRIVbodies from 4,000 carved containers (both byte orders), and no immediate in the three functions above across.text(0x140001000–0x145f40966). The nearest value,0x30000000, is unrelated (instruction-dword encoding;MOV RAX, 0x300000050is aWNDCLASSEXinitialiser).0x03000000belongs toRTS0, which the shim already masks; that mask leaves0x80untouched, so thePRIVpath needs no translation.Why
The page previously only said the flags enum is undocumented, and §6 credited the layer's
RTS0high-byte mask as if it were what makes the game's signatures work. The measurements give the real value, name the chunk that carries the bindings, and separate the two numeric values so a later reader does not chase0x03000000on a path that never writes it.Tested
python -I scripts/check_no_game_data.py docs/xbox_d3d12_xs.md-> exit 0python -I tests/test_docs_links.py,tests/test_docs_table_rows.py,tests/test_docs_repo_paths.py,tests/test_docs_cli_flags.py-> OK0x14247fc40,0x140fa09f0,0x1455ac630, import resolution of0x145f3fdb0), a.text(0x140001000–0x145f40966) byte sweep for00 00 00 03and00 00 00 30, and aPRIVbody scan over 4,000 carved containers.GPUs tested: n/a
AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T07:04:44Z.
Reviewed f718fbd: Docs-only; ran
tests/test_docs_repo_paths.py,tests/test_docs_links.py, andscripts/check_no_game_data.py docs/xbox_d3d12_xs.mdon this branch and onorigin/mainin the sandbox (all pass). TheD3D12_VERSIONED_ROOT_SIGNATURE_DESCx64 offsets (0x00..0x28),D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80in PCd3d12.h,PRIVmagic (0x56495250), and shim description (kXboxRootSignatureFlagHighByte = 0xFF000000, RTS0 flags atpayload+20,0x80preserved) all check out. Two factual issues in §2.5 should be fixed before merge: (1) ThePRIVchunk layout contradicts itself — "10 bytes of header (id, length, the0xDC 0xE2pair and the key)" enumerates 4+4+2+4 = 14 bytes, the 32-bit key at+0xb(bytes 11..14) sits inside the payload stated to begin at+10(leaving+0xaunexplained), and the chunk's ~470 bytes are called "expanded payload" even thoughFUN_1455ac630expands them. (2) "device vtable slot 2,CreateRootSignature" contradictsID3D12Device(both PC SDK and the console ABI measured indocs/d3d12_command_objects.md/runtime/shims/d3d12_xs_device.cpp), where slot 2 isReleaseandCreateRootSignatureis slot 16 (+0x80); please fix the slot or clarify if that is an engine wrapper vtable. Minor nits: the.textend VA0x1463f975is missing a hex digit (< 0x140001000), and the §6 table's "The executable only ever serializes version 1.1" over-generalizes §2.5's "this path". AI-assisted review.Recommendation: Fix first
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T19:07:31Z.
Rebased onto
main(9f9a7c5f) and addressed all four points from @PierreEbele after re-checking the disassembly ofFUN_140fa09f0(0x140fa09f0–0x140fa0b45),FUN_1455ac630(0x1455ac630–0x1455ac680), and the PE.textsection header:PRIVchunk layout: Fixed the header/body boundary in §2.5. The chunk starts with a 10-byte prefix: the 8-byte DXBC chunk header (PRIVat+0..+3,uint32payload lengthNat+4..+7) plus the two-byte marker0xDC 0xE2at+8..+9.FUN_1455ac630receives[chunk + 0xa, chunk + 8 + N)as the compact stream (+0xais a 1-byte count,+0xb..+0xcauint16,+0xfa second 1-byte count) and expands it into a temporaryID3DBlob;FUN_140fa09f0reads the unaligned 32-bit dword at+0xb(bytes1..4of that compact stream) as the key in its ordered map (0x1475e7760). The three3VS_AlphaTransmissionFullScreenTrichunks are 484/480/480 total bytes (10-byte prefix + 474/470/470-byte compact stream).CreateRootSignaturevtable slot: Fixed "device vtable slot 2".FUN_140fa09f0callsID3D12Devicevtable slot 16 (+0x80,CreateRootSignatureat0x140fa0b34on[0x148759d00]) withIID_ID3D12RootSignature(0x1461e06c8), and then calls slot 2 (+0x10,IUnknown::Releaseat0x140fa0b45) on the temporaryID3DBlob..textend VA & §6 scope: Fixed the.textrange typo to0x140001000–0x145f40966(verified the same 1,51400 00 00 03count over that exact PE.textspan) and scoped §6's table row toFUN_14247fc40'sPRIVroot-signature builder.Re-ran
check_no_game_data.pyand the docs test suite (all pass).AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:23:51Z.
Red/green: Docs only: Adds the measured root-signature flag 0x80 and the PRIV path to docs/xbox_d3d12_xs.md, consistent with the RTS0-only mask in the shim on main.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main.AI-assisted (Claude Code, Claude Opus 5.5)