mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1907] wave64_halves: model image_atomic_* as atomic memory sinks (SHADER-W64-HALVES-IMAGE-ATOMIC) #1917
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#1917
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/1907
Author: @JordanWebDev
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:contrib/w64-halves-image-atomic📝 Commits (1)
1cfb452wave64_halves: model image_atomic_* as atomic memory sinks (SHADER-W64-HALVES-IMAGE-ATOMIC)📊 Changes
3 files changed (+111 additions, -8 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
tests/semantic/test_wave64_halves.py(+102 -0)📝
tools/wave64_halves.py(+8 -7)📄 Description
Claimed in the coordination issue as: SHADER-W64-HALVES-IMAGE-ATOMIC
What and why
tools/wave64_halves.pydid not classifyimage_atomic_*instructions as atomic memory sinks:operands()(tools/wave64_halves.py:290-292): added"image_atomic"alongside"global_atomic"/"flat_atomic"sodests = [a[0]]only when"glc"is present andsrcs = list(a).Analysis.transfer()(tools/wave64_halves.py:723-757): routed"image_atomic"into the atomic sink handler (data_op = a[0],addr_ops = list(a[1:])), and updated theelectedaddress VGPR uniformity check to iterate_regs(x)(isinstance(r, tuple) and r[0] == "v") instead of onlyx.get("k") == "vgpr", so NSA coordinatevlistoperands are checked under elected-lane rules too.Analysis.stale_uses()(tools/wave64_halves.py:1776-1778): included"flat_atomic"and"image_atomic"(and dropped the deador dests and False) so scalar descriptor operands (s[0:7]) are always checked for stale-scalar reads.ImageAtomics(10 tests coveringoperands(), uniformA,lane-iddata/vector/NSA coords,lane-count,glcallocation-order, elected constantelected-side-effect, elected NSA non-uniform coordelected-lane, aggregatedBidiom, andstale-scalardescriptor) intests/semantic/test_wave64_halves.pyand updated theWave64 graphics: partition invariance (SHADER-10)contract row indocs/design.md.Tested
python -I scripts/check_no_game_data.py tools/wave64_halves.py tests/semantic/test_wave64_halves.py docs/design.md-> exit 0python -I tests/semantic/test_wave64_halves.py-> Ran 137 tests in 8.223s OKpython -I -m compileall -q make_game.py tools tests-> exit 0python -I tests/test_text_write_line_endings.py(3 OK),tests/test_report_paths.py(22 tests, 1 skipped, OK),tests/test_docs_design_rows.py(5 OK),tests/test_docs_repo_paths.py(3 OK),tests/test_docs_repeated_lines.py(2 OK),tests/test_ci_registration.py(16 OK)3f81d46ac):python -I scripts/run_semantic_tests.py tests/semantic-> 487 files, 6289 tests, 0 files failed in 213 spytestis not installed locally, sotests/test_wave64_halves_fixtures.pyand GPU fixtures were not run locally.GPUs tested: n/a
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.