mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #860] [MERGED] docs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 (DOC-IMGATOMIC-MVK) #898
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#898
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/860
Author: @hugo0024
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:doc-imgatomic-mvk📝 Commits (1)
513129bdocs/testing.md: Known problems row for ps_imgatomic on MoltenVK 1.4.2 (DOC-IMGATOMIC-MVK)📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
docs/testing.md(+1 -0)📄 Description
Claimed in the coordination issue as: DOC-IMGATOMIC-MVK (claim)
What and why
ps_imgatomicfails in about two of three runs on Apple GPUs with MoltenVK 1.4.2 (#543). All three Apple records list it (#552, #564, #785), and the Known problems table ofdocs/testing.mdhad no row for it. This adds the row, with what a second Apple chip narrows down. One line indocs/testing.md; no test, translator or CI change. It does not close #543.Measured on an Apple M5 at
maind0da7dade(vk_bindless_test.cppandps_imgatomic.asmare unchanged since),vs_idsandps_imgatomicbuilt bybuild.py, single runs ofvk_bindless_test:mainvkQueueWaitIdleMVK_CONFIG_SHADER_DUMP_DIR) callsatomic_fetch_max,atomic_fetch_minandatomic_fetch_orontexture2d<uint, access::read_write>andtexture3d<uint, access::read_write>: Metal's own texture atomics, not a load and a store.desc_lookupbroadcasts the descriptor index from the wave's first running lane. I replaced the fourOpGroupNonUniformShufflewithOpCopyObjectof the lane's own value in the.spvasm, assembled it (the unpatched text reassembles byte-identical) and it fails as often.2D umax, 482D umin, 483D umax, no2D or. Every wrongumaxtexel holds the id of one of its own 64 pixels, the largest of only some of them: the last pixel of the texel's first four rows in 43 cases (all 32 larger ids gone), column 5 of row 5 in 39 (18 gone), column 3 of row 7 in 8 (4 gone).uminmirrors it: the first pixel of the last four rows in 39 of 48.My reading of the last point, not something I measured directly: a group of fragment threads writes its own reduced value over a more extreme one that another group stored in between, so the operation is atomic inside a group and not between two. That would also explain the clean
orimage, since a group that spans a texel's eight columns sets all eight bits itself.Not done: KosmicKrisp was not run on this machine (the row cites #543 for it), and the table "Which known problems the game's shaders reach" gets no row, because the count needs the game's shader corpus.
Tested
tests/test_docs_*.pyandtests/test_i18n_index.py: 13 files pass before and after.scripts/check_no_game_data.py docs/testing.mdpasses.macosjob log of run 45369028696 onmain21625bca8:SKIP ps_imgatomic SKIP (unsupported: the bindless set does not fit this device's descriptor limits).GPUs tested: Apple M5 (8-core GPU), MoltenVK 1.4.2, macOS 27.2.1 (26B131)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.