[PR #1087] [MERGED] docs: the BVH builder's 52 programs all translate, and pipeline-state streams are implemented (DOC-BVH-BUILDER-52) #1122

Closed
opened 2026-11-26 20:20:09 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1087
Author: @milk4sale
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: docs/d3d12-builder-52


📝 Commits (2)

  • 60e15c8 docs: the BVH builder's 52 programs all translate, and pipeline-state streams are implemented (DOC-BVH-BUILDER-52)
  • 767479b Merge main into docs/d3d12-builder-52

📊 Changes

3 files changed (+37 additions, -40 deletions)

View changed files

📝 docs/README.md (+1 -1)
📝 docs/d3d12_vulkan.md (+20 -23)
📝 docs/embedded_shaders.md (+16 -16)

📄 Description

Claimed in the coordination issue as: DOC-BVH-BUILDER-52 (claim)

What and why

Three docs say 51 of the 52 XboxBvhBuilder.dll programs translate and one rule, buffer_store_short, is still missing. That rule has been in tools/rdna2spirv.py since 8f208d09a, and docs/embedded_shaders.md section 7 already records "52 of 52" for main 8575d36e, so the pages contradict themselves and each other.

  • docs/d3d12_vulkan.md: the eight passages that give the count now say all 52 translate and pass spirv-val (sections 4.8 and 7.2, the M6 row, open question 7, the risks list, Appendix A.2). Section 7.2 held the same paragraph twice, the second copy starting mid-sentence; it is one paragraph again. The Appendix A.2 measurement keeps its numbers and says what changed since.
  • docs/d3d12_vulkan.md section 3.6: one sentence said pipeline-state streams (CreatePipelineState) "are not implemented yet", 50 lines above "Implemented (D3D-29): pipeline state streams, mesh PSOs and DispatchMesh". It now points there, and says an unknown subobject type is E_INVALIDARG, as parse_pipeline_stream answers and that section states.
  • docs/embedded_shaders.md: sections 4, 5 and 7: the result table, the two blocker tables, "What this changes" and the build step's report line. The dated measurements of 51 modules (the creation table, the vk_pipeline_check runs) stay as they are.
  • docs/README.md: the index row for embedded_shaders.md.

Left alone on purpose: open question 20's row in d3d12_vulkan.md carries the same count, but #381 rewrites that line, so it needs the number there. The status paragraph at the top, the "Known gaps" paragraphs and the descriptor-path gaps are also stale and are already handled by #424/#429, #381 and #513.

Tested

  • Measured on main 3aa975421 with my own 1.0.2.1 package, using the four tools the build step runs (pe_shader_containers.py --extract, fssm_unpack.py, shader_disasm.py --mcpu gfx1013, rdna2spirv.py --max-shared-memory 32768): 52 containers extracted, 52 FSSM blobs, 52 translated, and spirv-val --target-env vulkan1.2 accepts all 52 modules, both natively and with --wave64-emulate. LLVM 23.1.4. Counts only; the outputs stayed outside the repository.
  • make_game.py's shaders stage, run from main on that package earlier the same day (2026-11-24, about 07:54 UTC), reported 52 of 52 XboxBvhBuilder.dll programs translated.
  • The pipeline-stream sentence was checked against ID3D12Device2::CreatePipelineState and parse_pipeline_stream in runtime/shims/d3d12_vulkan_device.cpp; d3d12_mesh_test builds an MS + PS and a VS + PS PSO from streams.
  • Every tests/test_docs_*.py passes, python -I scripts/check_no_game_data.py on the three files, git diff --check.
  • git merge-tree against the 96 open pull requests that touch any of the three files: 34 already conflict with main by themselves; none conflicts because of this change. It also merges with #1055.

Not run: the creation test on the Vulkan device (bvh_builder_test with LEONIDA_BVH_DEVICE=vulkan); the statement that all 53 pipelines are created there is embedded_shaders.md section 7's measurement on a Radeon, which this change only cites.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🤖 Generated with Claude Code


🔄 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/1087 **Author:** [@milk4sale](https://github.com/milk4sale) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `docs/d3d12-builder-52` --- ### 📝 Commits (2) - [`60e15c8`](https://github.com/ubiquitarianism/leonida/commit/60e15c855f73d2ef12cc30ce22c3f68bb0dc81dc) docs: the BVH builder's 52 programs all translate, and pipeline-state streams are implemented (DOC-BVH-BUILDER-52) - [`767479b`](https://github.com/ubiquitarianism/leonida/commit/767479b809c13064fa5429a6ec8bcef7c4abb249) Merge main into docs/d3d12-builder-52 ### 📊 Changes **3 files changed** (+37 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -1) 📝 `docs/d3d12_vulkan.md` (+20 -23) 📝 `docs/embedded_shaders.md` (+16 -16) </details> ### 📄 Description Claimed in the coordination issue as: DOC-BVH-BUILDER-52 ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140281473)) ### What and why Three docs say 51 of the 52 `XboxBvhBuilder.dll` programs translate and one rule, `buffer_store_short`, is still missing. That rule has been in `tools/rdna2spirv.py` since `8f208d09a`, and `docs/embedded_shaders.md` section 7 already records "52 of 52" for `main` `8575d36e`, so the pages contradict themselves and each other. - **`docs/d3d12_vulkan.md`:** the eight passages that give the count now say all 52 translate and pass `spirv-val` (sections 4.8 and 7.2, the M6 row, open question 7, the risks list, Appendix A.2). Section 7.2 held the same paragraph twice, the second copy starting mid-sentence; it is one paragraph again. The Appendix A.2 measurement keeps its numbers and says what changed since. - **`docs/d3d12_vulkan.md` section 3.6:** one sentence said pipeline-state streams (`CreatePipelineState`) "are not implemented yet", 50 lines above "Implemented (D3D-29): pipeline state streams, mesh PSOs and `DispatchMesh`". It now points there, and says an unknown subobject type is `E_INVALIDARG`, as `parse_pipeline_stream` answers and that section states. - **`docs/embedded_shaders.md`:** sections 4, 5 and 7: the result table, the two blocker tables, "What this changes" and the build step's report line. The dated measurements of 51 modules (the creation table, the `vk_pipeline_check` runs) stay as they are. - **`docs/README.md`:** the index row for `embedded_shaders.md`. Left alone on purpose: open question 20's row in `d3d12_vulkan.md` carries the same count, but #381 rewrites that line, so it needs the number there. The status paragraph at the top, the "Known gaps" paragraphs and the descriptor-path gaps are also stale and are already handled by #424/#429, #381 and #513. ### Tested - Measured on `main` `3aa975421` with my own 1.0.2.1 package, using the four tools the build step runs (`pe_shader_containers.py --extract`, `fssm_unpack.py`, `shader_disasm.py --mcpu gfx1013`, `rdna2spirv.py --max-shared-memory 32768`): 52 containers extracted, 52 `FSSM` blobs, 52 translated, and `spirv-val --target-env vulkan1.2` accepts all 52 modules, both natively and with `--wave64-emulate`. LLVM 23.1.4. Counts only; the outputs stayed outside the repository. - `make_game.py`'s shaders stage, run from `main` on that package earlier the same day (2026-11-24, about 07:54 UTC), reported `52 of 52 XboxBvhBuilder.dll programs translated`. - The pipeline-stream sentence was checked against `ID3D12Device2::CreatePipelineState` and `parse_pipeline_stream` in `runtime/shims/d3d12_vulkan_device.cpp`; `d3d12_mesh_test` builds an MS + PS and a VS + PS PSO from streams. - Every `tests/test_docs_*.py` passes, `python -I scripts/check_no_game_data.py` on the three files, `git diff --check`. - `git merge-tree` against the 96 open pull requests that touch any of the three files: 34 already conflict with `main` by themselves; none conflicts because of this change. It also merges with #1055. Not run: the creation test on the Vulkan device (`bvh_builder_test` with `LEONIDA_BVH_DEVICE=vulkan`); the statement that all 53 pipelines are created there is `embedded_shaders.md` section 7's measurement on a Radeon, which this change only cites. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:09 +01:00
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#1122
No description provided.