mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1289] rdna2spirv: translate FLAT loads and stores as global accesses (OLD-9790) #1321
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1321
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1289
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9790-flat-mem📝 Commits (2)
5199039rdna2spirv: translate FLAT loads and stores as global accesses6cf4f2aab_control_flow: leave flat_atomic out of the A/B sweep too📊 Changes
4 files changed (+214 additions, -3 deletions)
View changed files
📝
docs/design.md(+1 -0)➕
tests/semantic/test_flat_mem.py(+168 -0)📝
tools/ab_control_flow.py(+1 -1)📝
tools/rdna2spirv.py(+44 -2)📄 Description
Claimed in the coordination issue as: OLD-9790 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144505947)
What and why
Carries forward
old-pr/9790(draft #65, original commit authortiagonogueiraa-bitpreserved across both commits; indexed in #17), rebased cleanly onto currentmain.Implements
flat_load_*andflat_store_*with 64-bit VGPR addresses intools/rdna2spirv.pyas global memory accesses:flat_load_*/flat_store_*with a 64-bit VGPR address through the existingGen.global_mem/Gen.global_subpaths (withoffscalar base), while keeping non-zero instruction offsets, FLAT atomics, 32-bit addresses, and aperture base operands (src_shared_base/src_private_base) refused withUnsupported.flat_load_*d16 readsvdst,flat_store_*treated likeglobal_store_*) and updatestools/ab_control_flow.py(NEEDSincludesflat_storeandflat_atomic).tests/semantic/test_flat_mem.py(12 tests covering dword/sub-dword/d16 loads and stores, high address dword, EXEC masking, liveness, and refused forms) and adds the contract row indocs/design.md.Tested
python -m unittest discover -s tests/semantic -p test_flat_mem.py -v: 12 tests, OK.python -I tests/test_docs_links.py: 16 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic: 472 files, 6,189 tests, 0 files failed.python -I scripts/check_no_game_data.py docs/design.md tools/rdna2spirv.py tools/ab_control_flow.py tests/semantic/test_flat_mem.py: exit 0 (no game data).GPUs tested: n/a (CPU SPIR-V interpreter semantic suite on Windows 11 Pro 64-bit, Python 3.12.10)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.