docs: the BVH builder's 52 programs all translate, and pipeline-state streams are implemented (DOC-BVH-BUILDER-52) #1087
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1087
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1087/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@milk4sale on GitHub · 2026-11-24 18:11 UTC · original
milk4sale:docs/d3d12-builder-52→main· +37 −40 · 3 files · 2 commits · merged 2026-11-25 01:21 UTCClaimed in the coordination issue as: DOC-BVH-BUILDER-52 (claim)
What and why
Three docs say 51 of the 52
XboxBvhBuilder.dllprograms translate and one rule,buffer_store_short, is still missing. That rule has been intools/rdna2spirv.pysince8f208d09a, anddocs/embedded_shaders.mdsection 7 already records "52 of 52" formain8575d36e, 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 passspirv-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.mdsection 3.6: one sentence said pipeline-state streams (CreatePipelineState) "are not implemented yet", 50 lines above "Implemented (D3D-29): pipeline state streams, mesh PSOs andDispatchMesh". It now points there, and says an unknown subobject type isE_INVALIDARG, asparse_pipeline_streamanswers 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, thevk_pipeline_checkruns) stay as they are.docs/README.md: the index row forembedded_shaders.md.Left alone on purpose: open question 20's row in
d3d12_vulkan.mdcarries 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
main3aa975421with 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, 52FSSMblobs, 52 translated, andspirv-val --target-env vulkan1.2accepts 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 frommainon that package earlier the same day (2026-11-24, about 07:54 UTC), reported52 of 52 XboxBvhBuilder.dll programs translated.ID3D12Device2::CreatePipelineStateandparse_pipeline_streaminruntime/shims/d3d12_vulkan_device.cpp;d3d12_mesh_testbuilds an MS + PS and a VS + PS PSO from streams.tests/test_docs_*.pypasses,python -I scripts/check_no_game_data.pyon the three files,git diff --check.git merge-treeagainst the 96 open pull requests that touch any of the three files: 34 already conflict withmainby themselves; none conflicts because of this change. It also merges with #1055.Not run: the creation test on the Vulkan device (
bvh_builder_testwithLEONIDA_BVH_DEVICE=vulkan); the statement that all 53 pipelines are created there isembedded_shaders.mdsection 7's measurement on a Radeon, which this change only cites.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
@abnalstlll-byte on GitHub · 2026-11-24 18:49 UTC · original · approved these changes
Reviewed and verified. Resolves stale documentation across docs/d3d12_vulkan.md, docs/embedded_shaders.md, and docs/README.md, correctly aligning with current main where all 52 XboxBvhBuilder.dll shader programs translate and pass spirv-val, and pipeline-state streams (CreatePipelineState) are fully implemented. 100% clean-room.
@aslan2142 on GitHub · 2026-11-25 01:21 UTC · original
Merged. Thank you, @milk4sale: the three pages now agree with each other and with the translator on
main.claiming: DOC-BVH-BUILDER-52in #14 at 18:11:10 UTC, 47 s before this PR opened, by the author and unedited: valid. No other claim or open PR for the same change.buffer_store_shortis onmainsince8f208d09a, and section 7 ofdocs/embedded_shaders.mdalready recorded 52 of 52 at8575d36e. The count needs the game files, so no test asserts it; an independent measurement in #14 on a second Radeon also reports 52 translated and 52 valid.buffer_store_short, consistent with section 4.ID3D12Device2::CreatePipelineStatecallsparse_pipeline_streaminruntime/shims/d3d12_vulkan_device.cpp, whosedefault:case logs the type and returnsE_INVALIDARG;d3d12_mesh_testandd3d12_state_sweep_testcreate pipeline states from streams. The sentence this replaces was out of date.mainb4b7756e8+767479b80: the semantic suite passes (476 files, 6,223 tests, 0 files failed); the 14 docs and writer tests pass;check_no_game_data.pyis clean on the 3 changed files.Two older statements stay for a follow-up: the status paragraph at the top of
docs/d3d12_vulkan.mdstill says streams are not implemented, and open question 20 still says 51 of 52.AI-assisted (Claude Code, Claude Opus 5.5).
@milk4sale on GitHub · 2026-11-25 02:55 UTC · original
Local stand-in for this pull request's CI, which has been queued here since 22:31 UTC (about 580 runs waiting).
Tested:
767479b80merged withmainb4b7756e8(2026-11-25 01:13 UTC), in one tree together with #1089, #1090, #1114, #413, next tomainalone. The trees came fromgit merge-tree, and nothing was pushed. Each job used the workflow's own selection fromci.ymlandruntime.yml.main+ the five pull requestsmainalonechecksteps: compileall,make_game.py --helpstdlib-tests-linux(every standalone file, run to the end)translator-tests(pytest files)viewer-testssemantic-testslinux-gpu-tools: ctestlinux-gpu-tools:run_gpu_tests.py, plain,LEONIDA_W64_EMULATE=1 --filter cs_,LEONIDA_BARY_FALLBACK=1no-game-data:scripts/check_no_game_data.pyon this pull request's filesDocs only: the
tests/test_docs_*.pyloop and every other standalone file that readsdocs/pass.The two pytest failures are
main's:tests/test_translate.pyon the text-only fixturecs_dpp_cmp.asm(test_gpu_samples_translate_and_validate,test_wave64_emulate_uses_no_subgroup_ops). With #1375 applied, both pass.Not covered: the Windows and macOS jobs.
Setup: Linux (CachyOS), Python 3.14.10 (CI uses 3.12), llvm-mc 23.1.4 (CI uses 19), Node 26.13.1. GPU suite on lavapipe from Mesa 26.2.6 with
GALLIUM_OVERRIDE_CPU_CAPS=avx, the code path of CI's runners, which lack AVX-512; and on an RTX 4070 Ti, NVIDIA 620.70.06.AI-assisted (Claude Code).