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

Closed
opened 2026-11-26 20:16:44 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/30
Author: @ItsMrDubey
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: docs-stale-counts


📝 Commits (5)

  • be64e8c docs: salu_diff generates 99 opcodes by default; v_pack_b32_f16 abs is implemented (#5519, #5517)
  • b7fb698 docs: clarify the default salu_diff opcode pool
  • 0e87fa3 docs/design.md: the pc-tail-ubo row drops its stale shader counts; the GPU test programs bind the block, the D3D12 layer does not yet
  • 51c61df docs/README.md: the fspx row gives 20 of 29, the latest count in fspx.md
  • d8db771 docs/shader_validation.md: salu_diff has 117 opcodes in OPS and draws from 104 by default

📊 Changes

3 files changed (+9 additions, -8 deletions)

View changed files

📝 docs/README.md (+1 -1)
📝 docs/design.md (+2 -2)
📝 docs/shader_validation.md (+6 -5)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/30 **Author:** [@ItsMrDubey](https://github.com/ItsMrDubey) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `docs-stale-counts` --- ### 📝 Commits (5) - [`be64e8c`](https://github.com/ubiquitarianism/leonida/commit/be64e8c7af599044382cdbe4bcdeb9e0da3ed501) docs: salu_diff generates 99 opcodes by default; v_pack_b32_f16 abs is implemented (#5519, #5517) - [`b7fb698`](https://github.com/ubiquitarianism/leonida/commit/b7fb698e51a2bb27e9cba2e5b53efffd9e247e25) docs: clarify the default salu_diff opcode pool - [`0e87fa3`](https://github.com/ubiquitarianism/leonida/commit/0e87fa3fb5b8c2228b48af0808dfe25e99298528) docs/design.md: the pc-tail-ubo row drops its stale shader counts; the GPU test programs bind the block, the D3D12 layer does not yet - [`51c61df`](https://github.com/ubiquitarianism/leonida/commit/51c61df4417c546004eb858cb21aebfd6e6103bb) docs/README.md: the fspx row gives 20 of 29, the latest count in fspx.md - [`d8db771`](https://github.com/ubiquitarianism/leonida/commit/d8db7715c73e56436c46f7d33dab634126fc7cb8) docs/shader_validation.md: salu_diff has 117 opcodes in OPS and draws from 104 by default ### 📊 Changes **3 files changed** (+9 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -1) 📝 `docs/design.md` (+2 -2) 📝 `docs/shader_validation.md` (+6 -5) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:16:44 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#84
No description provided.