Repository navigation
bvh.md: the dehydrated BLAS rehydrate, with their packing and source geometry (PROC-109) - #2034
Merged
ItsNotRexed merged 2 commits intoNov 22, 2026
Conversation
…geometry The packs are XboxBvhBuilder's rehydrate inputs: RehydrateRaytracingAccelerationStructureX returns S_OK on a PC (CPU path, buffers mapped at their GPU virtual addresses), and a CPU model of the packing gives the same bytes on 8 samples. New section 4a records the element and box packing, the leaf frame from compressionParams, the instance descriptor's 3x4 as the geometry transform, where the triangles come from (drawables in levels.rpf, minus the geometries of two shaders), and four checks that verify a geometry match. The two shader name hashes stay out per section 8.
Contributor
|
Code read + CPU tests, 84c7067: pass ( |
1 of 2 tasks
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PROC-109. Claim: #1902 (comment) (new item, docs only).
docs/bvh.md§4 left open whether thebvh4packs areXboxBvhBuilder's rehydrate inputs, and §3.1 left the dehydrated packing open. This settles both. It adds §4a, "Rehydration and source geometry (measured)":RehydrateRaytracingAccelerationStructureXruns on the CPU path: buffers are mapped at their GPU virtual addresses, and it makes no device calls. It returnsS_OKon the packs.+-infbox16 overflow. It also covers the leaf frame decoded fromcompressionParams. A CPU model built on this layout gives the same bytes as the library on 8 BLAS, from 384 bytes to 2.5 MB.+0x50is the geometry transform:x' = M * x.levels.rpf. A leaf's geometry index counts only the geometries whose shader the BVH keeps. Two shaders are left out. Their name hashes stay out of the repository per §8, and the doc says how to recover them locally.The tools that measured this are in a fork of another project, GPL-2.0-only:
wildheathen/americas-recomp, branchfeat/bvh-rehydrate-tools. No code from it is in this PR, and only layouts, offsets and counts are reproduced.Testing: docs only. Run on this branch:
test_docs_links,test_docs_list_items,test_docs_repo_pathsandtest_xdxr_bvhpass.test_docs_design_rowsfails the same way onmain, ondesign.md,README.mdandtesting.md, none of which this PR touches.The measurements ran on Windows 11 with the retail package, on the CPU only; no GPU was involved.
AI-assisted.