upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 19:39:04 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 19:39:04 -0600
commite7280be1666f8ed3706a533be527be5bb8d442c4 (patch)
treefbe80cf4b268ec5e14d4839be4bb3b79f39e90d3 /runtime/test/vk_queue_query_sync_test.cpp
parent431ceba4f4a55c69c26fcf0e36fd83e86e1b9a32 (diff)
xbox_bvh_builder: scan every postbuild description for 0x10; rehydrate scratch regions cannot wrap
From kevincommits' Finding 19 (item 3) in #1608. - builder_build_batched2x kept 16 postbuild descriptions and then left the loop, so an offline-statistics (0x10) description at index 17 or later was never seen: the element was built instead of skipped, as the DLL would refuse it. The rest past 16 are still dropped (logged once) but scanned. - builder_rehydrate_batched2x aligned each element's scratch size with (size + 255) / 256 * 256 and summed them without a bound, so a size near 2^64 wrapped to a small region or a small total, making the shared scratch buffer too small and the regions overlap. Such an element now gets no region (and is skipped as one without scratch, logged once). Both rules move into shims/xbox_bvh_builder_rules.h (filter_postbuild, add_scratch_region) with a CPU test, xbox_bvh_builder_rules: 0x10 at indices 0, 5, 16, 17 and 19 of 20, and regions near 2^64. The old loop and arithmetic fail 5 of its checks. xbox_bvh_builder (GPU) and its BVH check still pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions