docs: remove the remaining Leonida references and credits (stacked on #342) #252

Manually merged
github merged 6 commits from github-bot/gh-252 into main 2026-11-26 15:55:20 +00:00 AGit
Owner

@⁠KainanP on GitHub · 2026-11-25 21:34 UTC · original
KainanP:docs/leonida-citations-in-tree → main · +201 −1009 · 38 files · 6 commits · merged 2026-11-26 15:52 UTC

Change

Docs and credits half of the Leonida removal (rule 2), as asked in the review of 2026-11-26. Stacked on #342 (the code half: no more import of third_party/leonida, folder deleted); please merge #342 first, after which this diff shrinks to its own three commits. With both, git grep -i leonida returns nothing (242 lines on main c4c93bd).

AMD's RDNA 2 ISA below is the November 2020 reference guide (Wayback copy, SHA-256 22aec03f…, see docs/research/rdna2-sources.md); page numbers are the printed ones.

Code comments re-sourced (from the earlier rounds of this PR, unchanged):

  • emu/rdna2_exec_cmp16.py: inline floats on 16-bit integer sources cite LLVM 20.1.8 getInlineEncodingV216 and test/CodeGen/AMDGPU/add.v2i16.ll; the SDWA case is labelled assumed (requested in akimfomin/PortBridge#83).
  • emu/rdna2_buffer_format.py, emu/rdna2_exec_format.py: ISA §8.1.4 table 31 (p. 59) and §8.1.5 notes 1 and 3 (p. 62). Labelled assumed (not measured): UNORM/SNORM rounding to nearest, 16-bit FLOAT NaN widening, UINT/SINT store saturation, 1.0 vs 1 for DST_SEL = 1. DST_SEL_Z = Z/W stores on two-component formats stay refused.
  • emu/rdna2_hlsl_format.py: BufUnorm states the identity it uses (m / (2^n − 1) = 0.mmm… in base 2^n).
  • emu/rdna2_image.py: every T#/S# field cites ISA §8.2.6 table 45 (p. 75) and §8.2.7 table 46 (p. 76-77); format codes §8.2.8 table 47 (p. 78-79); border colour values Mesa's SQ_TEX_BORDER_COLOR (gfx6.json, MIT). New: the "first ported from Leonida" sentence is gone, and data/gfx10_formats.json is credited to Mesa: it is Mesa's GFX10_FORMAT enum from src/amd/registers/gfx10-rsrc.json (MIT, commit 1a24f43d97b3, the file's last change), one "value": "name" entry per line in Mesa's order. Regenerating it from that file with a script gives the same bytes.

New in this round:

  • THIRD_PARTY.md: the Leonida descriptor row and the typed-memory row are removed (the translator row went with #342); the Mesa row says what is taken from Mesa directly (field names/positions/values, the GFX10_FORMAT table). The licence-history sentence now names VIctory as the GPL-3.0 code it lets us take.
  • runtime/d3d12_xs/virtual_memory.cpp, tests/test_d3d12_virtual_memory.py: the reason the function writes nothing (the title's pointer may not cover 32 bytes) is labelled assumed, not measured by us, instead of citing Leonida. No code change.
  • site/index.html: the disk-space section (its only source was Leonida's README) and the three status rows sourced from Leonida (shaders to SPIR-V, asset export, D3D12 to Vulkan) are removed; the remaining text names only AnyXboxX. tests/test_site.py drops its leonida/progress.html check.
  • Research notes: leonida-gta6.md and leonida-boot-2026-11-23.md (and the French leonida-gta6.md, demarrage-leonida-2026-11-23.md) are deleted: they described Leonida itself. first-boot-1021.md / premier-demarrage-1021.md, neighbors.md / voisins.md, embedded-shaders.md / shaders-embarques.md and victory-xcl-fivestar.md keep our own measurements (labels unchanged) and say they were taken under a third-party runtime, since taken down, so they cannot be repeated; Leonida's pull requests, links, paths and its column of the stops table are gone. Section, stop and W-item numbers of the first-boot note are unchanged (code cites them). Two items of "What to take" in neighbors.md that only pointed at Leonida are removed; the rest are renumbered (nothing cites those numbers).
  • READMEs (9 languages): "descriptor layout from AMD's RDNA 2 ISA and Mesa", and the first-boot link describes the runtime neutrally.

Licence history: none of the removed credits is still needed. The Leonida code (third_party/leonida/) is deleted by #342; the table and the descriptor fields are Mesa's and AMD's; the typed-memory rules cite the ISA or are labelled assumed. The past copies stay in git history with their credits.

Linked issue: Refs #262, #342.

Verification

On this branch (#342 + these commits):

python -m pytest (full suite, RTX 4060 Laptop) → 1639 passed, 15 skipped
python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!
git grep -i leonida → (nothing)

Every relative Markdown link left in the edited notes was resolved by a script; none is broken. gfx10_formats.json was compared byte for byte with a rendering of Mesa's enum.

Checklist

  • The PR covers a single reviewable behaviour (sources and credits; no behaviour change).
  • A test fails without this change and passes with it. (Not applicable: comments and docs.)
  • The commands and results of each check are given above.
  • An unimplemented function returns an error (E_NOTIMPL), never a fake success.
  • README: the same change in all 9 languages (test_readme_sync.py checks it).
  • No game, console or SDK file, no key, no dump, no download link.
  • Findings drawn from a title: none new; existing ones keep their labels.
  • Code taken from another project: none; Mesa's enum is credited in THIRD_PARTY.md.

Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP.

🤖 Generated with Claude Code

**@⁠KainanP** on GitHub · 2026-11-25 21:34 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252) `KainanP:docs/leonida-citations-in-tree` → `main` · +201 −1009 · 38 files · 6 commits · merged 2026-11-26 15:52 UTC ## Change Docs and credits half of the Leonida removal (rule 2), as asked in the review of 2026-11-26. **Stacked on #342** (the code half: no more import of `third_party/leonida`, folder deleted); please merge #342 first, after which this diff shrinks to its own three commits. With both, `git grep -i leonida` returns nothing (242 lines on `main` `c4c93bd`). AMD's RDNA 2 ISA below is the November 2020 reference guide (Wayback copy, SHA-256 `22aec03f…`, see `docs/research/rdna2-sources.md`); page numbers are the printed ones. **Code comments re-sourced** (from the earlier rounds of this PR, unchanged): - `emu/rdna2_exec_cmp16.py`: inline floats on 16-bit integer sources cite LLVM 20.1.8 `getInlineEncodingV216` and `test/CodeGen/AMDGPU/add.v2i16.ll`; the SDWA case is labelled assumed (requested in akimfomin/PortBridge#83). - `emu/rdna2_buffer_format.py`, `emu/rdna2_exec_format.py`: ISA §8.1.4 table 31 (p. 59) and §8.1.5 notes 1 and 3 (p. 62). Labelled **assumed (not measured)**: UNORM/SNORM rounding to nearest, 16-bit FLOAT NaN widening, UINT/SINT store saturation, 1.0 vs 1 for DST_SEL = 1. DST_SEL_Z = Z/W stores on two-component formats stay refused. - `emu/rdna2_hlsl_format.py`: `BufUnorm` states the identity it uses (m / (2^n − 1) = 0.mmm… in base 2^n). - `emu/rdna2_image.py`: every T#/S# field cites ISA §8.2.6 table 45 (p. 75) and §8.2.7 table 46 (p. 76-77); format codes §8.2.8 table 47 (p. 78-79); border colour values Mesa's `SQ_TEX_BORDER_COLOR` (`gfx6.json`, MIT). **New:** the "first ported from Leonida" sentence is gone, and `data/gfx10_formats.json` is credited to Mesa: it is Mesa's `GFX10_FORMAT` enum from `src/amd/registers/gfx10-rsrc.json` (MIT, commit `1a24f43d97b3`, the file's last change), one `"value": "name"` entry per line in Mesa's order. Regenerating it from that file with a script gives the same bytes. **New in this round:** - `THIRD_PARTY.md`: the Leonida descriptor row and the typed-memory row are removed (the translator row went with #342); the Mesa row says what is taken from Mesa directly (field names/positions/values, the `GFX10_FORMAT` table). The licence-history sentence now names VIctory as the GPL-3.0 code it lets us take. - `runtime/d3d12_xs/virtual_memory.cpp`, `tests/test_d3d12_virtual_memory.py`: the reason the function writes nothing (the title's pointer may not cover 32 bytes) is labelled **assumed, not measured by us**, instead of citing Leonida. No code change. - `site/index.html`: the disk-space section (its only source was Leonida's README) and the three status rows sourced from Leonida (shaders to SPIR-V, asset export, D3D12 to Vulkan) are removed; the remaining text names only AnyXboxX. `tests/test_site.py` drops its `leonida/progress.html` check. - Research notes: `leonida-gta6.md` and `leonida-boot-2026-11-23.md` (and the French `leonida-gta6.md`, `demarrage-leonida-2026-11-23.md`) are deleted: they described Leonida itself. `first-boot-1021.md` / `premier-demarrage-1021.md`, `neighbors.md` / `voisins.md`, `embedded-shaders.md` / `shaders-embarques.md` and `victory-xcl-fivestar.md` keep our own measurements (labels unchanged) and say they were taken **under a third-party runtime, since taken down**, so they cannot be repeated; Leonida's pull requests, links, paths and its column of the stops table are gone. Section, stop and W-item numbers of the first-boot note are unchanged (code cites them). Two items of "What to take" in `neighbors.md` that only pointed at Leonida are removed; the rest are renumbered (nothing cites those numbers). - READMEs (9 languages): "descriptor layout from AMD's RDNA 2 ISA and Mesa", and the first-boot link describes the runtime neutrally. Licence history: none of the removed credits is still needed. The Leonida code (`third_party/leonida/`) is deleted by #342; the table and the descriptor fields are Mesa's and AMD's; the typed-memory rules cite the ISA or are labelled assumed. The past copies stay in git history with their credits. Linked issue: Refs #262, #342. ## Verification On this branch (#342 + these commits): ``` python -m pytest (full suite, RTX 4060 Laptop) → 1639 passed, 15 skipped python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! git grep -i leonida → (nothing) ``` Every relative Markdown link left in the edited notes was resolved by a script; none is broken. `gfx10_formats.json` was compared byte for byte with a rendering of Mesa's enum. ## Checklist - [x] The PR covers a single reviewable behaviour (sources and credits; no behaviour change). - [ ] A test fails without this change and passes with it. (Not applicable: comments and docs.) - [x] The commands and results of each check are given above. - [x] An unimplemented function returns an error (`E_NOTIMPL`), never a fake success. - [x] README: the same change in all 9 languages (`test_readme_sync.py` checks it). - [x] No game, console or SDK file, no key, no dump, no download link. - [x] Findings drawn from a title: none new; existing ones keep their labels. - [x] Code taken from another project: none; Mesa's enum is credited in THIRD_PARTY.md. Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The Leonida docs (ubiquitarianism/leonida docs/design.md) were taken down
on 2026-11-24 after a DMCA notice, and rule 2 asks for AMD's ISA, LLVM's
tests, Microsoft Learn or our own measurements. This replaces the Leonida
citations that our merged PRs #150 and #226 left on main.

- emu/rdna2_exec_cmp16.py (#226): inline floats on 16-bit integer sources
  now cite LLVM 20.1.8, Utils/AMDGPUBaseInfo.cpp getInlineEncodingV216
  ("for UI16 instructions: corresponding single-precision float value")
  and test/CodeGen/AMDGPU/add.v2i16.ll (GFX10 encodes <0, 16256> as 1.0),
  next to the SIInstrInfo comment already quoted. The SDWA case is labelled
  assumed; both stay requested in akimfomin/PortBridge#83.
- emu/rdna2_buffer_format.py, emu/rdna2_exec_format.py (#150): AMD RDNA 2
  ISA (November 2020) section 8.1.4, table 31 (p. 59): MTBUF takes the
  instruction's format and the identity DST_SEL; an INVALID resource format
  means an unbound resource. Section 8.1.5 (p. 62), notes 1 and 3:
  out-of-range reads return zero except SEL_1 components, which return 1,
  and load/store-format accesses are range-checked all or nothing. AMD XML:
  formatted loads "convert the data to 32 bit integral or floating point
  format". Labelled assumed (not measured): the UNORM/SNORM quotient
  rounded to nearest, the 16-bit FLOAT NaN widening, the UINT/SINT store
  saturation, 1.0 against 1 for DST_SEL = 1. MUBUF stores whose DST_SEL_Z
  is Z or W on a two-component format stay refused, now because nothing
  documents them.
- emu/rdna2_hlsl_format.py: the BufUnorm comment states the identity it
  uses (m / (2^n - 1) = 0.mmm... in base 2^n) instead of naming Leonida.
- tests/test_rdna2_exec_format.py: one comment.

Comments only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Follow-up to the review of #252: the remaining Leonida references in
rdna2_image.py, rdna2_hlsl.py and rdna2_spirv.py.

- emu/rdna2_image.py: every T# and S# field the code reads now cites AMD's
  RDNA 2 ISA (November 2020), section 8.2.6 table 45 (p. 75) and section
  8.2.7 table 46 (p. 76-77); format codes cite section 8.2.8 table 47
  (p. 78-79). Table 46 names the border colour types without values, so
  0/1/2 = transparent black / opaque black / opaque white cite Mesa's
  SQ_TEX_BORDER_COLOR enum (src/amd/registers/gfx6.json, MIT). Field and
  constant names come from Mesa gfx10-rsrc.json and gfx6.json. The positions
  were first ported from Leonida's gfx10_descriptors.h (GPL-3.0), which stays
  credited. data/gfx10_formats.json is still credited as a copy of Leonida's
  table; it is identical to Mesa's GFX10_FORMAT enum, and its 105 codes
  listed in table 47 have the same names.
- emu/rdna2_hlsl.py, emu/rdna2_spirv.py: comments credit cfg_structure.py
  and rdna2spirv.py as frozen, unmodified GPL-3.0 copies in
  third_party/leonida/ (commit 1cc6e3c121, THIRD_PARTY.md), a code
  dependency rather than a source of measurements; what rdna2_spirv.py says
  about the translator's inputs is read from that code. The import stays;
  removing it is #262.
- THIRD_PARTY.md: rdna2_hlsl.py is listed as importing cfg_structure.py; the
  typed-memory row no longer says "measured by Leonida"; the Leonida and
  Mesa descriptor rows say what the code now cites.

Comments only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:40:36 +00:00
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-25 21:45 UTC · original

Thanks for taking this on. Some Leonida references remain outside the files this PR touches: rdna2_buffer_format.py (lines 18-27, 163, 258), rdna2_exec_format.py (7-18), rdna2_hlsl_format.py (49), rdna2_image.py (6-9), rdna2_hlsl.py (5, 288-290) and rdna2_spirv.py (1-5, 22, 57-117, code that imports third_party/leonida), and tests/test_rdna2_exec_format.py (157). Could you re-source these to AMD's RDNA 2 ISA, LLVM's tests or our own measurements (saying how each was obtained), or narrow this PR's title to the files it covers and open a follow-up for the rest? Removing the code dependency on third_party/leonida can be a separate PR.

**@⁠LooperSalty** on GitHub · 2026-11-25 21:45 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7175501717) Thanks for taking this on. Some Leonida references remain outside the files this PR touches: `rdna2_buffer_format.py` (lines 18-27, 163, 258), `rdna2_exec_format.py` (7-18), `rdna2_hlsl_format.py` (49), `rdna2_image.py` (6-9), `rdna2_hlsl.py` (5, 288-290) and `rdna2_spirv.py` (1-5, 22, 57-117, code that imports `third_party/leonida`), and `tests/test_rdna2_exec_format.py` (157). Could you re-source these to AMD's RDNA 2 ISA, LLVM's tests or our own measurements (saying how each was obtained), or narrow this PR's title to the files it covers and open a follow-up for the rest? Removing the code dependency on `third_party/leonida` can be a separate PR.
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 22:22 UTC · original

Updated (one commit, 50edfe1, rebased on main 9a06443):

  • rdna2_buffer_format.py (18-27, 163, 258) and rdna2_exec_format.py (7-18): Leonida is gone. MTBUF format and selectors, the INVALID format, SEL_1 out of range and the all-or-nothing range check now cite AMD's RDNA 2 ISA, §8.1.4 table 31 (p. 59) and §8.1.5 notes 1 and 3 (p. 62). The UNORM rounding, 16-bit FLOAT NaN widening, integer store saturation and the 1.0/1 value of SEL_1 are labelled assumed. DST_SEL_Z = Z/W stores stay refused, because nothing documents them.
  • rdna2_hlsl_format.py (49): the comment states the identity it uses instead of naming Leonida.
  • tests/test_rdna2_exec_format.py (157): comment reworded.
  • Title narrowed to these files. rdna2_image.py, rdna2_hlsl.py (cfg_structure import) and rdna2_spirv.py are other contributors' code and a code dependency, so they are listed in follow-up issue #262.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-25 22:22 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7176281653) Updated (one commit, `50edfe1`, rebased on main `9a06443`): - `rdna2_buffer_format.py` (18-27, 163, 258) and `rdna2_exec_format.py` (7-18): Leonida is gone. MTBUF format and selectors, the INVALID format, SEL_1 out of range and the all-or-nothing range check now cite AMD's RDNA 2 ISA, §8.1.4 table 31 (p. 59) and §8.1.5 notes 1 and 3 (p. 62). The UNORM rounding, 16-bit FLOAT NaN widening, integer store saturation and the 1.0/1 value of SEL_1 are labelled assumed. DST_SEL_Z = Z/W stores stay refused, because nothing documents them. - `rdna2_hlsl_format.py` (49): the comment states the identity it uses instead of naming Leonida. - `tests/test_rdna2_exec_format.py` (157): comment reworded. - Title narrowed to these files. `rdna2_image.py`, `rdna2_hlsl.py` (`cfg_structure` import) and `rdna2_spirv.py` are other contributors' code and a code dependency, so they are listed in follow-up issue #262. _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 23:25 UTC · original

Updated: rebased on main 3e258c8, with a new commit 6fb5569 on top of 18a7bc0. The PR now covers every file in your list, so I widened the title again.

  • rdna2_buffer_format.py, rdna2_exec_format.py, rdna2_hlsl_format.py, tests/test_rdna2_exec_format.py: unchanged since my last reply (RDNA 2 ISA §8.1.4/§8.1.5, or labelled assumed).
  • rdna2_image.py (6-9): each T#/S# field now cites the RDNA 2 ISA, §8.2.6 table 45 (p. 75) and §8.2.7 table 46 (p. 76-77). The format codes cite §8.2.8 table 47 (p. 78-79). Every position and value in the code matches these tables. Table 46 gives no values for the border colour types, so 0/1/2 cite Mesa's SQ_TEX_BORDER_COLOR enum (gfx6.json, MIT). Leonida's gfx10_descriptors.h and the copied gfx10_formats.json stay credited as GPL-3.0 code and data. The JSON is identical to Mesa's GFX10_FORMAT enum.
  • rdna2_hlsl.py (5, 288-290) and rdna2_spirv.py (1-5, 22, 57-117): the comments now describe cfg_structure.py and rdna2spirv.py as frozen, unmodified GPL-3.0 copies in third_party/leonida/ (credited in THIRD_PARTY.md), not as a measurement source. The import and the SPIR-V path are unchanged; as you suggested, removing that dependency is left to #262.
  • THIRD_PARTY.md: lists rdna2_hlsl.py as importing cfg_structure.py, and no longer says "measured by Leonida".

No behaviour change. Nothing new is labelled assumed in this round. Full suite on the RTX: 1404 passed, 17 skipped. Ruff passes.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-25 23:25 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7177550645) Updated: rebased on main `3e258c8`, with a new commit `6fb5569` on top of `18a7bc0`. The PR now covers every file in your list, so I widened the title again. - `rdna2_buffer_format.py`, `rdna2_exec_format.py`, `rdna2_hlsl_format.py`, `tests/test_rdna2_exec_format.py`: unchanged since my last reply (RDNA 2 ISA §8.1.4/§8.1.5, or labelled assumed). - `rdna2_image.py` (6-9): each T#/S# field now cites the RDNA 2 ISA, §8.2.6 table 45 (p. 75) and §8.2.7 table 46 (p. 76-77). The format codes cite §8.2.8 table 47 (p. 78-79). Every position and value in the code matches these tables. Table 46 gives no values for the border colour types, so 0/1/2 cite Mesa's `SQ_TEX_BORDER_COLOR` enum (`gfx6.json`, MIT). Leonida's `gfx10_descriptors.h` and the copied `gfx10_formats.json` stay credited as GPL-3.0 code and data. The JSON is identical to Mesa's `GFX10_FORMAT` enum. - `rdna2_hlsl.py` (5, 288-290) and `rdna2_spirv.py` (1-5, 22, 57-117): the comments now describe `cfg_structure.py` and `rdna2spirv.py` as frozen, unmodified GPL-3.0 copies in `third_party/leonida/` (credited in THIRD_PARTY.md), not as a measurement source. The import and the SPIR-V path are unchanged; as you suggested, removing that dependency is left to #262. - `THIRD_PARTY.md`: lists `rdna2_hlsl.py` as importing `cfg_structure.py`, and no longer says "measured by Leonida". No behaviour change. Nothing new is labelled assumed in this round. Full suite on the RTX: 1404 passed, 17 skipped. Ruff passes. _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 00:06 UTC · original

Thanks for starting this. Rule 2 needs the Leonida references gone, and 224 remain on this branch (242 on main), including live imports of third_party/leonida: PrototypeScarlett/emu/rdna2_hlsl.py:288-294 and :358, emu/rdna2_spirv.py:62-64, scarlett.py:287, tests/test_rdna2_hlsl_cfg.py:3, plus the THIRD_PARTY rows and site/index.html. Could you rewrite it so the code no longer imports third_party/leonida (replace or drop the paths that need it, with tests), re-source the remaining claims to AMD's RDNA 2 ISA, LLVM's tests or our own measurements (saying how each was obtained), and remove the folder and its credits? Splitting it into a code PR and a docs PR is fine.

**@⁠LooperSalty** on GitHub · 2026-11-26 00:06 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7178408746) Thanks for starting this. Rule 2 needs the Leonida references gone, and 224 remain on this branch (242 on main), including live imports of `third_party/leonida`: `PrototypeScarlett/emu/rdna2_hlsl.py:288-294` and `:358`, `emu/rdna2_spirv.py:62-64`, `scarlett.py:287`, `tests/test_rdna2_hlsl_cfg.py:3`, plus the THIRD_PARTY rows and `site/index.html`. Could you rewrite it so the code no longer imports `third_party/leonida` (replace or drop the paths that need it, with tests), re-source the remaining claims to AMD's RDNA 2 ISA, LLVM's tests or our own measurements (saying how each was obtained), and remove the folder and its credits? Splitting it into a code PR and a docs PR is fine.
github-bot changed title from docs: re-source the Leonida citations in the RDNA 2 code and credit the frozen Leonida translators to docs: remove the remaining Leonida references and credits (stacked on #342) 2026-11-26 11:03:31 +00:00
github-bot force-pushed github-bot/gh-252 from 6fb5569e63 to dc179aba6d 2026-11-26 11:03:36 +00:00 Compare
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 09:42 UTC · original

Thanks. Split in two, as you suggested:

  • #342 (code): nothing imports third_party/leonida any more, and the folder is deleted. The HLSL recompiler keeps straight-line output for programs without branches. Every other program uses our own dispatch loop: one while (pc != END_PC) with an if (pc == …) guard per block. It is not switch (pc), because WARP crashes on the switch once a block holds a group barrier (measured, see the PR). The cost is measured there: 123 of the 132 test shaders are byte-identical, and the 9 with branches gain 2-11 % DXIL and 0-7 ms of dxc, with no parity difference on RTX, WARP or Intel UHD. The SPIR-V path (rdna2_spirv.py, tools/fssm_mesure.py) is removed, and --spirv is refused by name. A clean-room structurer from published algorithms could come later as its own PR. Fixes #262.
  • This PR (docs and credits): now stacked on #342. It removes every remaining mention: THIRD_PARTY rows, the site sections sourced from Leonida, the two Leonida notes, and the mentions in the READMEs and the research notes. Our own measurements taken under Leonida's runtime are kept, described as made under a third-party runtime that has since been taken down. gfx10_formats.json is credited to Mesa's GFX10_FORMAT enum, which it matches byte for byte. With both PRs, git grep -i leonida is empty.

Merge #342 first; this diff then shrinks to its own commits.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 09:42 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7188359240) Thanks. Split in two, as you suggested: - **#342 (code):** nothing imports `third_party/leonida` any more, and the folder is deleted. The HLSL recompiler keeps straight-line output for programs without branches. Every other program uses our own dispatch loop: one `while (pc != END_PC)` with an `if (pc == …)` guard per block. It is not `switch (pc)`, because WARP crashes on the `switch` once a block holds a group barrier (measured, see the PR). The cost is measured there: 123 of the 132 test shaders are byte-identical, and the 9 with branches gain 2-11 % DXIL and 0-7 ms of dxc, with no parity difference on RTX, WARP or Intel UHD. The SPIR-V path (`rdna2_spirv.py`, `tools/fssm_mesure.py`) is removed, and `--spirv` is refused by name. A clean-room structurer from published algorithms could come later as its own PR. Fixes #262. - **This PR (docs and credits):** now stacked on #342. It removes every remaining mention: THIRD_PARTY rows, the site sections sourced from Leonida, the two Leonida notes, and the mentions in the READMEs and the research notes. Our own measurements taken under Leonida's runtime are kept, described as made under a third-party runtime that has since been taken down. `gfx10_formats.json` is credited to Mesa's `GFX10_FORMAT` enum, which it matches byte for byte. With both PRs, `git grep -i leonida` is empty. Merge #342 first; this diff then shrinks to its own commits. _AI use: Claude Code (Claude Opus 5.5)._
Brings #351 (Rust workspace in main). One conflict: main deleted
runtime/d3d12_xs/virtual_memory.cpp (ported to crates/anyxboxx-d3d12-xs),
where this branch had relabelled the "writes nothing" reason as assumed.
Kept the deletion and re-applied the change where the code now lives:

- crates/anyxboxx-d3d12-xs/src/lib.rs: the 32-byte reason is assumed,
  not measured by us (same wording as the C++ had on this branch).
- crates/anyxboxx-rdna2-ref/src/format_access.rs: DST_SEL_Z on
  two-component stores cites ISA 8.1.4 table 31 (p. 59), as the Python
  model does here.
- docs/rust-full-status.md (+ fr): the typed-format rules cite the ISA
  or are labelled assumed, like the Python model.
- docs/architecture-rust.md (+ fr): drop third_party/leonida, deleted
  by #342.
- tests/test_d3d12_virtual_memory.py: points at the Rust file.

git grep -i leonida is empty again on the merged tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 12:48 UTC · original

Merged main (#351) into the branch with a merge commit (72c692c), no rebase.

One conflict: runtime/d3d12_xs/virtual_memory.cpp was deleted by #351 (ported to Rust) while this branch had relabelled its comment. Kept the deletion and re-applied the change where the code now lives, so git grep -i leonida is empty again:

  • crates/anyxboxx-d3d12-xs/src/lib.rs: why nothing is written is labelled assumed, not measured by us.
  • crates/anyxboxx-rdna2-ref/src/format_access.rs: DST_SEL_Z on two-component stores cites ISA §8.1.4 table 31 (p. 59), like the Python model.
  • docs/rust-full-status.md (+ fr): the typed-format rules cite the ISA or are labelled assumed.
  • docs/architecture-rust.md (+ fr): third_party/leonida dropped (deleted by #342).
  • tests/test_d3d12_virtual_memory.py: docstring points at the Rust file.

Comments and docs only, no behaviour change. Full suite on RTX 4060 Laptop: 1808 passed, 1 skipped; ruff clean; CI green.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 12:48 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7192497368) Merged `main` (#351) into the branch with a merge commit (72c692c), no rebase. One conflict: `runtime/d3d12_xs/virtual_memory.cpp` was deleted by #351 (ported to Rust) while this branch had relabelled its comment. Kept the deletion and re-applied the change where the code now lives, so `git grep -i leonida` is empty again: - `crates/anyxboxx-d3d12-xs/src/lib.rs`: why nothing is written is labelled assumed, not measured by us. - `crates/anyxboxx-rdna2-ref/src/format_access.rs`: DST_SEL_Z on two-component stores cites ISA §8.1.4 table 31 (p. 59), like the Python model. - `docs/rust-full-status.md` (+ fr): the typed-format rules cite the ISA or are labelled assumed. - `docs/architecture-rust.md` (+ fr): `third_party/leonida` dropped (deleted by #342). - `tests/test_d3d12_virtual_memory.py`: docstring points at the Rust file. Comments and docs only, no behaviour change. Full suite on RTX 4060 Laptop: 1808 passed, 1 skipped; ruff clean; CI green. _AI use: Claude Code (Claude Opus 5.5)._
github manually merged commit 166628ac54 into main 2026-11-26 15:55:20 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.