GPU fixtures for global_atomic_csub / buffer_atomic_csub (GPU-ATOMIC-CSUB) #411

Closed
milk4sale wants to merge 6 commits from upstream-pr/411 into main
milk4sale commented 2026-11-24 04:47:35 +00:00 (Migrated from github.com)

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


GPU-ATOMIC-CSUB (claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121459552)

What and why

The docs/design.md row "global_atomic_csub, buffer_atomic_csub (GFX10.3)" is CPU-checked only on main (tests/semantic/test_atomic_csub.py) and says that the translation is not GPU-verified.

Draft #59 (carried over, Unclaimed) already has a GPU fixture for it, runtime/test/shaders/cs_global_csub.asm, from old PR 7237 by xelerb-debug. This PR takes that part over on its own:

  • xelerb-debug's two commits, cherry-picked unchanged with their author: the cs_global_csub fixture and the ; mcpu: fixture header (build.py, run_gpu_tests.py, tests/test_rdna2_decode.py, tests/conftest.py). The fixture covers both forms:

    • DATA above, equal to and below M
    • 0xffffffff on 0x80000000
    • glc and no glc
    • 32 lanes on one dword
  • One new commit adds runtime/test/shaders/cs_w32_csub_ext.asm, a wave32 fixture for what that file leaves out:

    • Inactive lanes: for each form, the 16 even lanes work on one dword while the odd lanes are inactive and aimed at a trap word. Both trap words stay unchanged, the inactive lanes keep vdst/vdata, and the active lanes get their old values. Each lane ORs 1 << lane into a word, which gives the exact mask. A lane mask copied into a VGPR would read only that lane's bit in the translator (the "Whole-wave masks" row).
    • Buffer bounds: buffer_atomic_csub goes through a V# with num_records 8. Offset 4 is in range. Offsets 8 (glc) and 12 (no glc) are out of range: memory is untouched, and vdata is 0 with glc and kept without.

    Every expected word is derived in the file header from three docs/design.md rows:

    • the csub row
    • "Atomic natural alignment": a dropped glc lane gets 0, and an inactive lane keeps its register
    • "Buffer bounds checking"

    It is registered in check.py and run_gpu_tests.py the way cs_w32_fcmpswap is. It is also in WAVE32_LANE_DUMPS, because its masks cover 32 lanes.

  • The csub row now names both fixtures, the GPUs, and the faults each fixture catches.

#59 would then reduce to its cs_w32_dot_int commit, on top of this one.

out cs_w32_csub_ext value
0 lanes whose global vdst kept its preset 0xaaaaaaaa
1 global dword after (100 - 16) | trap word << 16 0x77770054
2 sum of global old values (100..85) | sum of buffer old values (50, 48, ..., 20) << 16 0x023005c8
3 lanes whose buffer vdata kept its preset 0xaaaaaaaa
4 buffer dword after (50 - 32) | trap word << 16 0x55550012
5 in range, glc: old 30 | M after (25) << 16 0x0019001e
6 past the range, glc: vdata 0 | M kept (0x99) << 16 0x00990000
7 past the range, no glc: vdata kept (3) | M kept (0xab) << 16 0x00ab0003

Depends on: none.

Tested

CachyOS (Linux 7.3.3) on this branch (main ece4ba5b3 plus 3 commits), with llvm-mc 23.1.4 and the runtime/build test programs, whose sources are the same as this branch's. The device was picked with VK_DRIVER_FILES. Both fixtures were run with run_gpu_tests.py --filter csub and with build.py + check.py:

GPU driver native LEONIDA_W64_EMULATE=1
NVIDIA GeForce RTX 4070 Ti 620.70.06 both PASS both PASS
AMD Radeon 610M (Ryzen 9 7900X iGPU, gfx1036, RDNA2) RADV, Mesa 26.2.6 both PASS both PASS

I planted translator faults one at a time and reverted each. The results are the same on both GPUs:

fault cs_global_csub cs_w32_csub_ext
plain subtract, no clamp FAIL pass
signed compare FAIL pass
no glc return FAIL FAIL
EXEC ignored FAIL FAIL
V# bounds ignored (buffer form) pass FAIL
a dropped glc lane gets its DATA, not 0 pass FAIL

Other checks:

  • python -m unittest discover -s tests/semantic -p test_atomic_csub.py: OK.
  • These pass with python -I: test_run_gpu_tests, test_runner_calls_all_tests, test_design_contract_rows, test_docs_links, test_docs_repo_paths, test_text_write_line_endings and test_shader_checks.
  • tests/test_rdna2_decode.py with LLVM_MC set: both csub fixtures pass the llvm-mc parity check. The test then fails on cs_w32_permlane_fi.asm, as it does on main.
  • Not run: the pytest-based tests, which are what the conftest.py change serves. pytest isn't installed here.
  • scripts/check_no_game_data.py on the changed files: clean.

AI-assisted: yes (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5466260070 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/411). Originally posted by [milk4sale](https://github.com/milk4sale) on 2026-11-24T04:47:35Z. --- **GPU-ATOMIC-CSUB** (claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121459552) ### What and why The `docs/design.md` row "`global_atomic_csub`, `buffer_atomic_csub` (GFX10.3)" is CPU-checked only on `main` (`tests/semantic/test_atomic_csub.py`) and says that the translation is not GPU-verified. Draft #59 (carried over, Unclaimed) already has a GPU fixture for it, `runtime/test/shaders/cs_global_csub.asm`, from old PR 7237 by `xelerb-debug`. This PR takes that part over on its own: - **`xelerb-debug`'s two commits**, cherry-picked unchanged with their author: the `cs_global_csub` fixture and the `; mcpu:` fixture header (`build.py`, `run_gpu_tests.py`, `tests/test_rdna2_decode.py`, `tests/conftest.py`). The fixture covers both forms: - `DATA` above, equal to and below `M` - `0xffffffff` on `0x80000000` - `glc` and no `glc` - 32 lanes on one dword - **One new commit** adds `runtime/test/shaders/cs_w32_csub_ext.asm`, a wave32 fixture for what that file leaves out: - **Inactive lanes:** for each form, the 16 even lanes work on one dword while the odd lanes are inactive and aimed at a trap word. Both trap words stay unchanged, the inactive lanes keep `vdst`/`vdata`, and the active lanes get their old values. Each lane ORs `1 << lane` into a word, which gives the exact mask. A lane mask copied into a VGPR would read only that lane's bit in the translator (the "Whole-wave masks" row). - **Buffer bounds:** `buffer_atomic_csub` goes through a V# with `num_records` 8. Offset 4 is in range. Offsets 8 (`glc`) and 12 (no `glc`) are out of range: memory is untouched, and `vdata` is 0 with `glc` and kept without. Every expected word is derived in the file header from three `docs/design.md` rows: - the csub row - "Atomic natural alignment": a dropped `glc` lane gets 0, and an inactive lane keeps its register - "Buffer bounds checking" It is registered in `check.py` and `run_gpu_tests.py` the way `cs_w32_fcmpswap` is. It is also in `WAVE32_LANE_DUMPS`, because its masks cover 32 lanes. - The csub row now names both fixtures, the GPUs, and the faults each fixture catches. #59 would then reduce to its `cs_w32_dot_int` commit, on top of this one. | out | `cs_w32_csub_ext` | value | |---|---|---| | 0 | lanes whose global `vdst` kept its preset | `0xaaaaaaaa` | | 1 | global dword after (100 - 16) \| trap word << 16 | `0x77770054` | | 2 | sum of global old values (100..85) \| sum of buffer old values (50, 48, ..., 20) << 16 | `0x023005c8` | | 3 | lanes whose buffer `vdata` kept its preset | `0xaaaaaaaa` | | 4 | buffer dword after (50 - 32) \| trap word << 16 | `0x55550012` | | 5 | in range, `glc`: old 30 \| `M` after (25) << 16 | `0x0019001e` | | 6 | past the range, `glc`: `vdata` 0 \| `M` kept (0x99) << 16 | `0x00990000` | | 7 | past the range, no `glc`: `vdata` kept (3) \| `M` kept (0xab) << 16 | `0x00ab0003` | Depends on: none. ### Tested CachyOS (Linux 7.3.3) on this branch (`main` `ece4ba5b3` plus 3 commits), with llvm-mc 23.1.4 and the `runtime/build` test programs, whose sources are the same as this branch's. The device was picked with `VK_DRIVER_FILES`. Both fixtures were run with `run_gpu_tests.py --filter csub` and with `build.py` + `check.py`: | GPU | driver | native | `LEONIDA_W64_EMULATE=1` | |---|---|---|---| | NVIDIA GeForce RTX 4070 Ti | 620.70.06 | both PASS | both PASS | | AMD Radeon 610M (Ryzen 9 7900X iGPU, gfx1036, RDNA2) | RADV, Mesa 26.2.6 | both PASS | both PASS | I planted translator faults one at a time and reverted each. The results are the same on both GPUs: | fault | `cs_global_csub` | `cs_w32_csub_ext` | |---|---|---| | plain subtract, no clamp | FAIL | pass | | signed compare | FAIL | pass | | no `glc` return | FAIL | FAIL | | EXEC ignored | FAIL | FAIL | | V# bounds ignored (buffer form) | pass | FAIL | | a dropped `glc` lane gets its `DATA`, not 0 | pass | FAIL | Other checks: - `python -m unittest discover -s tests/semantic -p test_atomic_csub.py`: OK. - These pass with `python -I`: `test_run_gpu_tests`, `test_runner_calls_all_tests`, `test_design_contract_rows`, `test_docs_links`, `test_docs_repo_paths`, `test_text_write_line_endings` and `test_shader_checks`. - `tests/test_rdna2_decode.py` with `LLVM_MC` set: both csub fixtures pass the llvm-mc parity check. The test then fails on `cs_w32_permlane_fi.asm`, as it does on `main`. - Not run: the pytest-based tests, which are what the `conftest.py` change serves. pytest isn't installed here. - `scripts/check_no_game_data.py` on the changed files: clean. AI-assisted: yes (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
trigger337 commented 2026-11-24 08:26:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by trigger337 on 2026-11-24T08:26:30Z.


Tested f21b39087 on AMD Radeon RX 6900 XT (RADV NAVI21 / GFX1030, Mesa 26.2.5, Linux 7.3.1 CachyOS, Vulkan 1.4.328, subgroup 32..64): pass.

Physical hardware verification on discrete RDNA2 / GFX1030:

  • python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter csub: 2/2 passed
    • cs_global_csub: PASS (0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2)
    • cs_w32_csub_ext: PASS (2863311530 2004287572 36701640 2863311530 1431633938 1638430 10027008 11206659, exact match for 0xaaaaaaaa 0x77770054 0x023005c8 0xaaaaaaaa 0x55550012 0x0019001e 0x00990000 0x00ab0003)
  • LEONIDA_W64_EMULATE=1 python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter csub: 2/2 passed with identical words.
  • Negative control: planted signed compare (OpSGreaterThan in csub handler) fails cs_global_csub on word 5 (got 0x0, expected 0xfffffffe) while cs_w32_csub_ext passes, confirming fixture sensitivity.
  • Full GPU suite:
    • Native: 232/250 passed, 16 skipped (only cs_imgload_tfe and cs_imgload_d16_tfe fail, which are upstream #31).
    • Emulated (LEONIDA_W64_EMULATE=1): 232/250 passed, 16 skipped (same two).
  • Unit & semantic tests:
    • python3 -m unittest discover -s tests/semantic -p test_atomic_csub.py: 6/6 passed.
    • python3 -I tests/test_run_gpu_tests.py: 62/62 passed.
    • python3 -I tests/test_design_contract_rows.py: 5/5 passed.
    • python3 -I tests/test_shader_checks.py: 87/87 passed.
  • scripts/check_no_game_data.py: clean. No game files.

AI-assisted: yes
agent: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7126138248 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/411#issuecomment-7126138248). Originally posted by [trigger337](https://github.com/trigger337) on 2026-11-24T08:26:30Z. --- Tested f21b39087 on AMD Radeon RX 6900 XT (RADV NAVI21 / GFX1030, Mesa 26.2.5, Linux 7.3.1 CachyOS, Vulkan 1.4.328, subgroup 32..64): pass. Physical hardware verification on discrete RDNA2 / GFX1030: - `python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter csub`: 2/2 passed - `cs_global_csub`: PASS (`0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2`) - `cs_w32_csub_ext`: PASS (`2863311530 2004287572 36701640 2863311530 1431633938 1638430 10027008 11206659`, exact match for `0xaaaaaaaa 0x77770054 0x023005c8 0xaaaaaaaa 0x55550012 0x0019001e 0x00990000 0x00ab0003`) - `LEONIDA_W64_EMULATE=1 python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter csub`: 2/2 passed with identical words. - Negative control: planted signed compare (`OpSGreaterThan` in `csub` handler) fails `cs_global_csub` on word 5 (got `0x0`, expected `0xfffffffe`) while `cs_w32_csub_ext` passes, confirming fixture sensitivity. - Full GPU suite: - Native: 232/250 passed, 16 skipped (only `cs_imgload_tfe` and `cs_imgload_d16_tfe` fail, which are upstream #31). - Emulated (`LEONIDA_W64_EMULATE=1`): 232/250 passed, 16 skipped (same two). - Unit & semantic tests: - `python3 -m unittest discover -s tests/semantic -p test_atomic_csub.py`: 6/6 passed. - `python3 -I tests/test_run_gpu_tests.py`: 62/62 passed. - `python3 -I tests/test_design_contract_rows.py`: 5/5 passed. - `python3 -I tests/test_shader_checks.py`: 87/87 passed. - `scripts/check_no_game_data.py`: clean. No game files. AI-assisted: yes agent: yes
Sangonapou commented 2026-11-24 18:55:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Sangonapou on 2026-11-24T18:55:10Z.


Tested e8114392 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): pass

Runtime built at this head with scripts\build_runtime.ps1 (MSVC 19.51); llvm-mc 23.1.6, SPIRV-Tools 2026.4. No game files.

run_gpu_tests.py --filter <name>, native (subgroup 32) and with LEONIDA_W64_EMULATE=1, identical words both ways:

  • cs_global_csub: PASS 0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2
  • cs_w32_csub_ext: PASS 2863311530 2004287572 36701640 2863311530 1431633938 1638430 10027008 11206659
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7141335519 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/411#issuecomment-7141335519). Originally posted by [Sangonapou](https://github.com/Sangonapou) on 2026-11-24T18:55:10Z. --- Tested e8114392 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): pass Runtime built at this head with `scripts\build_runtime.ps1` (MSVC 19.51); `llvm-mc` 23.1.6, SPIRV-Tools 2026.4. No game files. `run_gpu_tests.py --filter <name>`, native (subgroup 32) and with `LEONIDA_W64_EMULATE=1`, identical words both ways: - `cs_global_csub`: PASS `0x10070905 0xd070000 0x630064 0x80000000 0x0 0xfffffffe 0xc0500 0x1d800d2` - `cs_w32_csub_ext`: PASS `2863311530 2004287572 36701640 2863311530 1431633938 1638430 10027008 11206659`
milk4sale commented 2026-11-24 20:18:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by milk4sale on 2026-11-24T20:18:42Z.


The red windows and linux-gpu-tools jobs come from main as it was when this run was created, not from this change. Their checkout step says Merge e81143926 into a28927849, and a28927849 is older than two fixes:

  • windows: linking gta6rt.exe fails with __imp_WaitOnAddress, __imp_WakeByAddressSingle and __imp_WakeByAddressAll unresolved in leonida_xma2_decoder.lib. #877 (merged 16:58 UTC) adds synchronization to that library's link libraries.
  • linux-gpu-tools: cs_imgload_tfe and cs_imgload_d16_tfe fail (r32 sint (sint view): 64 bad, texel(5,3) = 2071). #892 (merged 17:15 UTC) corrected those two fixtures' expected TFE status.

This pull request touches none of the files #877 and #892 change, and it merges into current main (58be9cdf8) without conflict. Re-running the failed jobs would test the same old merge, so I'm leaving e81143926, the head tested above, as it is rather than pushing just to restart CI. I haven't found a finished run of these jobs on a main that has both fixes yet.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143346993 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/411#issuecomment-7143346993). Originally posted by [milk4sale](https://github.com/milk4sale) on 2026-11-24T20:18:42Z. --- The red `windows` and `linux-gpu-tools` jobs come from `main` as it was when this run was created, not from this change. Their checkout step says `Merge e81143926 into a28927849`, and `a28927849` is older than two fixes: - `windows`: linking `gta6rt.exe` fails with `__imp_WaitOnAddress`, `__imp_WakeByAddressSingle` and `__imp_WakeByAddressAll` unresolved in `leonida_xma2_decoder.lib`. #877 (merged 16:58 UTC) adds `synchronization` to that library's link libraries. - `linux-gpu-tools`: `cs_imgload_tfe` and `cs_imgload_d16_tfe` fail (`r32 sint (sint view): 64 bad, texel(5,3) = 2071`). #892 (merged 17:15 UTC) corrected those two fixtures' expected TFE status. This pull request touches none of the files #877 and #892 change, and it merges into current `main` (`58be9cdf8`) without conflict. Re-running the failed jobs would test the same old merge, so I'm leaving `e81143926`, the head tested above, as it is rather than pushing just to restart CI. I haven't found a finished run of these jobs on a `main` that has both fixes yet. AI-assisted.
milk4sale commented 2026-11-24 21:16:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by milk4sale on 2026-11-24T21:16:03Z.


Merged main (6261ca916) into the branch to clear the conflict with #957. The one conflict was in scripts/run_gpu_tests.py: #957's TEXT_ONLY_MARK path (cs_dpp_cmp) and this branch's asm_target() / ; mcpu: header touched the same lines of assemble_to_s. Both are kept: a text-only fixture returns before llvm-mc runs, and every other fixture is assembled for its ; mcpu: target. The other files merged without conflicts, and the three earlier commits are unchanged (fast-forward from e81143926).

I rebuilt the test programs from the merged tree, then ran both csub fixtures on an RTX 4070 Ti (NVIDIA 620.70.06): they pass natively and with LEONIDA_W64_EMULATE=1. tests/test_shader_checks.py, tests/test_run_gpu_tests.py and tests/test_rdna2_decode.py (llvm-mc 23.1.4) pass.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144701288 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/411#issuecomment-7144701288). Originally posted by [milk4sale](https://github.com/milk4sale) on 2026-11-24T21:16:03Z. --- Merged `main` (`6261ca916`) into the branch to clear the conflict with #957. The one conflict was in `scripts/run_gpu_tests.py`: #957's `TEXT_ONLY_MARK` path (`cs_dpp_cmp`) and this branch's `asm_target()` / `; mcpu:` header touched the same lines of `assemble_to_s`. Both are kept: a text-only fixture returns before llvm-mc runs, and every other fixture is assembled for its `; mcpu:` target. The other files merged without conflicts, and the three earlier commits are unchanged (fast-forward from `e81143926`). I rebuilt the test programs from the merged tree, then ran both csub fixtures on an RTX 4070 Ti (NVIDIA 620.70.06): they pass natively and with `LEONIDA_W64_EMULATE=1`. `tests/test_shader_checks.py`, `tests/test_run_gpu_tests.py` and `tests/test_rdna2_decode.py` (llvm-mc 23.1.4) pass.
MoonEyes commented 2026-11-28 17:59:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:59:56Z.


Hi @milk4sale, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/test/shaders/check.py, scripts/run_gpu_tests.py, tests/conftest.py), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243449055 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/411#issuecomment-7243449055). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:59:56Z. --- Hi @milk4sale, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/test/shaders/check.py`, `scripts/run_gpu_tests.py`, `tests/conftest.py`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 11:43:26 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Conflicts with main (in runtime/test/shaders/check.py, scripts/run_gpu_tests.py, and tests/conftest.py) with failing stale CI. Note that cs_global_csub is also carried in open draft #59, while cs_w32_csub_ext is unique here. Please rebase onto current main and trigger a fresh green CI pass.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130546352 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/411#pullrequestreview-6130546352). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:43:26Z. **Review:** CHANGES_REQUESTED --- Conflicts with `main` (in `runtime/test/shaders/check.py`, `scripts/run_gpu_tests.py`, and `tests/conftest.py`) with failing stale CI. Note that `cs_global_csub` is also carried in open draft `#59`, while `cs_w32_csub_ext` is unique here. Please rebase onto current `main` and trigger a fresh green CI pass. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 11:52:10 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Overlap adjudication with draft #59: keeping #411 as the designated PR for GPU-ATOMIC-CSUB (cs_global_csub.asm + cs_w32_csub_ext.asm, verified on RX 6900 XT, RTX 3080 Ti, and RTX 4070 Ti), while #59 remains open solely for its distinct cs_w32_dot_int.asm fixture (which is not included here or on main).

