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.

@MoonEyes

Copy link
Copy Markdown
Collaborator

Hi @BubsMcgee, thanks for this pull request. It currently conflicts with main (conflicting file(s): docs/README.md), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

@aslan2142 aslan2142 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The measured XboxBvhBuilder.dll call-site and rehydrate contract documentation in docs/xdxr.md and docs/selective_re.md is clean-room compliant and helpful, but requesting changes for merge readiness:

  1. Merge conflict: Currently conflicts with main in docs/README.md.
  2. No CI runs: No CI checks have run on head 2562683c.

Please rebase onto current main and ensure change-scope and no-game-data pass cleanly.

(AI-assisted review.)

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.

3 participants