Remaining Leonida references: rdna2_image.py credits, cfg_structure import in rdna2_hlsl.py, rdna2_spirv.py #262
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-25T22:21:51Z.
Follow-up to #252, as asked in https://github.com/LooperSalty/AnyXboxX/pull/252#issuecomment-7175501717. #252 re-sources the Leonida citations in the typed-buffer and 16-bit compare files, which came from #150 and #226. The references below remain on
main(9a06443). They do not cite Leonida's measurements. They credit Leonida's code or tables, or they call the frozen translator inthird_party/leonida. Each of the three files has other authors (git blame), so #252 does not touch them.PrototypeScarlett/emu/rdna2_image.pyruntime/src/gfx10_descriptors.h(GPL-3.0, itself after Mesa'ssrc/amd/registers/gfx10-rsrc.json, MIT), format names fromdata/gfx10_formats.json(Leonida)PrototypeScarlett/emu/rdna2_hlsl.pythird_party/leonida/cfg_structure.py(imported at run time)PrototypeScarlett/emu/rdna2_spirv.pythird_party/leonida/rdna2spirv.pyDone when:
rdna2_image.pycites Mesa'ssrc/amd/registers/gfx10-rsrc.json(MIT) or the AMD RDNA 2 ISA (section 8.2.6 "Image Resource") for each descriptor field and for the format names, instead of Leonida;rdna2_hlsl.pyno longer importsthird_party/leonida/cfg_structure.py(an own structuring pass, or the existingwhile+switch (pc)fallback), with the HLSL parity tests still passing on RTX, WARP and Intel UHD;rdna2_spirv.py(the SPIR-V path) stays, as code credited in THIRD_PARTY.md, or goes.Removing the code dependency belongs in its own PR, as suggested on #252. I can take the first two items if you want.
AI assistance: written with Claude Code (Claude Opus 5.5) for KainanP.
Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-25T23:26:06Z.
#252 now covers the first item.
rdna2_image.pycites the RDNA 2 ISA, §8.2.6-8.2.8 (tables 45-47), plus Mesa'sSQ_TEX_BORDER_COLORenum for the border colour values, which table 46 doesn't give. #252 also changes the comments inrdna2_hlsl.pyandrdna2_spirv.pyto describe the code inthird_party/leonida/as frozen GPL-3.0 code, not as a measurement source.This issue stays open for the other two items: removing the
cfg_structureimport fromrdna2_hlsl.py, and your decision onrdna2_spirv.py.Two more places still cite a Leonida measurement:
runtime/d3d12_xs/virtual_memory.cpp(lines 9-13, "Mesure de Leonida … #6750") andtests/test_d3d12_virtual_memory.py(line 6). That is your code, so I left it alone. It could cite our own measurement of the call on the executable instead, or say "assumed".AI use: Claude Code (Claude Opus 5.5).