Skip to content

Docs: record retail XboxBvhBuilder call sites for Q7 - #9413

Open
Matt-Mc wants to merge 1 commit into
ItsNotRexed:mainfrom
Matt-Mc:docs/9107-retail-bvh-call-sites
Open

Matt-Mc wants to merge 1 commit into
ItsNotRexed:mainfrom
Matt-Mc:docs/9107-retail-bvh-call-sites

Conversation

@Matt-Mc

@Matt-Mc Matt-Mc commented Nov 23, 2026

Copy link
Copy Markdown

Claimed in the coordination issue. Addresses #9107.

What and why

The Q7 graphics plan asked whether the retail executable uses XboxBvhBuilder. The scan in #9107 found 24 candidate call sites across all seven imports, including six for batched builds and four for batched rehydration. This change records the counts, Morton-width arguments, null stream descriptors and descriptor stride, with the scan's caveat about incidental byte matches.

The BVH notes now identify what still needs a runtime trace: which methods execute on the first ray-traced frame and which pack streams reach rehydration.

Tested

  • Relative links resolve in both changed pages.
  • git diff --check origin/main...HEAD and python -I scripts/check_no_game_data.py docs/bvh.md docs/d3d12_vulkan.md passed.
  • python -I tests/test_docs_links.py ran seven tests. The repository-wide check reported two unrelated links in unchanged pages: a missing headless-scene anchor in docs/dev-tools.md and a missing RX9070GRE.txt in docs/gpu_test_results.md.

Verified on Windows using the published findings in #9107. No game files or GPU were used.

AI-assisted: yes.

Checklist

  • The change contains no game data, keys or decryption material.

@BatSmacker84

Copy link
Copy Markdown

Checked bd7800ce7 (merges cleanly onto main 5d74c2723) against the retail executable on Windows 11 26200. Static reads only.

Pass

  • Seven imports, every per-method count, three null prebuild stream descriptors, and a nearby 0x50 stride calculation.
  • test_docs_links.py 6/7; the failing test has the same two broken links on main.

Needs changes

AI-assisted: Codex GPT-6.2 Sol ran the checks, Claude Opus 5.5 reviewed the report. The retail executable and package DLLs were read in place (executable SHA-256 e95020b2…8993); static reads only, nothing was run, and only names and counts are given.

@YordiLorenzo

Copy link
Copy Markdown

Tested bd7800c on Linux, Python 3.14.4: docs pass, one wrong number

python -I -m unittest discover -s tests -p "test_docs*.py": 37 run, output identical to main (only the known red docs tests fail)
python -I scripts/check_no_game_data.py docs/bvh.md docs/d3d12_vulkan.md: clean

docs/d3d12_vulkan.md:3413 says 24 candidate call sites, but the table under it adds up to 25 (8+6+4+3+2+1+1). #9107 has the same slip. Fix: say 25, or ask the scan author which row is one too high.
Also, open #7598 rewrites the same Q7 row at docs/d3d12_vulkan.md:3894, so one of the two will conflict.

@mrbean56

Copy link
Copy Markdown

Checked bd7800ce7f5d2df53b468e41097e2a7ab38df1f2 (tip of PR branch) on Linux, Python 3.13.5. Docs-only change (docs/bvh.md, docs/d3d12_vulkan.md), no code or test touched.

/tmp/opencode/venv/bin/python -m pytest tests/test_docs_links.py tests/test_docs_table_rows.py tests/test_docs_table_ids.py tests/test_docs_list_items.py tests/test_docs_repeated_lines.py tests/test_docs_repo_paths.py tests/test_docs_design_rows.py tests/test_docs_cli_flags.py tests/test_docs_env_vars.py tests/test_design_contract_rows.py -q → 4 failed, 33 passed. The same four fail on gh/main 5d74c2723 (docs/dev-tools.md anchor, docs/gpu_test_results.md link, LEONIDA_TLS_GA_PATCH env var, docs CLI flags) — pre-existing, none in the two files this PR touches.

Negative control: restoring both changed files from merge-base 6312c057f gives the identical 4/33 — no test binds this content. Mutation: inserting [nowhere](xdxr_missing.md) in docs/d3d12_vulkan.md makes test_docs_links report ('docs/d3d12_vulkan.md', 'xdxr_missing.md', 'missing file'), so the checker is live for the page; restored.

Defect (inherited from #9107): the new table sums to 25 (8+6+4+3+2+1+1) but the prose and the issue both say "24 candidate call sites". One of the two numbers is wrong; the doc now encodes the mismatch in two places here plus #9107.

Merge state: git merge-tree --write-tree gh/main HEAD clean; branch is 1 commit behind main (README git-mirror line), no rebase needed. No duplicate in this batch so far.

No game data. AI-assisted.

@sds-228 sds-228 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for documenting these call sites. One count needs reconciling: the prose says there are 24 candidate call sites, but the table rows add up to 25. Since recording these counts is the point of the change, please correct the total or the mistaken row. The export list, strides and cross-references otherwise match the existing docs, and the count attributed to the source issue reproduces there too.

AI-assisted (OpenCode).

@memorypressure

Copy link
Copy Markdown

Heads tested: PR head bd7800c, main 5d74c27; merged tree 6eb62d0fd (clean merge). Docs-only; docs checkers on the merged tree match clean main exactly (the three failing suites are pre-existing main-side reds: #6691, #6579, and the undocumented LEONIDA_TLS_GA_PATCH). Citation class is good: #9107 names the exe SHA-256, the method (import-thunk resolution + direct-call/tail-jump byte-pattern scan, counts as bounds) and instruction-level measurements (xor r8d,r8d; the 0x50 lea/shl sequence) — not a bare "measured on the exe". bvh.md's four-rehydrate/six-build counts match the table. Nit (#7095 class): the table cells sum to 25 (8+6+4+3+2+1+1) while the prose says 24 sites — the discrepancy is inherited verbatim from #9107, whose own table has the same cells and the same "24 sites" sentence; worth reconciling against the scan before it calcifies in docs. Flags: NO-CI — no checks reported on the branch (final poll too). docs/d3d12_vulkan.md is also touched by open #7078/#6964/#7110 and batchmate #9419; all pairwise merges clean. AI-assisted: yes. Tested on Linux (RTX 5080 host), CPU-only run.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants