docs: remove the remaining Leonida references and credits (stacked on #342) #252
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!252
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-252"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCChange
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 leonidareturns nothing (242 lines onmainc4c93bd).AMD's RDNA 2 ISA below is the November 2020 reference guide (Wayback copy, SHA-256
22aec03f…, seedocs/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.8getInlineEncodingV216andtest/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:BufUnormstates 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'sSQ_TEX_BORDER_COLOR(gfx6.json, MIT). New: the "first ported from Leonida" sentence is gone, anddata/gfx10_formats.jsonis credited to Mesa: it is Mesa'sGFX10_FORMATenum fromsrc/amd/registers/gfx10-rsrc.json(MIT, commit1a24f43d97b3, 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, theGFX10_FORMATtable). 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.pydrops itsleonida/progress.htmlcheck.leonida-gta6.mdandleonida-boot-2026-11-23.md(and the Frenchleonida-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.mdandvictory-xcl-fivestar.mdkeep 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" inneighbors.mdthat only pointed at Leonida are removed; the rest are renumbered (nothing cites those numbers).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):
Every relative Markdown link left in the edited notes was resolved by a script; none is broken.
gfx10_formats.jsonwas compared byte for byte with a rendering of Mesa's enum.Checklist
E_NOTIMPL), never a fake success.test_readme_sync.pychecks it).Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP.
🤖 Generated with Claude Code
@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) andrdna2_spirv.py(1-5, 22, 57-117, code that importsthird_party/leonida), andtests/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 onthird_party/leonidacan be a separate PR.@KainanP on GitHub · 2026-11-25 22:22 UTC · original
Updated (one commit,
50edfe1, rebased on main9a06443):rdna2_buffer_format.py(18-27, 163, 258) andrdna2_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.rdna2_image.py,rdna2_hlsl.py(cfg_structureimport) andrdna2_spirv.pyare 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 23:25 UTC · original
Updated: rebased on main
3e258c8, with a new commit6fb5569on top of18a7bc0. 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'sSQ_TEX_BORDER_COLORenum (gfx6.json, MIT). Leonida'sgfx10_descriptors.hand the copiedgfx10_formats.jsonstay credited as GPL-3.0 code and data. The JSON is identical to Mesa'sGFX10_FORMATenum.rdna2_hlsl.py(5, 288-290) andrdna2_spirv.py(1-5, 22, 57-117): the comments now describecfg_structure.pyandrdna2spirv.pyas frozen, unmodified GPL-3.0 copies inthird_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: listsrdna2_hlsl.pyas importingcfg_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).
@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-294and:358,emu/rdna2_spirv.py:62-64,scarlett.py:287,tests/test_rdna2_hlsl_cfg.py:3, plus the THIRD_PARTY rows andsite/index.html. Could you rewrite it so the code no longer importsthird_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.docs: re-source the Leonida citations in the RDNA 2 code and credit the frozen Leonida translatorsto docs: remove the remaining Leonida references and credits (stacked on #342)6fb5569e63todc179aba6d@KainanP on GitHub · 2026-11-26 09:42 UTC · original
Thanks. Split in two, as you suggested:
third_party/leonidaany 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: onewhile (pc != END_PC)with anif (pc == …)guard per block. It is notswitch (pc), because WARP crashes on theswitchonce 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--spirvis refused by name. A clean-room structurer from published algorithms could come later as its own PR. Fixes #262.gfx10_formats.jsonis credited to Mesa'sGFX10_FORMATenum, which it matches byte for byte. With both PRs,git grep -i leonidais 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 12:48 UTC · original
Merged
main(#351) into the branch with a merge commit (72c692c), no rebase.One conflict:
runtime/d3d12_xs/virtual_memory.cppwas 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, sogit grep -i leonidais 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/leonidadropped (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).