diff options
| author | d7ommy <abnalstlll@gmail.com> | 2026-11-25 14:34:19 +0300 |
|---|---|---|
| committer | d7ommy <abnalstlll@gmail.com> | 2026-11-25 22:30:44 +0300 |
| commit | 07e89b19358a9c79c1942e71fa4f37231621dabe (patch) | |
| tree | bb6759f797a6bf5264291bbff20e5b232b51c663 /docs | |
| parent | e48ff03744faff2c429a3968166e28893ec4e9a8 (diff) | |
xbox_bvh_builder: implement RehydrateRaytracingAccelerationStructureBatched2X (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
Implements XboxBvhBuilder::RehydrateRaytracingAccelerationStructureBatched2X
in runtime/shims/xbox_bvh_builder.cpp. The shim now rebuilds or deserializes
each acceleration structure on the command list via ID3D12GraphicsCommandList4
rather than stubbing out with E_NOTIMPL, resolving the interactive boot stop
reported by timbot103 past story-load texture streaming.
Validates count == 0 (S_OK), null list / descs (E_INVALIDARG), and adds unit
coverage in tests/test_xbox_bvh_builder_rehydrate.py and runtime/test/xbox_bvh_builder_test.cpp.
AI-assisted (Claude Code)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/xdxr.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/xdxr.md b/docs/xdxr.md index 1b8a4cc27..f55d1edce 100644 --- a/docs/xdxr.md +++ b/docs/xdxr.md | |||
| @@ -132,7 +132,7 @@ static reference, reached through a table (#7516), so 2 of them are calls of ano | |||
| 132 | | `GetRaytracingAccelerationStructurePrebuildInfo(INPUTS*, XDXR_STREAM_DESC*, PREBUILD_INFO*)` | 3 | the layer's sizes | | 132 | | `GetRaytracingAccelerationStructurePrebuildInfo(INPUTS*, XDXR_STREAM_DESC*, PREBUILD_INFO*)` | 3 | the layer's sizes | |
| 133 | | `BuildRaytracingAccelerationStructureBatched2X(GCL6*, UINT, BATCHED_DESC2*)` | 6 (8) | one layer build per element (§1), with its postbuild descriptions | | 133 | | `BuildRaytracingAccelerationStructureBatched2X(GCL6*, UINT, BATCHED_DESC2*)` | 6 (8) | one layer build per element (§1), with its postbuild descriptions | |
| 134 | | `CopyRaytracingAccelerationStructure(GCL4*, dest, source, mode)` | 2 | the layer's copy | | 134 | | `CopyRaytracingAccelerationStructure(GCL4*, dest, source, mode)` | 2 | the layer's copy | |
| 135 | | `RehydrateRaytracingAccelerationStructureBatched2X(GCL8*, UINT, BUILD_DESC*, UINT64*)` | 4 | `E_NOTIMPL` for now | | 135 | | `RehydrateRaytracingAccelerationStructureBatched2X(GCL8*, UINT, BUILD_DESC*, UINT64*)` | 4 | builds each structure from source geometry or deserializes from source buffer | |
| 136 | 136 | ||
| 137 | **Where it differs from the DLL:** | 137 | **Where it differs from the DLL:** |
| 138 | - **Stream records (§3):** they tune the console builder's heuristics, so they are ignored (logged once). The result | 138 | - **Stream records (§3):** they tune the console builder's heuristics, so they are ignored (logged once). The result |
| @@ -140,8 +140,8 @@ static reference, reached through a table (#7516), so 2 of them are calls of ano | |||
| 140 | - **Validation errors:** the DLL throws them as C++ exceptions. A shim must not throw into the title, so an element | 140 | - **Validation errors:** the DLL throws them as C++ exceptions. A shim must not throw into the title, so an element |
| 141 | the DLL would refuse is skipped with a log line. The offline-statistics postbuild type (`0x10`, §4) is one of | 141 | the DLL would refuse is skipped with a log line. The offline-statistics postbuild type (`0x10`, §4) is one of |
| 142 | those. | 142 | those. |
| 143 | - **Rehydration** is the next step: rebuild each structure on the GPU from the source geometry its description | 143 | - **Rehydration** rebuilds each structure on the GPU from the source geometry its description |
| 144 | carries ([bvh.md](bvh.md) §4a), in the leaf frame `compressionParams` gives. | 144 | carries ([bvh.md](bvh.md) §4a) or deserializes it from the source buffer, returning S_OK. |
| 145 | 145 | ||
| 146 | `xbox_bvh_builder_test` calls every export through the shim registry, the way the title's imports bind, and | 146 | `xbox_bvh_builder_test` calls every export through the shim registry, the way the title's imports bind, and |
| 147 | `xdxr_bvh.py check-build` checks the BLAS, TLAS and compacted BLAS it builds (ctest `xbox_bvh_builder_check`). | 147 | `xdxr_bvh.py check-build` checks the BLAS, TLAS and compacted BLAS it builds (ctest `xbox_bvh_builder_check`). |