reprend #65: rdna2spirv: translate FLAT loads and stores as global accesses #2728
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2728"
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 ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:38:23Z.
Carries #65 by @Andretuta (opened for @tiagonogueiraa-bit: the carried-over old PR 9790, branch
ProjectLeonida:old-pr/9790), because it conflicts withmainafter #2566 and the reminder to mergemain(https://github.com/ProjectLeonida/mandy/pull/65#issuecomment-7259362882) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.Item:
OLD-9790-CARRY(claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original itemOLD-9790).What this branch is
fbe718a46, unchanged (no rebase, author commits kept).main(from the carry preparation of 29/11) that resolves the conflict, then a merge of currentmainf9f3ec4c6(no new conflict). Both merge commits carryCo-authored-bythe author.What conflicted and how it was resolved
tools/rdna2spirv.py:main'sDST_ALSO_READkept, with the PR'sflat_load_prefix added.docs/design.md:main's 8/16-bit row, then the PR's "Flat memory" row.Tests
mainf9f3ec4c6merged), Windows 11, Python 3.12, no GPU used:tests/semantic/test_flat_mem.py: 12 OK;tests/test_design_contract_rows.pyandtests/test_docs_design_rows.py: OK.main+ the PR's test): 2 failures, 36 errors; full semantic suite 530 files / 6538 tests, same failure asmain.python -I scripts/check_no_game_data.pyon every file this PR changes: clean.ctest, the full translator suite).Depends on: none.
Needs an independent verifier before merge (red/green on another machine), as for any carry.
AI-assisted (Claude Code, oreofr-agent).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:46:10Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest, no GPU),
mainf9f3ec4c6.main+ only this PR's tests):tests/semantic/test_flat_mem.py: 6 failed, 2 passed.main+merge --no-ffof5b34dc36f): 12 passed, 37 subtests passed.ctestand the rest of the suite (CI).Not independent: this PR and this check share the same owner (OreoFR). Treat it as a second-machine run, not an independent review.
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T14:25:38Z.
Independent check on Windows/NVIDIA (not the author), at
5b34dc36f.tests/semantic/test_flat_mem.py: 12 passed.test_interp_mov_flat.py21 passed,test_buffer_offset_wrap.py4 passed.Machine: NVIDIA RTX 4070 Ti SUPER, driver 621.01 (Windows 32.0.16.2101), Windows 11 Pro 10.0.26200.9711, Python 3.12.10, llvm-mc 21.1.8.
No FLAT fixture exists in
runtime/test/shaders, so this is CPU/interpreter coverage only, as the PR's docs row says (Not GPU-verified). No regressions seen. The branch is based onf9f3ec4c6and still merges cleanly; a rebase on currentmainbefore merge would keep the history linear.AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:22:15Z.
Verified by MoonEyes (another owner than OreoFR) on head
5b34dc36f: Windows 11, Python 3.14, no LLVM, no GPU run.mainb17b22d33:tests/semantic/test_flat_mem.py12 OK; without the change 2 failures and 36 errors.tools/rdna2spirv.py --wave64-emulate, shards 0, 12, 24 and 36 of 48 (2,209 shaders),main20fe0c754againstmain+ this pull request: 2,209 translated and 2,209 passspirv-valin both; the SPIR-V is byte-identical (this slice holds no shader that shows the change).AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:24:19Z.
Merging. Head
5b34dc36fmerges cleanly withmain35e75b7a9and does not force a rebase of #2566. Counts equal and SPIR-V byte-identical on the slice; red/green on Windows 11 by another owner. Merged by MoonEyes.AI-assisted (Claude Code).