GPU fixture for the packed integer dot products (cs_w32_dot_int) #59

Closed
Andretuta wants to merge 3 commits from upstream-pr/59 into main
Andretuta commented 2026-11-24 02:10:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:10:10Z.


Carried over from old PR 9781 by Joaco9020 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9781, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
Joaco9020: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claim: https://github.com/ItsNotRexed/Leonida/issues/9522#issuecomment-7114878745 (new TEST item)

Re-submission of #9672, which was closed in the PR cleanup. It builds on #7237 by @xelerb-debug (also closed in the cleanup): that PR's two commits, the ; mcpu: fixture header and its cs_global_csub fixture, are included here unchanged and keep @xelerb-debug as their author; this PR's own change is the last commit. If #7237 is re-opened and merged first, this reduces to that last commit.

What and why

docs/design.md's "Packed integer dot products" row is CPU-checked (tests/semantic) and measured with tools/hw_oracle, but no checked-in fixture runs the translation of v_dot2_i32_i16, v_dot2_u32_u16, v_dot4_u32_u8, v_dot8_i32_i4 or v_dot8_u32_u4 on a GPU.

runtime/test/shaders/cs_w32_dot_int.asm is a wave32 dump like cs_w32_new_ops / cs_w32_dot2_f16: lane 0 stores eight words, each derived in the file header from the row's rule (element products + S2, sign- or zero-extended elements, 32-bit wrap; clamp saturates the exact sum):

out instruction operands value
0 v_dot2_i32_i16 0x0003fffe, 0x0005fff9, 100 (-2)(-7) + 3·5 + 100 = 129
1 v_dot2_u32_u16 0xffff8001, 0xffff0003, 0xffffff00 wraps once: 0xffff7f04
2 v_dot4_u32_u8 0x80ff0102, 0x7f02ff03, 5 17032
3 v_dot8_i32_i4 0x8f01f7a3, 0x12345678, -3 -38
4 v_dot8_u32_u4 same, 7 260
5 v_dot2_u32_u16 … clamp all 0xffffffff saturates: 0xffffffff
6 v_dot2_i32_i16 … clamp 0x80008000 twice, -2 2^31 - 2 = 0x7ffffffe: the products overflow, the sum does not, so no saturation
7 v_dot2_i32_i16 … clamp 0x80008000 twice, 0 saturates: 0x7fffffff

Out 1 and 3/4 use the same bits signed and unsigned, so a signedness mix-up changes a word; out 6 vs 7 checks that clamp saturates the exact sum, not a wrapped one.

Registered in check.py (WAVE32_DUMPS + expected words) and run_gpu_tests.py (the three wave32 lists). The design row gets one sentence. The VOP2 v_dot*c_* forms don't assemble with llvm-mc for gfx1013 or gfx1030, so they stay CPU-checked; the sentence says so.

Tested

