test_exec_computed is red on main: the fixtures landed without the translator half (SHADER-1264) #15
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Reference
No Branch/Tag specified
main
github-pr/3295
beta
docs/changelog-3483-3500
github-pr/3294
github-pr/2975
github-pr/2815
feat/gate-driver-start
feat/skip-pipelines-release
perf/lazy-compare
perf/mwaitx-wait
test/prio-ceiling-main
fix/ab-cpu-stdout
fix/gate-old-crashes
diag/ab-cpu
test/main-0312
github-pr/3291
diag/indirect-clamp-census
feat/barrier-enhanced
perf/texture-frame-ceiling
perf/dstorage-threads
fix/console-queue-dma-tables
fix/port-descriptors-record-parts
fix/frame-waits-fence
fix/console-sampler-words
fix/graphics-userdata-spill
fix/xg-reserved-layout-rotation
fix/barrier-console-flags
fix/switches-wait-test-child
test/list-value-waits
test/lot-gxdk-0412
fix/bvh-compacted-size
docs/i18n-quickstarts
feat/native-pipeline-slots
fix/clippy-leonida-gpu
fix/list-value-producers
fix/descriptor-page-straddle
fix/xmem-low-window
fix/ffx-jitter-never-zero
fix/run-stdout-closed
github-pr/2892
github-pr/2896
feat/warm-save-every
github-pr/2980
github-pr/2994
github-pr/3005
github-pr/3010
github-pr/3136
github-pr/3303
github-pr/3220
github-pr/3143
github-pr/3330
github-pr/3226
github-pr/3187
carry/3395
github-pr/2946
github-pr/2947
github-pr/2945
github-pr/2983
github-pr/3001
github-pr/3372
github-pr/3128
github-pr/3296
github-pr/2588
github-pr/3119
github-pr/3378
fix/crash-diagnostics
feat/dlss-mip-bias
fix/retired-out-of-order
fix/dxr-postbuild-barrier
fix/amd-relay-default
fix/removed-report-wait
feat/heap-twin
feat/vram-margin
github-pr/2472
github-pr/3123
github-pr/3088
assets/annonce-v1
github-pr/2794
github-pr/3300
github-pr/3304
github-pr/3308
github-pr/3367
github-pr/3369
fix/launcher-dlss-diagnostics
github-pr/3269
github-pr/2957
github-pr/3205
fix/crash-zero-guard
github-pr/3185
github-pr/3099
github-pr/3104
github-pr/3348
github-pr/3379
github-pr/3377
perf/darner-title-priority-ceiling
github-pr/3376
gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github-pr/3373
github-pr/3368
github-pr/3198
gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github-pr/3346
github-pr/3375
github-pr/2958
github-pr/3151
github-pr/3307
github-pr/3278
github-pr/3374
fix/runtime-test-conservative-fixtures
github-pr/3366
ci/shard-semantic-linux
github-pr/3354
docs/fg-limit-fps-switch
github-pr/3365
fix/read-file-hard-link
github-pr/3364
fix/book-slot-heap-never-read
github-pr/3361
github-pr/3263
github-pr/3360
github-pr/3353
github-pr/3331
fix/alias-later-queued-submissions
github-pr/3352
github-pr/3228
github-pr/3349
claude/gallant-sagan-aamatr
github-pr/3200
github-pr/3132
github-pr/3323
github-pr/3332
github-pr/3340
github-pr/3311
github-pr/3334
github-pr/3297
github-pr/3256
github-pr/2567
github-pr/2851
d3d12/agility-sdk-621
github-pr/3164
github-pr/3114
github-pr/3050
github-pr/3113
github-pr/3326
github-pr/3144
github-pr/2642
github-pr/3072
github-pr/2789
github-pr/2643
github-pr/3009
github-pr/3035
github-pr/3031
github-pr/2686
github-pr/2834
github-pr/3321
github-pr/3325
github-pr/3290
github-pr/3324
github-pr/3130
claude/fervent-curie-m19lnr
github-pr/3309
github-pr/3305
github-pr/3306
github-pr/3302
github-pr/3301
github-pr/3345
github-pr/3211
github-pr/3027
github-pr/3286
github-pr/3235
github-pr/3265
github-pr/3275
codex/skip-no-hit-ray-passes
github-pr/2823
github-pr/2911
github-pr/3262
github-pr/3125
github-pr/3206
github-pr/3250
github-pr/3238
github-pr/3188
github-pr/2952
github-pr/3217
github-pr/3168
t3/preserve-fsr-sdk-restart-path
t3/propagate-host-failure-hresult
github-pr/3209
t3/launcher-custom-parameters
github-pr/3207
github-pr/3183
github-pr/3160
github-pr/3201
ci/less-to-run
github-pr/2930
github-pr/2797
github-pr/2999
perf/native-compute-shader-forms
github-pr/3191
github-pr/3011
github-pr/3019
github-pr/2996
gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
claude/blissful-franklin-ukp7ag
github-pr/3141
github-pr/3156
github-pr/3150
github-pr/3153
github-pr/3163
github-pr/3142
github-pr/3139
github-pr/2841
github-pr/3069
github-pr/3098
github-pr/3107
github-pr/3071
github-pr/2774
github-pr/2889
github-pr/3075
github-pr/2661
github-pr/3064
github-pr/3054
github-pr/3049
github-pr/2855
github-pr/2943
github-pr/3016
github-pr/2887
github-pr/3006
github-pr/3003
github-pr/2993
notes/card-time-and-plant-flicker
github-pr/2989
feat/vulkan-rs
github-pr/2985
github-pr/2951
github-pr/2982
github-pr/752
github-pr/792
github-pr/2877
github-pr/2654
github-pr/2893
github-pr/2948
github-pr/2944
github-pr/2919
github-pr/2915
archive/ci/less-to-run/20261202T1121Z
github-pr/2800
github-pr/2822
github-pr/2833
github-pr/2840
github-pr/2831
github-pr/2832
github-pr/2801
github-pr/2890
github-pr/2891
github-pr/2664
github-pr/2807
rt-call-trace
github-pr/2755
perf/ahead-split
github-pr/2587
github-pr/2698
github-pr/2609
github-pr/3219
docs/readme-runtime-proposal
github-pr/2017
github-pr/1741
github-pr/1667
codex/coord-claim-check-20261124-7e48
v1.1.0
v1.0.1
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy#15
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?
tests/semantic/test_exec_computed.pyfails onmain(9ec34cdff) for both of its shaders. The GPU fixtures and the CPU test were merged test-first in717f011a0("GPU fixtures for computed writes to exec_lo / exec_hi (SHADER-1264)"), and the translator change they describe did not come with them; nothing in the repository or the old project's branches implements it.What happens
A computed 32-bit value written to
exec_lo/exec_himust turn on the lanes whose own bit is set. The translator still tests the value for non-zero and turns on the whole half (tools/rdna2spirv.py,set_execat:1523andexec_half_writeat:5515), so the words read back are the pre-SHADER-1264 ones:got[:len(OLD_PREFIX)]equals the test'sOLD_PREFIX, which it asserts against explicitly.python -m unittest test_exec_computed(fromtests/semantic): 2 tests, 2 failures. This is one of the two files that keep thesemantic-testsjob red on every pull request.Where the rule goes
set_exec/exec_half_writeneed to distinguish a lane-mask value (per-lane representation, all ones or zero: a move ofvcc_lo, say) from computed scalar data, and for the latter set each lane of the half from bitlane & 31of the 32-bit word. The existings_mov_b32 exec_lo, <imm or non-mask SGPR>path already does exactly that withmask_src(..., wide=False)/const(tools/rdna2spirv.py:6772-6785); the general scalar-ALU destinations (s_lshl_b32,s_add_u32,s_bfm_b32,s_not_b32,s_and_b32 exec_lo, vcc_lo, s8) still go through the non-zero test. Thecc_w32fixture'ss_and_b32 exec_lo, vcc_lo, s8case needsvcc_loas a whole 32-bit word, not the per-lane copy.No game files, no GPU: the hand-written
.sfixtures, the CPU test andtests/semanticare the check.Also red, for whoever picks it up
tests/semantic/test_image_atomics_guard.pyfails 47 of 49 subtests onmainfor the%activeguard #4473 folds to%true. A tested fix existed in the old project's branchpr/7292(be65e0611, "tests: the image atomics guard accepts the folded %true when no lane can be inactive"); it was never re-submitted here.AI-assisted: yes.
Claimed: I am taking the
test_exec_computedhalf (translator + no test changes) unless its fixture author is on it; say so here and I will drop it.releasing: the test_exec_computed half (I opened this and then read the code closely enough to see it is bigger than a one-line change).
What I found while sketching it, for whoever takes it:
mask_src(..., wide=False)converts a data word to that same per-lane form. That is exact for a move or a boolean combination of masks, and the fixtures’s_not_b32 exec_lo, s5case happens to work that way too (NOT of a per-lane 0/~0 is the per-lane NOT).s_add_u32 exec_lo, s4, 0xf0,s_lshl_b32 exec_lo, 1, s5,s_bfm_b32 exec_lo, s6, s7, and the fixture’ss_and_b32 exec_lo, vcc_lo, s8all need the real 32-bit words (vcc_lothrough the existing ballot helper,s8as data), the op on words, and only then bitlane & 31of the result. The test’s expectedword(0x000FFFFF & (base + 0xFFFF0))is exactly that.exec_half_write(half, val, const)already does the per-bit conversion for a constant word; it needs the same path for an SSA word, andsop2_b32_srcsneeds a word variant selected when the destination is EXEC and any source is data. Untouched by that: thes_mov_b32 exec_lo, <imm|non-mask SGPR>special case already reads as a word (tools/rdna2spirv.py:6772-6785), and the existingcs_exec_constbehaviour is word-correct.So it is a real but invasive change to the scalar ALU → EXEC path (wave32 and both halves of wave64), not a rule addition; I would rather the fixture author take it with that in hand. The image-atomics half in the first comment is independent and much smaller (re-land
be65e0611from the oldpr/7292).The image-atomics half is up as #20: the old
pr/7292patch (be65e0611, kett1m) cherry-picked onto9ec34cdff, authorship kept, re-verified there.After it:
tests/semanticis 463 files, 6075 tests, 1 file failed (test_exec_computed) - so thesemantic-testsjob comes down to this one file.GPU side of this, from an AMD Radeon 780M (RDNA3 iGPU, gfx1103), AMD proprietary driver 26.10.2 (LLPC), Vulkan 1.4.359, Windows 11: the two GPU fixtures fail on
main(9ec34cdff) with exactly the words the CPU interpreter returns.python -I scripts/run_gpu_tests.py --build <build>: 228/248 passed, 16 skipped, 4 failed; 257/257 shaders translated and spirv-val clean. The other two failures are thetfecases, which I reported as #31.So the wrong words are not a CPU-interpreter artefact: on real hardware the GPU returns the same pre-fix words. The per-lane expectations in the fixture comments are what the hardware should give once the translator takes each lane's own bit out of the computed value.
If someone takes the translator half, say so here and I will re-run the GPU suite on the 780M and post the numbers (it takes about three minutes on this machine).
AI-assisted (MiniMax Code).
Taken as #24 (
rdna2spirv: a computed value written to EXEC sets the lanes of its bits (SHADER-1264), ddddddddwp) - so my claim on this half is released for real: no pull request of mine touches it. I verified their branch:test_exec_computedpasses and the whole translator suite is down totest_image_atomics_guard(#20).done: SHADER-1264 -> #24 (merged in
84347bbb6). @wavehs re-ran the whole translator suite onmainafter the merge: 463 files, 6075 tests, 0 failed. The fixtures' CPU words and Mby159's 780M GPU words are the same now; nothing else is needed here.This can be closed: the translator half landed as #24, and the test is green on current
main.Re-checked on
maind0da7dade (Windows 11, Python 3.14.0):python -I scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.pygives1 files, 2 tests, 0 files failed. The path #24 left without a test is covered by #460 (merged), and the coordination issue already lists SHADER-1264 as closed.AI-assisted (Claude Code).
This is fixed on main by #24 (1b15cd23, SHADER-1264): tests/semantic/test_exec_computed.py passes at 3de22a19, along with the whole semantic suite (487 files, 6,279 tests, 0 failed; Linux, no GPU). I think this issue can be closed.
Verified on current
main0d80bc5df(Windows 11 Pro build 26300, Python 3.14.3, CPU only):python -I scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.py→ 1 file, 2 tests, 0 files failed (8 s, 16 jobs)
python -m unittest test_image_atomics_guard(run fromtests/semantic)→ Ran 6 tests, OK
Both halves are green on current main: the computed-EXEC write handling (the SHADER-1264 fix) and the image-atomics guard helper. The earlier red fixtures reflect the old translator output. The open-work row for SHADER-1264 is stale, so this looks closeable.
AI-assisted.
Both checks pass on current main (verified on 0d80bc5df, above), and SHADER-1264 is fixed by #24. This can be closed. (AI-assisted.)
finding: issue #15 is outdated relative to current main (0d80bc5df) — both SHADER-1264 and TEST-ATOMIC-GUARD are already fixed and green.
Where:
Why it matters: #15 and the Open work table in #14 still show these two items as open/red, which misleads contributors into claiming already-solved work.
Repro (no game files, no GPU; Fedora 43, Python 3.14.10, spirv-as/spirv-val on PATH, main @ 0d80bc5df):
cd tests/semantic && python3 -m unittest test_exec_computed -v-> 2/2 OKcd tests/semantic && python3 -m unittest test_image_atomics_guard -v-> 6/6 OKpython3 scripts/run_semantic_tests.py tests/semantic-> 489 files, 6288 tests, 0 files failed (445 s, 4 jobs)python3 -m compileall -q make_game.py tools tests-> OKNeeds game files / GPU: No game files, no GPU. Suggest closing #15 as resolved.
AI-Assisted Gemini
Green now:
tests/semantic/test_exec_computed.pyand its two fixtures are in the tree and pass onorigin/mainat9e7720c9e(Ran 2 tests ... OK). The translator half of SHADER-1264 is in.Closing as fixed, with both halves confirmed on
mainbd6ba97ab(macOS 27.2.1 arm64, Python 3.15.2, CPU only, no game files):python -I scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.py->1 files, 2 tests, 0 files failed. The two fixtures (cs_w32_exec_computed,cs_w64_exec_computed) and the translator change from #24 (1b15cd23) are in the tree.test_image_atomics_guard.py, 47 of 49 subtests):-p test_image_atomics_guard.py->1 files, 6 tests, 0 files failed. The%activeguard folding from #20 is onmain.The full translator suite is also green at this commit:
500 files, 6367 tests, 0 files failed in 138 s with 12 jobs.The issue had several "can be closed" confirmations (MoonEyes, efeekrb, BubsMcgee, usercristian); this records the exact runs so the next reader does not have to re-check.
AI-assisted (verification only).