diff options
| author | d7ommy <abnalstlll@gmail.com> | 2026-11-25 19:48:34 +0300 |
|---|---|---|
| committer | d7ommy <abnalstlll@gmail.com> | 2026-11-25 22:30:44 +0300 |
| commit | b352aa9be9789d52a9f86246fb2241cdc08cd38c (patch) | |
| tree | be2e0b44f46c64b94d638048be52939d8d254f98 /docs | |
| parent | cb1cb86e9298de6f64f76fb5c627c96df9d3ffc9 (diff) | |
xbox_bvh_builder: supply scratch buffer and address review feedback (RT-XDXR-BVH-REHYDRATE-BATCHED2X)
- Fix log_once call signature at line 268 (passes flag, text without format args).
- Do not copy source_data into SourceAccelerationStructureData to avoid unwanted refit
on update paths (d3d12_vulkan_device.cpp:2639).
- Allocate and supply scratch buffer via builder_ensure_scratch when the title passes
ScratchAccelerationStructureData = 0 (docs/xdxr.md §6), avoiding command list poisoning.
- Retain the leaf-frame note (compressionParams, docs/bvh.md §4a) in comments and docs.
- Remove stale deserialize references in test comments and update test coverage.
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/xdxr.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/xdxr.md b/docs/xdxr.md index 0d93f250e..a919967b2 100644 --- a/docs/xdxr.md +++ b/docs/xdxr.md | |||
| @@ -141,12 +141,14 @@ static reference, reached through a table (#7516), so 2 of them are calls of ano | |||
| 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 (`RehydrateRaytracingAccelerationStructureBatched2X`):** Rebuilds each structure on the GPU from | 143 | - **Rehydration (`RehydrateRaytracingAccelerationStructureBatched2X`):** Rebuilds each structure on the GPU from |
| 144 | the source geometry its description carries ([bvh.md](bvh.md) §4a). What the 4th parameter | 144 | the source geometry its description carries ([bvh.md](bvh.md) §4a), in the leaf frame `compressionParams` gives. |
| 145 | (`const UINT64* source_data`, mangling `PEB_K`) conveys is a **hypothesis**: it points to the array of source | 145 | What the 4th parameter (`const UINT64* source_data`, mangling `PEB_K`) conveys is a **hypothesis**: it points to |
| 146 | buffer addresses for offline dehydrated console streams (e.g. `SourceAccelerationStructureData` or rehydration inputs). | 146 | the array of source buffer addresses for offline dehydrated console streams (e.g. rehydration inputs). |
| 147 | When geometry is provided (`NumDescs > 0`), the shim issues `BuildRaytracingAccelerationStructure` to construct | 147 | When geometry is provided (`NumDescs > 0`), the shim issues `BuildRaytracingAccelerationStructure` to construct |
| 148 | traversable GPU BVH nodes. When `source_data` is supplied without geometry, the shim logs once and refuses with | 148 | traversable GPU BVH nodes. The title passes `ScratchAccelerationStructureData = 0` (measured in §6), so the shim |
| 149 | `E_NOTIMPL`: offline console dehydrated streams cannot be directly deserialized by PC Vulkan/D3D12 drivers | 149 | supplies its own scratch buffer sized via `GetRaytracingAccelerationStructurePrebuildInfo` to avoid command list |
| 150 | rejection. When `source_data` is supplied without geometry, the shim logs once and refuses with `E_NOTIMPL`: | ||
| 151 | offline console dehydrated streams cannot be directly deserialized by PC Vulkan/D3D12 drivers | ||
| 150 | ([bvh.md](bvh.md) §4/§4a). Empty structures (`NumDescs == 0` without source) are logged and skipped. | 152 | ([bvh.md](bvh.md) §4/§4a). Empty structures (`NumDescs == 0` without source) are logged and skipped. |
| 151 | 153 | ||
| 152 | `xbox_bvh_builder_test` calls every export through the shim registry, the way the title's imports bind, and | 154 | `xbox_bvh_builder_test` calls every export through the shim registry, the way the title's imports bind, and |