Windows 11, NVIDIA GeForce RTX 3070 (Ampere), driver 621.01, MSVC 19.44 (VS 2022 Build Tools), Vulkan SDK 1.4.363.1, llvm-mc 23.1.6 (conda-forge, AMDGPU), Python 3.12.10, on this branch (rebased onto main 2d53a8055):

  • run_gpu_tests.py --filter cs_w32_dot: translated + spirv-val, PASS: 129 4294934276 17032 4294967258 260 4294967295 2147483646 2147483647, all eight as derived.
  • build.py + check.py: cs_w32_dot_int ok, cs_global_csub ok (#7237's fixture, still passing after the rebase).
  • tests/test_rdna2_decode.py with LLVM_MC set: the llvm-mc parity check passes on both new fixtures; it later fails on cs_w32_permlane_fi.asm and ps_w64_a_discard.asm, exactly as on main (#8044 covers the permlane one).
  • tests/test_run_gpu_tests.py, tests/test_runner_calls_all_tests.py, tests/test_rdna2_decode.py, tests/test_design_contract_rows.py, tests/test_docs_links.py, tests/test_docs_repo_paths.py: OK. tests/test_shader_checks.py has the same 15 failures with and without this change (the ones main already has, #7122).
  • scripts/check_no_game_data.py on the new fixture and docs/design.md: clean.

AMD: @ThomasSAMP ran it on an RX 9070 XT (RDNA4, Windows): the same eight words, plus a negative control (a zero-extended v_dot8_i32_i4 changes only out[3]); see the comments. An RDNA2 run is still open.

AI-assisted: yes (Claude).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464743533 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/59). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:10:10Z. --- > Carried over from **old PR 9781** by `Joaco9020` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9781`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `Joaco9020`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claim: https://github.com/ItsNotRexed/Leonida/issues/9522#issuecomment-7114878745 (new TEST item) Re-submission of `#9672`, which was closed in the PR cleanup. It builds on `#7237` by `@xelerb-debug` (also closed in the cleanup): that PR's two commits, the `; mcpu:` fixture header and its `cs_global_csub` fixture, are included here unchanged and keep `@xelerb-debug` as their author; this PR's own change is the last commit. If `#7237` is re-opened and merged first, this reduces to that last commit. ### What and why `docs/design.md`'s "Packed integer dot products" row is CPU-checked (`tests/semantic`) and measured with `tools/hw_oracle`, but no checked-in fixture runs the translation of `v_dot2_i32_i16`, `v_dot2_u32_u16`, `v_dot4_u32_u8`, `v_dot8_i32_i4` or `v_dot8_u32_u4` on a GPU. `runtime/test/shaders/cs_w32_dot_int.asm` is a wave32 dump like `cs_w32_new_ops` / `cs_w32_dot2_f16`: lane 0 stores eight words, each derived in the file header from the row's rule (element products + S2, sign- or zero-extended elements, 32-bit wrap; `clamp` saturates the exact sum): | out | instruction | operands | value | |---|---|---|---| | 0 | `v_dot2_i32_i16` | `0x0003fffe, 0x0005fff9, 100` | (-2)(-7) + 3·5 + 100 = 129 | | 1 | `v_dot2_u32_u16` | `0xffff8001, 0xffff0003, 0xffffff00` | wraps once: `0xffff7f04` | | 2 | `v_dot4_u32_u8` | `0x80ff0102, 0x7f02ff03, 5` | 17032 | | 3 | `v_dot8_i32_i4` | `0x8f01f7a3, 0x12345678, -3` | -38 | | 4 | `v_dot8_u32_u4` | same, `7` | 260 | | 5 | `v_dot2_u32_u16 … clamp` | all `0xffffffff` | saturates: `0xffffffff` | | 6 | `v_dot2_i32_i16 … clamp` | `0x80008000` twice, `-2` | 2^31 - 2 = `0x7ffffffe`: the products overflow, the sum does not, so no saturation | | 7 | `v_dot2_i32_i16 … clamp` | `0x80008000` twice, `0` | saturates: `0x7fffffff` | Out 1 and 3/4 use the same bits signed and unsigned, so a signedness mix-up changes a word; out 6 vs 7 checks that clamp saturates the exact sum, not a wrapped one. Registered in `check.py` (`WAVE32_DUMPS` + expected words) and `run_gpu_tests.py` (the three wave32 lists). The design row gets one sentence. The VOP2 `v_dot*c_*` forms don't assemble with llvm-mc for gfx1013 or gfx1030, so they stay CPU-checked; the sentence says so. ### Tested Windows 11, **NVIDIA GeForce RTX 3070** (Ampere), driver 621.01, MSVC 19.44 (VS 2022 Build Tools), Vulkan SDK 1.4.363.1, llvm-mc 23.1.6 (conda-forge, AMDGPU), Python 3.12.10, on this branch (rebased onto `main` `2d53a8055`): - `run_gpu_tests.py --filter cs_w32_dot`: translated + `spirv-val`, **PASS**: `129 4294934276 17032 4294967258 260 4294967295 2147483646 2147483647`, all eight as derived. - `build.py` + `check.py`: `cs_w32_dot_int ok`, `cs_global_csub ok` (`#7237`'s fixture, still passing after the rebase). - `tests/test_rdna2_decode.py` with `LLVM_MC` set: the llvm-mc parity check passes on both new fixtures; it later fails on `cs_w32_permlane_fi.asm` and `ps_w64_a_discard.asm`, exactly as on `main` (`#8044` covers the permlane one). - `tests/test_run_gpu_tests.py`, `tests/test_runner_calls_all_tests.py`, `tests/test_rdna2_decode.py`, `tests/test_design_contract_rows.py`, `tests/test_docs_links.py`, `tests/test_docs_repo_paths.py`: OK. `tests/test_shader_checks.py` has the same 15 failures with and without this change (the ones `main` already has, `#7122`). - `scripts/check_no_game_data.py` on the new fixture and `docs/design.md`: clean. AMD: `@ThomasSAMP` ran it on an RX 9070 XT (RDNA4, Windows): the same eight words, plus a negative control (a zero-extended `v_dot8_i32_i4` changes only out[3]); see the comments. An RDNA2 run is still open. AI-assisted: yes (Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
wavehs commented 2026-11-24 02:27:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wavehs on 2026-11-24T02:27:45Z.


macOS arm64 verification (Apple M3 Pro) — both new fixtures pass on MoltenVK and KosmicKrisp, the suites do not move, and one list is short an entry

Head d24ef7559, merge-base 2d53a8055; merged onto current main (9ec34cdff) as 2de4fd054 with no conflicts. Everything below is that merged tree. 8 files +274/−28. Host: macOS 27.2.1, Apple M3 Pro (arm64, subgroup 4..32), CPython 3.15.2, llvm-mc 23.1.5 (AMDGPU), Apple clang 21.0.0, MoltenVK 1.4.0, KosmicKrisp (Mesa 26.3.0).

Check Merged 2de4fd054 main 9ec34cdff
scripts/run_semantic_tests.py tests/semantic 463 files, 6,075 tests, 2 failed 463 files, 6,075 tests, 2 failed
the two failing files test_exec_computed, test_image_atomics_guard the same two
run_gpu_tests.py, all cases, MoltenVK 184/250 passed, 61 skipped 182/248, 61 skipped
run_gpu_tests.py, all cases, KosmicKrisp 179/250 passed, 64 skipped 177/248, 64 skipped

After normalising the temporary work paths, the diff of every PASS/FAIL/SKIP line against the main run is exactly the two new lines, on both drivers:

+ PASS cs_global_csub    0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2
+ PASS cs_w32_dot_int    129 4294934276 17032 4294967258 260 4294967295 2147483646 2147483647

So 250 = 248 + 2, +2 passed on each driver, no fixture changed verdict, value or skip reason. spirv-val: 259 shaders, 258 translated, 258 valid (the ps_ij_computed count is the known --f16-interp-fallback skip, as on main). python -I scripts/check_no_game_data.py on all eight changed files: clean.

The words are right, not just stable. I re-derived all eight cs_w32_dot_int words from the .asm header by hand and they match what both GPUs returned: 129; 0xFFFF7F04 (32769·3 + 65535² + 0xFFFFFF00 wraps once); 17032; 0xFFFFFFDA (−35 − 3, the element-wise nibble pairing, not a permutation — I checked that the natural order gives −35); 260; 0xFFFFFFFF (u32 clamp); 0x7FFFFFFE (2·32768² − 2: the products overflow, the sum fits); 0x7FFFFFFF (2³¹ saturates). Likewise all eight cs_global_csub words: 0x10070905, 0x0D070000, 0x00630064, 0x80000000, 0, 0xFFFFFFFE (unsigned compare), 0x000C0500 (12 lanes got 0), 0x01D800D2 (old values sum 210, 472 left on the no-glc dword).

Three negative controls, on the GPU through the translator (each sabotage applied to tools/rdna2spirv.py, fixture run, file restored):

  • remove the csub clamp (OpISub in place of the OpSelect): FAIL cs_global_csub 0x10070905 0xfffffffe … — the wrapping dword shows;
  • make the csub compare signed (OpSGreaterThan for OpUGreaterThan): FAIL cs_global_csub … 0x0 … — out[5], case E, is exactly the word the design row says catches it;
  • treat the i4 dot as unsigned (op.endswith(("i16",))): FAIL cs_w32_dot_int … 250 … — out[3] instead of 0xFFFFFFDA.

So both fixtures bite on real hardware, and the design row's "with the clamp removed, or with a signed compare, fails it" is now measured on a second driver stack, not only asserted.

The ; mcpu: plumbing is necessary and works. llvm-mc 23.1.5 rejects global_atomic_csub and all five dot ops for gfx1013 ("instruction not supported on this GPU") and encodes them for gfx1030, so the header line is the only way these fixtures can be assembled at all. build.py, run_gpu_tests.py and tests/conftest.py each grew their own reader for it; tests/test_rdna2_decode.py reads it with re.M over the whole file rather than the leading comments. Three copies of the same rule that must agree is a drift hazard — one helper in runtime/test/shaders/ (or tools/mc_command.py, which the runner already imports) would be cheaper than three.

One real (small) gap. cs_global_csub is added to check.py's GLOBAL_OFFSET (runtime/test/shaders/check.py:343) but not to WAVE32_DUMPS (:106-107), so :1827 runs it with require_wave64=True. Measured here:

$ build59/vk_compute_test /tmp/sh59/spirv/cs_global_csub.spv 40 dump --require-wave64
device: Apple M3 Pro (subgroup 4..32)
full 64-wide compute subgroups unavailable          # exit 77 -> check.py prints SKIP
$ build59/vk_compute_test /tmp/sh59/spirv/cs_global_csub.spv 40 dump
40 groups x 64: 0 mismatches
out[0..7] = 268896517 218562560 6488164 2147483648 0 4294967294 787712 30933202

The fixture declares ; mattr: +wavefrontsize32,-wavefrontsize64 and runs unmodified on a 32-wide subgroup, so check.py should not ask for 64 for it. cs_w32_dot_int was added to WAVE32_DUMPS in this PR; cs_global_csub was missed. One word on line 107 fixes it, and it matters because check.py is the harness tools/progress_dashboard.py reads.

For the design row: it currently names an RTX 4060 / RTX 3070. Both fixtures also pass on Apple M3 Pro through MoltenVK 1.4.0 and KosmicKrisp (Mesa 26.3.0) with the words above, if you want the row to say so.

No game files. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7120167114 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/59#issuecomment-7120167114). Originally posted by [wavehs](https://github.com/wavehs) on 2026-11-24T02:27:45Z. --- **macOS arm64 verification (Apple M3 Pro) — both new fixtures pass on MoltenVK and KosmicKrisp, the suites do not move, and one list is short an entry** Head `d24ef7559`, merge-base `2d53a8055`; merged onto current `main` (`9ec34cdff`) as `2de4fd054` with no conflicts. Everything below is that merged tree. 8 files +274/−28. Host: macOS 27.2.1, Apple M3 Pro (arm64, subgroup 4..32), CPython 3.15.2, llvm-mc 23.1.5 (AMDGPU), Apple clang 21.0.0, MoltenVK 1.4.0, KosmicKrisp (Mesa 26.3.0). | Check | Merged `2de4fd054` | `main` `9ec34cdff` | |---|---|---| | `scripts/run_semantic_tests.py tests/semantic` | **463 files, 6,075 tests, 2 failed** | 463 files, 6,075 tests, 2 failed | | the two failing files | `test_exec_computed`, `test_image_atomics_guard` | the same two | | `run_gpu_tests.py`, all cases, MoltenVK | **184/250 passed, 61 skipped** | 182/248, 61 skipped | | `run_gpu_tests.py`, all cases, KosmicKrisp | **179/250 passed, 64 skipped** | 177/248, 64 skipped | After normalising the temporary work paths, the diff of every `PASS`/`FAIL`/`SKIP` line against the `main` run is **exactly the two new lines, on both drivers**: ``` + PASS cs_global_csub 0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2 + PASS cs_w32_dot_int 129 4294934276 17032 4294967258 260 4294967295 2147483646 2147483647 ``` So 250 = 248 + 2, +2 passed on each driver, no fixture changed verdict, value or skip reason. `spirv-val`: 259 shaders, 258 translated, 258 valid (the `ps_ij_computed` count is the known `--f16-interp-fallback` skip, as on `main`). `python -I scripts/check_no_game_data.py` on all eight changed files: clean. **The words are right, not just stable.** I re-derived all eight `cs_w32_dot_int` words from the .asm header by hand and they match what both GPUs returned: 129; `0xFFFF7F04` (32769·3 + 65535² + 0xFFFFFF00 wraps once); 17032; `0xFFFFFFDA` (−35 − 3, the element-wise nibble pairing, not a permutation — I checked that the natural order gives −35); 260; `0xFFFFFFFF` (u32 clamp); `0x7FFFFFFE` (2·32768² − 2: the products overflow, the sum fits); `0x7FFFFFFF` (2³¹ saturates). Likewise all eight `cs_global_csub` words: `0x10070905`, `0x0D070000`, `0x00630064`, `0x80000000`, `0`, `0xFFFFFFFE` (unsigned compare), `0x000C0500` (12 lanes got 0), `0x01D800D2` (old values sum 210, 472 left on the no-`glc` dword). **Three negative controls, on the GPU through the translator** (each sabotage applied to `tools/rdna2spirv.py`, fixture run, file restored): - remove the csub clamp (`OpISub` in place of the `OpSelect`): `FAIL cs_global_csub 0x10070905 0xfffffffe …` — the wrapping dword shows; - make the csub compare signed (`OpSGreaterThan` for `OpUGreaterThan`): `FAIL cs_global_csub … 0x0 …` — out[5], case E, is exactly the word the design row says catches it; - treat the `i4` dot as unsigned (`op.endswith(("i16",))`): `FAIL cs_w32_dot_int … 250 …` — out[3] instead of `0xFFFFFFDA`. So both fixtures bite on real hardware, and the design row's "with the clamp removed, or with a signed compare, fails it" is now measured on a second driver stack, not only asserted. **The `; mcpu:` plumbing is necessary and works.** llvm-mc 23.1.5 rejects `global_atomic_csub` and all five dot ops for gfx1013 ("instruction not supported on this GPU") and encodes them for gfx1030, so the header line is the only way these fixtures can be assembled at all. build.py, `run_gpu_tests.py` and `tests/conftest.py` each grew their own reader for it; `tests/test_rdna2_decode.py` reads it with `re.M` over the whole file rather than the leading comments. Three copies of the same rule that must agree is a drift hazard — one helper in `runtime/test/shaders/` (or `tools/mc_command.py`, which the runner already imports) would be cheaper than three. **One real (small) gap.** `cs_global_csub` is added to `check.py`'s `GLOBAL_OFFSET` (`runtime/test/shaders/check.py:343`) but not to `WAVE32_DUMPS` (`:106-107`), so `:1827` runs it with `require_wave64=True`. Measured here: ``` $ build59/vk_compute_test /tmp/sh59/spirv/cs_global_csub.spv 40 dump --require-wave64 device: Apple M3 Pro (subgroup 4..32) full 64-wide compute subgroups unavailable # exit 77 -> check.py prints SKIP $ build59/vk_compute_test /tmp/sh59/spirv/cs_global_csub.spv 40 dump 40 groups x 64: 0 mismatches out[0..7] = 268896517 218562560 6488164 2147483648 0 4294967294 787712 30933202 ``` The fixture declares `; mattr: +wavefrontsize32,-wavefrontsize64` and runs unmodified on a 32-wide subgroup, so `check.py` should not ask for 64 for it. `cs_w32_dot_int` was added to `WAVE32_DUMPS` in this PR; `cs_global_csub` was missed. One word on line 107 fixes it, and it matters because `check.py` is the harness `tools/progress_dashboard.py` reads. **For the design row:** it currently names an RTX 4060 / RTX 3070. Both fixtures also pass on Apple M3 Pro through MoltenVK 1.4.0 and KosmicKrisp (Mesa 26.3.0) with the words above, if you want the row to say so. No game files. AI-assisted.
milk4sale commented 2026-11-24 04:49:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by milk4sale on 2026-11-24T04:49:50Z.


The csub part of this PR is now in #411, which carries xelerb-debug's two commits unchanged: cs_global_csub and the ; mcpu: header. #411 also adds a second fixture, cs_w32_csub_ext (inactive lanes on a trap word, buffer elements past the V# range), and runs on an RTX 4070 Ti and a Radeon 610M (gfx1036). Once #411 lands, this PR reduces to its cs_w32_dot_int commit.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7122376794 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/59#issuecomment-7122376794). Originally posted by [milk4sale](https://github.com/milk4sale) on 2026-11-24T04:49:50Z. --- The csub part of this PR is now in #411, which carries `xelerb-debug`'s two commits unchanged: `cs_global_csub` and the `; mcpu:` header. #411 also adds a second fixture, `cs_w32_csub_ext` (inactive lanes on a trap word, buffer elements past the V# range), and runs on an RTX 4070 Ti and a Radeon 610M (gfx1036). Once #411 lands, this PR reduces to its `cs_w32_dot_int` commit.
potatoe0100 commented 2026-11-25 10:14:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by potatoe0100 on 2026-11-25T10:14:07Z.


Tested d24ef7559 merged onto main 57ba40bd6, native Windows 11 Pro 26H2 (build 26300), NVIDIA GeForce RTX 4060 (subgroup 32), driver 621.14, VS 2022 RelWithDebInfo + Ninja, llvm-mc 21.1.8.

It no longer merges cleanly: scripts/run_gpu_tests.py conflicts with main's TEXT_ONLY_MARK text-only path in assemble_to_s and with the compute name list. For the test I kept both: the text-only early return, then this PR's asm_target(), and "cs_w32_dot_int" added to main's list.

  • Whole suite: 211/265 passed, 53 skipped vs main 209/263, 53 skipped. The only difference in the PASS/FAIL/SKIP lines is the two new ones:
    • PASS cs_global_csub 0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2
    • PASS cs_w32_dot_int 129 4294934276 17032 4294967258 260 4294967295 2147483646 2147483647
  • Both also pass with LEONIDA_W64_EMULATE=1 and under LEONIDA_VK_VALIDATION=1 VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 (0 VUIDs).
  • The one failure in both runs, cs_imgatomic_ext, is the same on main.

AI-assisted testing (non-developer tester).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7159416193 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/59#issuecomment-7159416193). Originally posted by [potatoe0100](https://github.com/potatoe0100) on 2026-11-25T10:14:07Z. --- Tested `d24ef7559` merged onto `main` `57ba40bd6`, native Windows 11 Pro 26H2 (build 26300), NVIDIA GeForce RTX 4060 (subgroup 32), driver 621.14, VS 2022 RelWithDebInfo + Ninja, llvm-mc 21.1.8. It no longer merges cleanly: `scripts/run_gpu_tests.py` conflicts with `main`'s `TEXT_ONLY_MARK` text-only path in `assemble_to_s` and with the compute name list. For the test I kept both: the text-only early return, then this PR's `asm_target()`, and `"cs_w32_dot_int"` added to `main`'s list. - Whole suite: **211/265 passed, 53 skipped** vs `main` 209/263, 53 skipped. The only difference in the PASS/FAIL/SKIP lines is the two new ones: - `PASS cs_global_csub 0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2` - `PASS cs_w32_dot_int 129 4294934276 17032 4294967258 260 4294967295 2147483646 2147483647` - Both also pass with `LEONIDA_W64_EMULATE=1` and under `LEONIDA_VK_VALIDATION=1 VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1` (0 VUIDs). - The one failure in both runs, `cs_imgatomic_ext`, is the same on `main`. AI-assisted testing (non-developer tester).
MoonEyes commented 2026-11-30 18:02:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T18:02:48Z.


Maintainer review: not ready to merge. The PR is still a draft, conflicts with current main and its current CI was cancelled. The cs_global_csub portion overlaps #411, which remains open/conflicting; please reduce this PR to the distinct dot fixture once the csub work is carried by #411, or clarify the intended ownership. The independent review also found the csub fixture missing from WAVE32_DUMPS, making the harness skip it on subgroup-32 devices. Resolve that coverage issue, update against main, then rerun current focused/full validation before requesting merge.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7287249130 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/59#issuecomment-7287249130). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T18:02:48Z. --- Maintainer review: not ready to merge. The PR is still a draft, conflicts with current main and its current CI was cancelled. The `cs_global_csub` portion overlaps #411, which remains open/conflicting; please reduce this PR to the distinct dot fixture once the csub work is carried by #411, or clarify the intended ownership. The independent review also found the csub fixture missing from `WAVE32_DUMPS`, making the harness skip it on subgroup-32 devices. Resolve that coverage issue, update against main, then rerun current focused/full validation before requesting merge.
aslan2142 commented 2026-12-01 11:42:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:42:19Z.


Draft PR review note: this carried-over PR currently conflicts with main (in docs/design.md, runtime/test/shaders/check.py, and scripts/run_gpu_tests.py), its CI was cancelled, and its cs_global_csub commits overlap open PR #411. Please coordinate with #411 (reducing this PR to the distinct cs_w32_dot_int fixture), rebase onto current main, mark ready, and run fresh CI.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310014644 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/59#issuecomment-7310014644). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:42:19Z. --- Draft PR review note: this carried-over PR currently conflicts with `main` (in `docs/design.md`, `runtime/test/shaders/check.py`, and `scripts/run_gpu_tests.py`), its CI was cancelled, and its `cs_global_csub` commits overlap open PR `#411`. Please coordinate with `#411` (reducing this PR to the distinct `cs_w32_dot_int` fixture), rebase onto current `main`, mark ready, and run fresh CI. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 12:06:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:06:08Z.


Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.

(AI-assisted triage.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310651734 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/59#issuecomment-7310651734). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:06:08Z. --- Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. *(AI-assisted triage.)*
aslan2142 commented 2026-12-01 12:57:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:57:02Z.

Review: CHANGES_REQUESTED


Now ready for review, requesting changes before merge:

  • Merge conflicts (CONFLICTING/DIRTY): conflicts with main in docs/design.md, runtime/test/shaders/build.py, runtime/test/shaders/check.py, and scripts/run_gpu_tests.py.
  • Scope overlap with #411: per overlap adjudication (cluster C2), #411 (GPU-ATOMIC-CSUB) owns runtime/test/shaders/cs_global_csub.asm. Please drop the cs_global_csub hunks so this PR stays focused on runtime/test/shaders/cs_w32_dot_int.asm.
  • CI: checks from 2026-11-24 were cancelled. Please rebase onto current main and run fresh green CI.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6131688559 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/59#pullrequestreview-6131688559). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:57:02Z. **Review:** CHANGES_REQUESTED --- Now ready for review, requesting changes before merge: - **Merge conflicts (`CONFLICTING`/`DIRTY`)**: conflicts with `main` in `docs/design.md`, `runtime/test/shaders/build.py`, `runtime/test/shaders/check.py`, and `scripts/run_gpu_tests.py`. - **Scope overlap with `#411`**: per overlap adjudication (cluster C2), `#411` (`GPU-ATOMIC-CSUB`) owns `runtime/test/shaders/cs_global_csub.asm`. Please drop the `cs_global_csub` hunks so this PR stays focused on `runtime/test/shaders/cs_w32_dot_int.asm`. - **CI**: checks from 2026-11-24 were cancelled. Please rebase onto current `main` and run fresh green CI. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 17:20:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:20:01Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319131526 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/59#issuecomment-7319131526). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:20:01Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!59
No description provided.