[PR #1048] docs(xbox_d3d12_xs): root-signature flags measure 0x80; 0x03000000 is absent (D3D12-RTS0-FLAGS-MEASURED) #1086

Open
opened 2026-11-26 20:20:02 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1048
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: docs/agent3


📝 Commits (1)

  • 12f3a12 docs(xbox_d3d12_xs): root-signature flags measure 0x80; 0x03000000 is absent (D3D12-RTS0-FLAGS-MEASURED)

📊 Changes

1 file changed (+74 additions, -3 deletions)

View changed files

📝 docs/xbox_d3d12_xs.md (+74 -3)

📄 Description

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's PRIV root-signature path actually does, since the flag enum itself has no public page (§2.4):

  • FUN_14247fc40 builds a D3D12_VERSIONED_ROOT_SIGNATURE_DESC and passes it to D3D12SerializeVersionedRootSignature. It writes Version = 2 (D3D_ROOT_SIGNATURE_VERSION_1_1) and Flags = 0x80 (D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE) unconditionally; the description carries no parameters or samplers.
  • The resulting blob goes to FUN_140fa09f0, which does not walk the description: it checks the 8-byte DXBC chunk header PRIV (+0..+3 id, +4..+7 uint32 payload length N) plus the two-byte marker 0xDC 0xE2 at +8..+9, keys its ordered map (0x1475e7760) on the unaligned 32-bit dword at +0xb (bytes 1..4 of the compact stream), expands [chunk + 0xa, chunk + 8 + N) into a temporary ID3DBlob via FUN_1455ac630, passes the expanded bytes and IID_ID3D12RootSignature (0x1461e06c8) to ID3D12Device vtable slot 16 (+0x80, CreateRootSignature at 0x140fa0b34), and releases the temporary ID3DBlob at slot 2 (+0x10, 0x140fa0b45). In 3VS_AlphaTransmissionFullScreenTri the three containers declare PRIV chunks of 484, 480 and 480 total bytes (10-byte prefix + 474/470/470-byte compact stream), so it is not a fixed flag blob.
  • 0x03000000 occurs in neither place: 0 hits over 3,997 valid PRIV bodies 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, 0x300000050 is a WNDCLASSEX initialiser). 0x03000000 belongs to RTS0, which the shim already masks; that mask leaves 0x80 untouched, so the PRIV path needs no translation.

Why

The page previously only said the flags enum is undocumented, and §6 credited the layer's RTS0 high-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 chase 0x03000000 on a path that never writes it.

Tested

  • python -I scripts/check_no_game_data.py docs/xbox_d3d12_xs.md -> exit 0
  • python -I tests/test_docs_links.py, tests/test_docs_table_rows.py, tests/test_docs_repo_paths.py, tests/test_docs_cli_flags.py -> OK
  • Static only, no runtime test: Capstone disassembly (0x14247fc40, 0x140fa09f0, 0x1455ac630, import resolution of 0x145f3fdb0), a .text (0x140001000–0x145f40966) byte sweep for 00 00 00 03 and 00 00 00 30, and a PRIV body scan over 4,000 carved containers.

GPUs tested: n/a

AI-assisted: yes (Antigravity, Gemini 4 Carbon)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1048 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/agent3` --- ### 📝 Commits (1) - [`12f3a12`](https://github.com/ubiquitarianism/leonida/commit/12f3a12b14e12039596f5a7b86e80800358541b4) docs(xbox_d3d12_xs): root-signature flags measure 0x80; 0x03000000 is absent (D3D12-RTS0-FLAGS-MEASURED) ### 📊 Changes **1 file changed** (+74 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/xbox_d3d12_xs.md` (+74 -3) </details> ### 📄 Description 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's `PRIV` root-signature path actually does, since the flag enum itself has no public page (§2.4): - `FUN_14247fc40` builds a `D3D12_VERSIONED_ROOT_SIGNATURE_DESC` and passes it to `D3D12SerializeVersionedRootSignature`. It writes `Version` = 2 (`D3D_ROOT_SIGNATURE_VERSION_1_1`) and `Flags` = `0x80` (`D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE`) unconditionally; the description carries no parameters or samplers. - The resulting blob goes to `FUN_140fa09f0`, which does not walk the description: it checks the 8-byte DXBC chunk header `PRIV` (`+0..+3` id, `+4..+7` `uint32` payload length `N`) plus the two-byte marker `0xDC 0xE2` at `+8..+9`, keys its ordered map (`0x1475e7760`) on the unaligned 32-bit dword at `+0xb` (bytes `1..4` of the compact stream), expands `[chunk + 0xa, chunk + 8 + N)` into a temporary `ID3DBlob` via `FUN_1455ac630`, passes the expanded bytes and `IID_ID3D12RootSignature` (`0x1461e06c8`) to `ID3D12Device` vtable slot 16 (`+0x80`, `CreateRootSignature` at `0x140fa0b34`), and releases the temporary `ID3DBlob` at slot 2 (`+0x10`, `0x140fa0b45`). In `3VS_AlphaTransmissionFullScreenTri` the three containers declare `PRIV` chunks of 484, 480 and 480 total bytes (10-byte prefix + 474/470/470-byte compact stream), so it is not a fixed flag blob. - `0x03000000` occurs in neither place: 0 hits over 3,997 valid `PRIV` bodies 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, 0x300000050` is a `WNDCLASSEX` initialiser). `0x03000000` belongs to `RTS0`, which the shim already masks; that mask leaves `0x80` untouched, so the `PRIV` path needs no translation. ## Why The page previously only said the flags enum is undocumented, and §6 credited the layer's `RTS0` high-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 chase `0x03000000` on a path that never writes it. ## Tested - `python -I scripts/check_no_game_data.py docs/xbox_d3d12_xs.md` -> exit 0 - `python -I tests/test_docs_links.py`, `tests/test_docs_table_rows.py`, `tests/test_docs_repo_paths.py`, `tests/test_docs_cli_flags.py` -> OK - Static only, no runtime test: Capstone disassembly (`0x14247fc40`, `0x140fa09f0`, `0x1455ac630`, import resolution of `0x145f3fdb0`), a `.text` (`0x140001000`–`0x145f40966`) byte sweep for `00 00 00 03` and `00 00 00 30`, and a `PRIV` body scan over 4,000 carved containers. GPUs tested: n/a AI-assisted: yes (Antigravity, Gemini 4 Carbon) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1086
No description provided.