mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #20] [MERGED] tests: the image atomics guard accepts the folded %true when no lane can be inactive #74
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#74
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/20
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:test-image-atomics-folded-true📝 Commits (1)
c1bcf15tests: the image atomics guard accepts the folded %true when no lane can be inactive📊 Changes
1 file changed (+7 additions, -2 deletions)
View changed files
📝
tests/semantic/test_image_atomics_guard.py(+7 -2)📄 Description
Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. This is the image-atomics half of #15; no open pull request touches
tests/semantic/test_image_atomics_guard.py.Depends on: none.
What and why
tests/semantic/test_image_atomics_guard.pyfails 47 of 49 subtests onmain@9ec34cdff, one of the two files that keep thesemantic-testsjob red:The test models the translator's guard around
OpImageTexelPointeras "a branch on anOpLoadof%active". Since #4473 the translator foldsif (%active)toif (%true)when the shader writes no EXEC (no lane can be inactive), so the walker no longer finds its load and calls a guarded access unguarded.The walker now also accepts the constant
%true, and only when the module has noOpStore %active— a shader that can deactivate lanes still has to branch on the real load. Test file only; no translator change.This patches in the old project's never-merged
pr/7292(be65e0611, same tree) against today'smain; authorship is kept (kett1m), and the commit is cherry-picked with-x. Say so here and I will withdraw it in favour of a fresh one from its author.Tested
main@9ec34cdff, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:tests/semantic/test_image_atomics_guard.pytests/semanticmain@9ec34cdffFAILED (failures=47)test_exec_computedRan 3 tests ... OKtest_exec_computed(#15)python -m compileall -q make_game.py tools testsclean,python -I scripts/check_no_game_data.py tests/semantic/test_image_atomics_guard.pyclean. Not run: Windows, any GPU test.AI-assisted: yes (the patch is kett1m's; carried over and re-verified here).
Checklist
docs/design.md, with how it was confirmed. (Not applicable: test-only.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.