docs: fix stale counts and follow-up claims (OLD-5516, OLD-5517, OLD-5519, OLD-5521) #30

Merged
ItsMrDubey merged 5 commits from upstream-pr/30 into main 2026-11-24 02:26:56 +00:00
ItsMrDubey commented 2026-11-24 02:02:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ItsMrDubey on 2026-11-24T02:02:39Z.


Claimed in the coordination issue as: OLD-5516, OLD-5517, OLD-5519, OLD-5521 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7119646964)

What and why

Four stale statements in the docs, each checked against the tree on origin/main (9ec34cd):

  • old #5517 (docs/design.md, v_pack_b32_f16 input neg row): said abs is still refused. tools/rdna2spirv.py (the v_pack_b32_f16 branch, ~line 8081) emits OpBitwiseAnd ... 0x7FFF for abs before the neg XOR, and tests/semantic/test_pack_b32_f16_mods.py tests it (6 tests, OK). Carried from old-pr/9891 by @AlejoReyna, cherry-picked with authorship kept.
  • old #5519 (docs/shader_validation.md): said salu_diff is an 87-opcode reference. Also carried from old-pr/9891 (@AlejoReyna), which said 112 in OPS / 99 by default. Those were right at that branch's base (c95d935), but 615f30d (s_cmov_b32/b64, s_cmovk_i32, s_movrels_b32/b64) has since added 5, so a follow-up commit of mine makes them 117 / 104. Counted by importing the module: len(OPS) = 117, len(LANE_MASK_OPS) = 13, OPS minus LANE_MASK_OPS = 104 (the default pool at tools/salu_diff.py line 811); --list-ops prints 117 lines.
  • old #5516 (docs/design.md, --pc-tail-ubo row): "185 shaders / 109 read the tail" and "the GPU harnesses ... are the follow-ups". The harness part is stale: runtime/test/vk_pc_tail.h exists and vk_compute_test, vk_store_test, vk_harness, vk_texture_test, vk_sampler_test, vk_bindless_test (and vk_image_fuzz) call pc_tail_requested(); docs/testing.md already lists them. The D3D12 layer still doesn't bind it (push_constants_fit in runtime/shims/d3d12_vulkan_device.cpp refuses pipelines below 144 bytes), so the row now says that. The counts: runtime/test/shaders now has 284 .asm files, so 185 is stale, but I could not re-measure (no llvm-mc/spirv-val on this machine). I dropped the numbers and the row now says where the count comes from (build.py / run_gpu_tests.py with LEONIDA_PC_TAIL_UBO=1, the pc_tail entries in the index), plus what tests/test_pc_tail_ubo.py actually checks.
  • old #5521 (docs/README.md, fspx row): said 13 of 29. The issue quotes fspx.md as 17, but 17 is that file's old breakdown. Its latest count is the SHADER-813 recount (fspx.md, end of the "Wave size" section): 20 of 29 translate and pass spirv-val. The README now gives that number. I read it from fspx.md and did not re-measure it, because that needs the FidelityFX DLL. fspx.md itself still lists 17/26/27/20 from different dates. I left that alone here.

Tested

Windows 11, Python 3.11.9, no GPU needed.

  • python -I tests/test_docs_links.py: 7 tests OK.
  • Every tests/test_docs_*.py (cli_flags, design_rows, encoding, env_vars, links, list_items, pr_template, python_deps, repeated_lines, repo_paths, table_ids, table_rows): all OK.
  • python -I tests/semantic/test_pack_b32_f16_mods.py: 6 tests OK (abs implemented).
  • python -I scripts/check_no_game_data.py docs/design.md docs/README.md docs/shader_validation.md: exit 0.
  • tests/test_pc_tail_ubo.py not run (needs pytest + llvm-mc/spirv-val, not installed here).

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. n/a: no translator rule
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464667176 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/30). Originally posted by [ItsMrDubey](https://github.com/ItsMrDubey) on 2026-11-24T02:02:39Z. --- Claimed in the coordination issue as: OLD-5516, OLD-5517, OLD-5519, OLD-5521 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7119646964) ### What and why Four stale statements in the docs, each checked against the tree on `origin/main` (9ec34cd): - **old #5517** (`docs/design.md`, `v_pack_b32_f16` input `neg` row): said `abs` is still refused. `tools/rdna2spirv.py` (the `v_pack_b32_f16` branch, ~line 8081) emits `OpBitwiseAnd ... 0x7FFF` for `abs` before the `neg` XOR, and `tests/semantic/test_pack_b32_f16_mods.py` tests it (6 tests, OK). Carried from `old-pr/9891` by @AlejoReyna, cherry-picked with authorship kept. - **old #5519** (`docs/shader_validation.md`): said salu_diff is an 87-opcode reference. Also carried from `old-pr/9891` (@AlejoReyna), which said 112 in `OPS` / 99 by default. Those were right at that branch's base (c95d935), but 615f30d (s_cmov_b32/b64, s_cmovk_i32, s_movrels_b32/b64) has since added 5, so a follow-up commit of mine makes them **117 / 104**. Counted by importing the module: `len(OPS)` = 117, `len(LANE_MASK_OPS)` = 13, `OPS` minus `LANE_MASK_OPS` = 104 (the default pool at `tools/salu_diff.py` line 811); `--list-ops` prints 117 lines. - **old #5516** (`docs/design.md`, `--pc-tail-ubo` row): "185 shaders / 109 read the tail" and "the GPU harnesses ... are the follow-ups". The harness part is stale: `runtime/test/vk_pc_tail.h` exists and `vk_compute_test`, `vk_store_test`, `vk_harness`, `vk_texture_test`, `vk_sampler_test`, `vk_bindless_test` (and `vk_image_fuzz`) call `pc_tail_requested()`; docs/testing.md already lists them. The D3D12 layer still doesn't bind it (`push_constants_fit` in `runtime/shims/d3d12_vulkan_device.cpp` refuses pipelines below 144 bytes), so the row now says that. The counts: `runtime/test/shaders` now has 284 `.asm` files, so 185 is stale, but I could not re-measure (no `llvm-mc`/`spirv-val` on this machine). I dropped the numbers and the row now says where the count comes from (`build.py` / `run_gpu_tests.py` with `LEONIDA_PC_TAIL_UBO=1`, the `pc_tail` entries in the index), plus what `tests/test_pc_tail_ubo.py` actually checks. - **old #5521** (`docs/README.md`, fspx row): said 13 of 29. The issue quotes fspx.md as 17, but 17 is that file's old breakdown. Its latest count is the SHADER-813 recount (fspx.md, end of the "Wave size" section): **20 of 29** translate and pass `spirv-val`. The README now gives that number. I read it from fspx.md and did not re-measure it, because that needs the FidelityFX DLL. fspx.md itself still lists 17/26/27/20 from different dates. I left that alone here. ### Tested Windows 11, Python 3.11.9, no GPU needed. - `python -I tests/test_docs_links.py`: 7 tests OK. - Every `tests/test_docs_*.py` (cli_flags, design_rows, encoding, env_vars, links, list_items, pr_template, python_deps, repeated_lines, repo_paths, table_ids, table_rows): all OK. - `python -I tests/semantic/test_pack_b32_f16_mods.py`: 6 tests OK (abs implemented). - `python -I scripts/check_no_game_data.py docs/design.md docs/README.md docs/shader_validation.md`: exit 0. - `tests/test_pc_tail_ubo.py` not run (needs pytest + llvm-mc/spirv-val, not installed here). AI-assisted: yes ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. n/a: no translator rule
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!30
No description provided.