To get #411 ready to merge:

  1. Rebase onto current main (note: ; mcpu: header plumbing is already on main in build.py and tests/conftest.py, so those hunks can be dropped).
  2. Add "cs_global_csub" to WAVE32_DUMPS in runtime/test/shaders/check.py (as @wavehs noted on #59, cs_global_csub declares +wavefrontsize32 and currently gets skipped on subgroup-32 devices without it).

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130698097 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/411#pullrequestreview-6130698097). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:52:10Z. **Review:** CHANGES_REQUESTED --- Overlap adjudication with draft **#59**: keeping **#411** as the designated PR for `GPU-ATOMIC-CSUB` (`cs_global_csub.asm` + `cs_w32_csub_ext.asm`, verified on RX 6900 XT, RTX 3080 Ti, and RTX 4070 Ti), while `#59` remains open solely for its distinct `cs_w32_dot_int.asm` fixture (which is not included here or on `main`). To get `#411` ready to merge: 1. Rebase onto current `main` (note: `; mcpu:` header plumbing is already on `main` in `build.py` and `tests/conftest.py`, so those hunks can be dropped). 2. Add `"cs_global_csub"` to `WAVE32_DUMPS` in `runtime/test/shaders/check.py` (as `@wavehs` noted on `#59`, `cs_global_csub` declares `+wavefrontsize32` and currently gets skipped on subgroup-32 devices without it). *(AI-assisted review.)*
aslan2142 commented 2026-12-01 17:20:46 +00:00 (Migrated from github.com)

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


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:7319151437 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/411#issuecomment-7319151437). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:20:46Z. --- 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!411
No description provided.