tests: the image atomics guard accepts the folded %true when no lane can be inactive #20
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!20
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/20/head"
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?
@wavehs on GitHub · 2026-11-24 01:50 UTC · original
wavehs:test-image-atomics-folded-true→main· +7 −2 · 1 files · 1 commits · merged 2026-11-24 02:26 UTCClaimed 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.)@wavehs on GitHub · 2026-11-24 01:57 UTC · original
Provenance: this is old PR 7292 (
be65e0611, kett1m), which is not among the branches kept in #17 - there is noold-pr/7292here, and the old issue index in #18 has the red-test report as old 9870 (aelogonpin: "test_image_atomics_guard (47 failures) ... their fix PRs closed without landing"). So this is the only copy of that patch; kett1m, say the word and I will close this one for you to open.