docs/xdxr: the title's XboxBvhBuilder arguments and the rehydrate contract #1954

Open
github-bot wants to merge 1 commit from github-bot/gh-1954 into main AGit
Owner

@⁠BubsMcgee on GitHub · 2026-11-25 16:40 UTC · original
BubsMcgee:docs/xdxr-title-call-args → main · +256 −1 · 3 files · 1 commits · open

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.

**@⁠BubsMcgee** on GitHub · 2026-11-25 16:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1954) `BubsMcgee:docs/xdxr-title-call-args` → `main` · +256 −1 · 3 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:12:42 +00:00
This pull request has changes conflicting with the target branch.
  • docs/README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1954/head:github-bot/gh-1954'
git switch 'github-bot/gh-1954'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1954'
git switch 'github-bot/gh-1954'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1954'
git switch 'github-bot/gh-1954'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1954'
git switch 'main'
git merge --squash 'github-bot/gh-1954'
git switch 'main'
git merge --ff-only 'github-bot/gh-1954'
git switch 'main'
git merge 'github-bot/gh-1954'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.