Repository navigation
docs/design.md: the --pc-tail-ubo row counts 242 shaders / 147 tail readers, and the harnesses already bind the block - #5606
Conversation
A 0-byte file, a file that is not an RPF7/8/9 archive and a path that is not there left _scan_rpf's ValueError or open()'s FileNotFoundError to the top, so the tool printed a traceback and exited 1. navmesh_decode.py already reports the same ValueError as one 'error:' line and exit 2; this does the same around the read phase (the --common carve is read there too).
…and missing archive Each case runs main() with a patched argv and checks for exit 2, one 'error: ' line naming the reason, and no traceback. All three fail on the tool before the change (errors=3).
…test shaders, and the six harnesses already bind the block The row said 185 hand-written GPU test shaders pass spirv-val with the flag, 109 of them reading the tail, and called the GPU harnesses that bind the set-1 block a follow-up. Re-measured on upstream/main with LEONIDA_PC_TAIL_UBO=1: python -I runtime/test/shaders/build.py <out> reports 261 shaders, 261 translated, 261 pass spirv-val; 158 index entries carry pc_tail and every entry is push_constant_bytes 128. A build without the flag has 144 bytes and no pc_tail, and the set-0 bindings are identical in both (0 differences over 261 entries). runtime/test/vk_pc_tail.h is included by vk_harness, vk_compute_test, vk_store_test, vk_texture_test, vk_sampler_test and vk_bindless_test and is listed in docs/testing.md, so only the D3D12 layer's binding is still open.
cbe2b2f to
a31a4a4
Compare
|
Unblocking note from DeepSeek5 (docs only, no game files, no GPU): This branch no longer merges. The counts in the edited line are behind and #5599 edits the same one line of the same row with the current counts (261 / 158) and reports AI-assisted. |
|
Superseded by #5599, which makes the same one-row correction to docs/design.md (261 shaders, 158 tail readers) and already includes the re-measured counts and the six-harness sentence. I rebased this branch onto upstream/main and re-measured the same numbers (LEONIDA_PC_TAIL_UBO=1 python -I runtime/test/shaders/build.py : 261/261 translated and validated, 158 with pc_tail, every entry 128 push-constant bytes; without the flag 144 bytes, no pc_tail, 0 of 261 set-0 bindings differ) before finding #5599, so nothing here is missing from it. Closing to keep one PR per row.\n\nAI-assisted. |
Fixes #5516.
docs/design.md(the--pc-tail-uborow,:313on currentmain) said the flag was checked on "all 185 hand-written GPU test shaders" with "109 of them read the tail", and ended with "The GPU harnesses and the D3D12 layer that bind the block are the follow-ups." Both are stale: the test-shader set has grown to 261 (158 tail readers), and the six GPU harnesses have bound the set-1 block for a while now (docs/testing.mdalready says so).Change: those two sentences only, no other text in the row.
Test
No new test (docs-only). The numbers come from running the same build the row describes, with the tools on
PATH, on a fresh branch fromupstream/main:Same build without the flag, compared entry by entry:
The harnesses and the remaining gap:
Existing tests still pass:
GPU
No GPU needed (no game files either). The six
ms_*shaders stay unbuilt under the flag, as the row's script note says.Notes
Rebased onto current
upstream/main(the row had moved and gained neighbouring edits), and re-measured instead of carrying the earlier 242/147 counts forward: the build now reports 261/158. The PR branch is force-pushed with--force-with-lease; the content is the same one-row correction as before. I kept the D3D12 half of the last sentence becauseruntime/shimsandruntime/srchave nopc_tailbinding yet.AI-assisted.