upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-27 16:23:56 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 16:23:56 -0500
commitcce11849ad2a7461cf2bd1b72d72c19a36773213 (patch)
tree1f828ca0ee2070307eb365191b5020652d8f7fb8 /runtime/test/cpp_unwind_test.cpp
parentd06b2be257568d8336a166c01bb46ef9ae41455d (diff)
Pipelines: which root SRVs a shader reads with a bias is known with the pipeline, not asked at every draw
`State::bind` went through a stage's user data (up to 64 words) for every root SRV of every draw, to see whether the shader adds the bytes its raw view begins early by (a word of the kind `USER_VIEW_BIAS` for the title's root parameter). The answer depends on the shader alone: `Stage` has it as a bit for each of its root SRVs (`root_srvs_biased`), worked out when the pipeline is made (`biased_root_srvs`), and the draw reads the bit (`Stage::root_srv_biased`). Past 64 root SRVs, which no root signature has room for, the stage asks the user data as before. Same answers; a pure saving. What it is aimed at (CPU profile of 2026-11-27, Series X profile, about 9,500 draws a frame, 1,600 root SRVs recorded a frame and more bound and left out by the state cache): the part of `State::bind` that is its own (listed under `prepare_for`, 32 %), on the threads that record lists. A small part of it. From maren-halv/VIctory-DXR e0e549a ("perf: sync 40+ FPS raster wins (9b958c9) ..."), GPL-3.0: its `Stage::root_srv_biased` mask, the same idea and layout, written for this tree (the mask is made from the stage's own list of root SRVs, with a function a test can call, and the stage falls back to the scan past 64). New test `pipeline::host::tests::the_root_srvs_read_with_a_bias_are_those_a_draw_found`: the mask against the scan a draw did, for words of other kinds and other parameters, no words, no root SRVs, and more than 64. Checked: `cargo check --profile diag -p leonida --features diagnostics,mimalloc` (the 10 warnings of leonida-gpu from before); the test passes. Not run in the game. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions