Skip to content

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

Open
BubsMcgee wants to merge 1 commit into
ProjectLeonida:mainfrom
BubsMcgee:docs/xdxr-title-call-args
Open

BubsMcgee wants to merge 1 commit into
ProjectLeonida:mainfrom
BubsMcgee:docs/xdxr-title-call-args

Conversation

@BubsMcgee

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant