Skip to content

docs/design.md: the --pc-tail-ubo row counts 261 shaders / 158 tail readers and the harnesses bind the block - #5599

Open
evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/10-pctail-doc-row
Open

evilclanker9000 wants to merge 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/10-pctail-doc-row

Conversation

@evilclanker9000

@evilclanker9000 evilclanker9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5516.

The last sentence of the --pc-tail-ubo row in docs/design.md was stale in two ways:

  • It said 185 hand-written GPU test shaders pass spirv-val with the flag, 109 of them reading the tail. Re-measured on this rebased tree: 261 shaders, 158 of them with pc_tail in the index.
  • It called the GPU harness binding a follow-up, while vk_harness, vk_compute_test, vk_store_test, vk_texture_test, vk_sampler_test and vk_bindless_test already include runtime/test/vk_pc_tail.h and call leonida::vk_test::pc_tail_requested() (docs/testing.md says the same). Only the D3D12 layer is still a follow-up; runtime/src/d3d12_* has no pc_tail reference on main.

Test

Docs-only change; the numbers were measured in this checkout before the edit:

$env:LEONIDA_PC_TAIL_UBO='1'; python -I runtime/test/shaders/build.py Z:\Claude\Leonida-build\deepseek10\pctail2
261 shaders: 261 translated, 261 pass spirv-val
not built (need a DXBC container with signatures): ms_clip, ms_f16_pack, ms_tri, ms_v5_workgroup, ms_w64x_ballot, ms_wave_info_s3

python -c "import json; j=json.load(open(r'...\spirv\index.json')); print(len(j), sum(1 for v in j.values() if 'pc_tail' in v))"
261 158

python -I tests/test_docs_table_rows.py passes (2 tests, OK) and python -I tests/test_design_contract_rows.py passes (4 tests, OK). GPU: none needed.

Notes

I listed the six harnesses by name instead of saying "the GPU harnesses", so the row matches docs/testing.md and can be checked with a grep. The D3D12 sentence is kept because the layer that binds the block is still PR #2402, not main. The PR was rebased onto upstream/main (561b65a83) after the same row changed there; the driver list from that change is kept as it is and only the counts and the harness sentence are mine. The counts grew from 242/147 to 261/158 because more fixtures have merged since the first measurement, so I re-measured rather than reusing them.

AI-assisted.

…eaders and the harnesses bind the block (ItsNotRexed#5516)

The row said 185 hand-written GPU test shaders, 109 of them reading the tail, and called the GPU harness binding a follow-up. Re-measured on the rebased tree with LEONIDA_PC_TAIL_UBO=1 and runtime/test/shaders/build.py: 261 of 261 translate and pass spirv-val, 158 record pc_tail in the index. The six GPU harnesses include runtime/test/vk_pc_tail.h; only the D3D12 layer is still a follow-up.
@evilclanker9000
evilclanker9000 force-pushed the deepseek/10-pctail-doc-row branch from 110818a to c59fd28 Compare November 23, 2026 11:41
@evilclanker9000 evilclanker9000 changed the title docs/design.md: the --pc-tail-ubo row counts 242 shaders / 147 tail readers and the harnesses bind the block docs/design.md: the --pc-tail-ubo row counts 261 shaders / 158 tail readers and the harnesses bind the block Nov 23, 2026
@cynbun

cynbun commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Reviewed c59fd28 (claims checked against main 561b65a, docs tests on Linux, Python 3.14.8): pass

AI-assisted (Claude Code).

@kapitche

Copy link
Copy Markdown
Contributor

Tested c59fd28 merged with main 561b65a on Linux (WSL2, Python 3.12.16, -I): pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/design.md: the --pc-tail-ubo row counts 185 shaders / 109 tail readers, and calls the GPU harness binding a follow-up; both are stale

3 participants