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

Open
github-bot wants to merge 3 commits from github-bot/gh-59 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:10 UTC · original
ubiquitarianism:old-pr/9781 → main · +274 −28 · 8 files · 3 commits · draft

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

**@⁠Andretuta** on GitHub · 2026-11-24 02:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/59) `ubiquitarianism:old-pr/9781` → `main` · +274 −28 · 8 files · 3 commits · draft > 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)
The GPU fixture runners assemble every .asm for gfx1013, which has no GFX10.3 instructions: llvm-mc rejects
global_atomic_csub and buffer_atomic_csub there, so the csub rows of docs/design.md could get no GPU check. A
fixture may now name its target in the leading comment ("; mcpu: gfx1030"), next to "; mattr:", in
scripts/run_gpu_tests.py, runtime/test/shaders/build.py and the decoder parity test; without it nothing changes.

cs_global_csub.asm runs both forms on a few seeded dwords (DATA above, equal to and below M, 0xffffffff on
0x80000000, no glc with the data register kept) and 32 lanes of one wave subtracting 1 from 20 at once (old values
20..1 then 0 twelve times, M ends at 0). Passes on an RTX 4060 (NVIDIA 621.01) through both runners; the translator
with the clamp removed, or with a signed compare, fails it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
conftest.Shader, which tests/test_translate.py uses for every runtime/test/shaders/*.asm, still assembled for
gfx1013 only, so test_gpu_samples_translate_and_validate and test_wave64_emulate_uses_no_subgroup_ops failed on
cs_global_csub.asm (found by @tikD1337 in review). It now reads "; mcpu:" and "; mattr:" the way build.py and
run_gpu_tests.py do. tests/test_translate.py: 647 passed (both cases failed without this change).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
v_dot2_i32_i16, v_dot2_u32_u16, v_dot4_u32_u8, v_dot8_i32_i4 and
v_dot8_u32_u4 were CPU-checked and measured with hw_oracle, but no fixture
ran the translation on a GPU. A wave32 dump of eight words covers the signed
and unsigned elements, the 32-bit wrap, u32 and i32 clamp saturation, and the
clamp case whose products overflow while the sum stays below INT32_MAX.
Assembled for gfx1030 through #7237's "; mcpu:" header (gfx1013 has no dot
instructions). Registered in check.py and run_gpu_tests.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:42:41 +00:00
Author
Owner

@⁠wavehs on GitHub · 2026-11-24 02:27 UTC · original

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.

**@⁠wavehs** on GitHub · 2026-11-24 02:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/59#issuecomment-7120167114) **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.
Author
Owner

@⁠milk4sale on GitHub · 2026-11-24 04:49 UTC · original

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.

**@⁠milk4sale** on GitHub · 2026-11-24 04:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/59#issuecomment-7122376794) 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.
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-25 10:14 UTC · original

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).

**@⁠potatoe0100** on GitHub · 2026-11-25 10:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/59#issuecomment-7159416193) 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).
This pull request has changes conflicting with the target branch.
  • runtime/test/shaders/check.py
  • scripts/run_gpu_tests.py
  • tests/conftest.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/59/head:github-bot/gh-59'
git switch 'github-bot/gh-59'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-59'
git switch 'github-bot/gh-59'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-59'
git switch 'github-bot/gh-59'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-59'
git switch 'main'
git merge --squash 'github-bot/gh-59'
git switch 'main'
git merge --ff-only 'github-bot/gh-59'
git switch 'main'
git merge 'github-bot/gh-59'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.