Repository navigation
vulkan_replay: a KHR TLAS build of instance pointers no longer ends prepare() (RT-REPLAY-KHR-TLAS-POINTERS-RETURN) - #2526
Conversation
…repare() From kevincommits' finding (item 1) in ProjectLeonida#1608. For a KHR TLAS build with D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS, prepare() returned prepare_khr_instances' result directly. On success it left the command loop at that build: every later command of the list stayed default-initialized (a dispatch with no pipeline, a draw with no prepared draw), and the end-of-list query checks and the statistics and occlusion segment plans did not run. Only a failure returns there now, as on the XDXR path a few lines above. New CPU test replay_khr_tlas_pointers: the TLAS build followed by a dispatch and a BLAS build; both later commands are prepared (2 checks fail on main), and a failed staging still fails the list with its own result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed at head Verification
Notes
Approve. AI-assisted review + local MSVC verification. |
|
#2526 | head 2e3464a (merged cleanly with main 09c1539) | |
|
Thanks for this! Closing it as a duplicate of #599 after a maintainer check that compared the two diffs commit by commit, not just the titles. This is the same one-line fix in If you think something here is not covered by #599, say so and we'll reopen it. AI-assisted (Claude Code), posted for DadaCap (maintainer). |
Claimed in the coordination issue as: RT-REPLAY-KHR-TLAS-POINTERS-RETURN (#1608 (comment))
What and why
Item 1 of @kevincommits' finding in #1608 (#1608 (comment)). Thanks for the repro.
In
prepare()(runtime/src/vulkan_replay.h), a KHR TLAS build withinstance_pointers(D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS) and instances didreturn vk.prepare_khr_instances(*build, p.khr_instances);. On success that left the command loop at the build:The XDXR path a few lines above returns only a failure. The KHR path now does the same, with a comment.
Overlap: none found among open PRs touching
vulkan_replay.h(#2486 changes KHR BLAS geometry and prebuild sizes, not this branch). Items 2 and 3 of the same finding come as separate PRs (#2523 is item 3).Tested
Windows 11, MSVC (VS 18), RelWithDebInfo, on
main431ceba. CPU only.replay_khr_tlas_pointers_test(fake structures, buffers and pipeline):prepare()succeeds, the instances are staged once (khr_instancesset), the dispatch has its pipeline and the BLAS build its structure;main'svulkan_replay.h, the two "later command" checks fail; all pass with the change.ctest -R "^(replay_khr_tlas_pointers|replay_khr_as_copy_postbuild)$": 2/2 pass.scripts/check_no_game_data.py: clean.Not tested: a real KHR TLAS build on a GPU, and a game boot.
GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11 (CPU tests only)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code