[PR #1954] docs/xdxr: the title's XboxBvhBuilder arguments and the rehydrate contract #1962

Open
opened 2026-11-26 21:19:33 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1954
Author: @BubsMcgee
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: docs/xdxr-title-call-args


📝 Commits (1)

  • 2562683 docs/xdxr: the title's XboxBvhBuilder arguments and the rehydrate contract

📊 Changes

3 files changed (+256 additions, -1 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/selective_re.md (+196 -0)
📝 docs/xdxr.md (+59 -1)

📄 Description

Docs-only; measurement from the local package, no game data.

What

  • docs/xdxr.md §6: what the retail executable passes to the seven XboxBvhBuilder.dll imports, measured from the
    file alone — 27 call sites, the ctor bool (false) and the exact 0x18-byte object, a null stream at all three
    prebuild calls, an all-zero stream in every batched element, COMPACT at both copy calls, and the 16-desc
    rehydrate batches with their source array and ScratchAccelerationStructureData = 0.
  • docs/xdxr.md §7: the DLL's rehydrate contract — the build-input hash compared with Source + 8, the
    0x01000000 header bit, and the source array overriding desc.Source.
  • docs/selective_re.md: the REA + Ghidra setup and the isolated, question-driven RE plan, linked from
    docs/README.md.

Only counts, constants and call shapes are recorded, as in docs/xmem_exe_calls.md.

Why

It closes the last open item in docs/xdxr.md §5 (whether the title ever passes a stream desc: it never does) and
gives #1759 the shape it has to serve. The measured Scratch = 0 is why that rebuild currently trips the layer's
address check and gets its command list refused at Close/Execute; the same facts are posted as a finding on
#1759 rather than a competing implementation.

Tests

  • python -I tests/test_docs_links.py and the other tests/test_docs_*.py suites
  • python -I scripts/check_no_game_data.py docs/selective_re.md docs/xdxr.md docs/README.md

AI-assisted (opencode). Claimed as XDXR-TITLE-CALL-ARGS in the coordination issue.


🔄 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/1954 **Author:** [@BubsMcgee](https://github.com/BubsMcgee) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/xdxr-title-call-args` --- ### 📝 Commits (1) - [`2562683`](https://github.com/ubiquitarianism/leonida/commit/2562683c62d5a23474a82716df8ed182d00cae3a) docs/xdxr: the title's XboxBvhBuilder arguments and the rehydrate contract ### 📊 Changes **3 files changed** (+256 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/selective_re.md` (+196 -0) 📝 `docs/xdxr.md` (+59 -1) </details> ### 📄 Description Docs-only; measurement from the local package, no game data. ## What - `docs/xdxr.md` §6: what the retail executable passes to the seven `XboxBvhBuilder.dll` imports, measured from the file alone — 27 call sites, the ctor bool (`false`) and the exact `0x18`-byte object, a null stream at all three prebuild calls, an all-zero stream in every batched element, `COMPACT` at both copy calls, and the 16-desc rehydrate batches with their source array and `ScratchAccelerationStructureData = 0`. - `docs/xdxr.md` §7: the DLL's rehydrate contract — the build-input hash compared with `Source + 8`, the `0x01000000` header bit, and the source array overriding `desc.Source`. - `docs/selective_re.md`: the REA + Ghidra setup and the isolated, question-driven RE plan, linked from `docs/README.md`. Only counts, constants and call shapes are recorded, as in `docs/xmem_exe_calls.md`. ## Why It closes the last open item in `docs/xdxr.md` §5 (whether the title ever passes a stream desc: it never does) and gives #1759 the shape it has to serve. The measured `Scratch = 0` is why that rebuild currently trips the layer's address check and gets its command list refused at `Close`/`Execute`; the same facts are posted as a finding on #1759 rather than a competing implementation. ## Tests - `python -I tests/test_docs_links.py` and the other `tests/test_docs_*.py` suites - `python -I scripts/check_no_game_data.py docs/selective_re.md docs/xdxr.md docs/README.md` AI-assisted (opencode). Claimed as `XDXR-TITLE-CALL-ARGS` in the coordination issue. --- <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#1962
No description provided.