tests: GPU fixture cs_w32_saveexec_ext for extended saveexec/wrexec kinds (OLD-9904) #654

Closed
TanmaySatyam wants to merge 3 commits from upstream-pr/654 into main
TanmaySatyam commented 2026-11-24 11:01:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TanmaySatyam on 2026-11-24T11:01:50Z.


Claimed in the coordination issue as: OLD-9904

AI-assisted.

What and why

Carries forward old-pr/9904 (draft #169, original author LouisRiverstone / Luiz Neves) onto main (21625bca8), preserving both original author commits and adding one follow-up commit to mark runtime/test/shaders/cs_w32_saveexec_ext.asm for tests/semantic/regen_fixtures.py (main's marker-based discovery):

  1. Preserved commits (Luiz Neves): Adds the wave32 GPU fixture runtime/test/shaders/cs_w32_saveexec_ext.asm (covering s_xor_saveexec, s_andn1_saveexec, s_orn1_saveexec, s_orn2_saveexec, s_nand_saveexec, s_nor_saveexec, s_xnor_saveexec, and s_andn1_wrexec), registers it in runtime/test/shaders/check.py and scripts/run_gpu_tests.py, and adds CPU semantic tests (tests/semantic/test_saveexec_ext_fixture.py).
  2. Rebase adaptation commit: Adds the ; regen_fixtures: header marker to runtime/test/shaders/cs_w32_saveexec_ext.asm so tests/test_regen_fixtures.py passes on current main.

Testing & Verification

  • GPUs tested: NVIDIA GeForce RTX 5070 (Blackwell, Driver 591.74, Windows 11, Vulkan validation enabled, VKC_SUBGROUP_SIZE=32):
    • vk_compute_test cs_w32_saveexec_ext.spv 1 dump → 1 groups x 64: 0 mismatches, out[0..7] = 4096 2560 6656 5642 4608 542 4106 2560 (0x1000, 0xA00, 0x1A00, 0x160A, 0x1200, 0x21E, 0x100A, 0xA00, 0 validation errors).
  • python -I tests/semantic/test_saveexec_ext_fixture.py -v (3/3 OK)
  • python -I tests/test_regen_fixtures.py (7/7 OK)
  • python -I tests/test_text_write_line_endings.py (3/3 OK)
  • Clean-room verified: python -I scripts/check_no_game_data.py exited 0 on all modified/added files.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5470888387 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/654). Originally posted by [TanmaySatyam](https://github.com/TanmaySatyam) on 2026-11-24T11:01:50Z. --- Claimed in the coordination issue as: OLD-9904 AI-assisted. ### What and why Carries forward `old-pr/9904` (draft #169, original author `LouisRiverstone` / Luiz Neves) onto `main` (`21625bca8`), preserving both original author commits and adding one follow-up commit to mark `runtime/test/shaders/cs_w32_saveexec_ext.asm` for `tests/semantic/regen_fixtures.py` (`main`'s marker-based discovery): 1. **Preserved commits (`Luiz Neves`):** Adds the wave32 GPU fixture `runtime/test/shaders/cs_w32_saveexec_ext.asm` (covering `s_xor_saveexec`, `s_andn1_saveexec`, `s_orn1_saveexec`, `s_orn2_saveexec`, `s_nand_saveexec`, `s_nor_saveexec`, `s_xnor_saveexec`, and `s_andn1_wrexec`), registers it in `runtime/test/shaders/check.py` and `scripts/run_gpu_tests.py`, and adds CPU semantic tests (`tests/semantic/test_saveexec_ext_fixture.py`). 2. **Rebase adaptation commit:** Adds the `; regen_fixtures:` header marker to `runtime/test/shaders/cs_w32_saveexec_ext.asm` so `tests/test_regen_fixtures.py` passes on current `main`. ### Testing & Verification - **GPUs tested:** NVIDIA GeForce RTX 5070 (Blackwell, Driver 591.74, Windows 11, Vulkan validation enabled, `VKC_SUBGROUP_SIZE=32`): - `vk_compute_test cs_w32_saveexec_ext.spv 1 dump` → `1 groups x 64: 0 mismatches`, `out[0..7] = 4096 2560 6656 5642 4608 542 4106 2560` (`0x1000, 0xA00, 0x1A00, 0x160A, 0x1200, 0x21E, 0x100A, 0xA00`, 0 validation errors). - `python -I tests/semantic/test_saveexec_ext_fixture.py -v` (3/3 OK) - `python -I tests/test_regen_fixtures.py` (7/7 OK) - `python -I tests/test_text_write_line_endings.py` (3/3 OK) - Clean-room verified: `python -I scripts/check_no_game_data.py` exited 0 on all modified/added files.
trigger337 commented 2026-11-24 11:05:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by trigger337 on 2026-11-24T11:05:27Z.


Hardware verification report for cs_w32_saveexec_ext on native AMD RDNA2 GPU:

Environment:

  • GPU: AMD Radeon RX 6900 XT (RADV NAVI21, RDNA2, subgroup size 32..64)
  • Driver: Mesa 26.2.5-cachyos1.1 (Vulkan 1.4.333)
  • Host: Linux CachyOS (x86_64, kernel 7.3.1-2-cachyos)
  • Python: 3.14.3
  • Tree: PR #654 (test/old-9904-gpu-saveexec-ext) based on upstream main

Results:

  1. python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter cs_w32_saveexec_ext --require-pass:
    • Translation: 1/1 (100%)
    • SPIR-V validation: 1/1 pass (spirv-val)
    • GPU readback: PASS cs_w32_saveexec_ext 4096 2560 6656 5642 4608 542 4106 2560 (1/1 passed)
  2. Emulated run (LEONIDA_W64_EMULATE=1):
    • GPU readback: PASS cs_w32_saveexec_ext 4096 2560 6656 5642 4608 542 4106 2560 (1/1 passed)
  3. Semantic and fixture tests:
    • python3 tests/semantic/test_saveexec_ext_fixture.py: 3/3 OK
    • python3 -m unittest tests/test_regen_fixtures.py tests/test_text_write_line_endings.py: 10/10 OK
    • python3 scripts/check_no_game_data.py: clean.

Confirms correct hardware execution on native AMD RDNA2 hardware.

agent: yes
AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7129641878 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/654#issuecomment-7129641878). Originally posted by [trigger337](https://github.com/trigger337) on 2026-11-24T11:05:27Z. --- Hardware verification report for `cs_w32_saveexec_ext` on native AMD RDNA2 GPU: **Environment:** - GPU: AMD Radeon RX 6900 XT (RADV NAVI21, RDNA2, subgroup size 32..64) - Driver: Mesa 26.2.5-cachyos1.1 (Vulkan 1.4.333) - Host: Linux CachyOS (x86_64, kernel 7.3.1-2-cachyos) - Python: 3.14.3 - Tree: PR #654 (`test/old-9904-gpu-saveexec-ext`) based on upstream `main` **Results:** 1. `python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter cs_w32_saveexec_ext --require-pass`: - Translation: 1/1 (100%) - SPIR-V validation: 1/1 pass (`spirv-val`) - GPU readback: `PASS cs_w32_saveexec_ext 4096 2560 6656 5642 4608 542 4106 2560` (1/1 passed) 2. Emulated run (`LEONIDA_W64_EMULATE=1`): - GPU readback: `PASS cs_w32_saveexec_ext 4096 2560 6656 5642 4608 542 4106 2560` (1/1 passed) 3. Semantic and fixture tests: - `python3 tests/semantic/test_saveexec_ext_fixture.py`: 3/3 OK - `python3 -m unittest tests/test_regen_fixtures.py tests/test_text_write_line_endings.py`: 10/10 OK - `python3 scripts/check_no_game_data.py`: clean. Confirms correct hardware execution on native AMD RDNA2 hardware. agent: yes AI-assisted: yes
CodingRule commented 2026-11-25 12:20:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by CodingRule on 2026-11-25T12:20:09Z.


GPU test on an NVIDIA Ada card, for the record: this passes on an RTX 4090.

  • Tested: this branch's head 72bc8d3d merged onto main 0d80bc5d (clean merge), test programs built from that main with scripts\build_runtime.ps1.
  • Command: python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_saveexec_ext, once native and once with LEONIDA_W64_EMULATE=1.
  • Result: 1/1 translated and spirv-val clean, 1/1 passed in both modes, with the expected words/pixels from the fixture header. Nothing skipped.
  • Device: NVIDIA GeForce RTX 4090 (Ada / AD102), driver 591.86, Vulkan 1.4.325, subgroup 32..32, Windows 11 Pro build 26200. llvm-mc 21.1.8 (scripts\build_llvm_mc.ps1), SPIRV-Tools v2026.4, MSVC 14.44.35207.

Only the filtered fixture(s) were run for this PR, not the full suite or ctest; the full-suite baseline for this card on main is in #1777. Synthetic fixtures only, no game files. AI-assisted (Claude Code ran the tests and wrote this comment).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7162234863 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/654#issuecomment-7162234863). Originally posted by [CodingRule](https://github.com/CodingRule) on 2026-11-25T12:20:09Z. --- GPU test on an NVIDIA Ada card, for the record: this passes on an **RTX 4090**. - **Tested:** this branch's head `72bc8d3d` merged onto `main` `0d80bc5d` (clean merge), test programs built from that `main` with `scripts\build_runtime.ps1`. - **Command:** `python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_w32_saveexec_ext`, once native and once with `LEONIDA_W64_EMULATE=1`. - **Result:** 1/1 translated and `spirv-val` clean, 1/1 passed in both modes, with the expected words/pixels from the fixture header. Nothing skipped. - **Device:** NVIDIA GeForce RTX 4090 (Ada / AD102), driver 591.86, Vulkan 1.4.325, subgroup 32..32, Windows 11 Pro build 26200. llvm-mc 21.1.8 (`scripts\build_llvm_mc.ps1`), SPIRV-Tools v2026.4, MSVC 14.44.35207. Only the filtered fixture(s) were run for this PR, not the full suite or ctest; the full-suite baseline for this card on `main` is in #1777. Synthetic fixtures only, no game files. AI-assisted (Claude Code ran the tests and wrote this comment).
MoonEyes commented 2026-11-28 02:57:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T02:57:52Z.


Hi @TanmaySatyam, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/test/shaders/check.py, scripts/run_gpu_tests.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:7232706228 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/654#issuecomment-7232706228). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T02:57:52Z. --- Hi @TanmaySatyam, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/test/shaders/check.py`, `scripts/run_gpu_tests.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:55 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Conflicts with main in runtime/test/shaders/check.py and scripts/run_gpu_tests.py, with failing stale CI. Please rebase onto current main to resolve the conflicts and trigger a fresh green CI pass.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130554224 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/654#pullrequestreview-6130554224). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:43:55Z. **Review:** CHANGES_REQUESTED --- Conflicts with `main` in `runtime/test/shaders/check.py` and `scripts/run_gpu_tests.py`, with failing stale CI. Please rebase onto current `main` to resolve the conflicts and trigger a fresh green CI pass. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 16:31:08 +00:00 (Migrated from github.com)

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


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