[PR #862] tests: GPU fixture cs_w32_lds_add_f32 for ds_add_f32 and ds_add_rtn_f32 (OLD-9911) #900

Open
opened 2026-11-26 20:19:26 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/862
Author: @TanmaySatyam
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: test/old-9911-gpu-lds-add-f32


📝 Commits (2)

  • e3295fc GPU test cs_w32_lds_add_f32: ds_add_f32 and ds_add_rtn_f32
  • 8dc89da test_lds_add_f32_fixture: runs under python -I; the double sum is exact for these inputs only

📊 Changes

5 files changed (+266 additions, -3 deletions)

View changed files

📝 runtime/test/shaders/check.py (+3 -1)
➕ runtime/test/shaders/cs_w32_lds_add_f32.asm (+90 -0)
📝 scripts/run_gpu_tests.py (+4 -2)
➕ tests/semantic/fixtures/disasm/cs_w32_lds_add_f32.s (+75 -0)
➕ tests/semantic/test_lds_add_f32_fixture.py (+94 -0)

📄 Description

Claimed in the coordination issue as: OLD-9911

Summary

Carries forward old-pr/9911 (carried-over draft #176) onto current main (f3e26be7c), preserving the original author's (Luiz Neves) two commits:

  • GPU test cs_w32_lds_add_f32: ds_add_f32 and ds_add_rtn_f32
  • test_lds_add_f32_fixture: runs under python -I; the double sum is exact for these inputs only

Rebase adjustments

  • Resolved append-list conflicts in runtime/test/shaders/check.py and scripts/run_gpu_tests.py against current main.
  • Kept main's dynamic tests/semantic/regen_fixtures.py and added the ; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasm marker line to runtime/test/shaders/cs_w32_lds_add_f32.asm.

Testing & Hardware Verification

  • AI-assisted: yes (rebase, conflict resolution, and test execution).
  • Synthetic fixtures only: no game data used (python -I scripts/check_no_game_data.py clean on all touched files).
  • GPU & Driver: NVIDIA GeForce RTX 5070, Driver 591.74, Windows 11 (LEONIDA_VK_VALIDATION=1, VKC_SUBGROUP_SIZE=32).
  • Live GPU run (runtime/test/shaders/build.py + vk_compute_test.exe cs_w32_lds_add_f32.spv 1 dump):
    1 shaders: 1 translated, 1 pass spirv-val
    device: NVIDIA GeForce RTX 5070 (subgroup 32..32) (validation on)
    compute subgroup size: 32
    1 groups x 64: 0 mismatches
    out[0..7] = 1069547520 1081081856 1266679808 1266679810 0 2139095040 1048576000 1075838976
    
    Matches expected [0x3FC00000, 0x40700000, 0x4B800000, 0x4B800002, 0, 0x7F800000, 0x3E800000, 0x40200000] with 0 mismatches and 0 Vulkan validation errors.
  • CPU / unit tests:
    • python -I tests/semantic/test_lds_add_f32_fixture.py -v: 4/4 OK
    • python -I tests/test_regen_fixtures.py: 7/7 OK
    • python -I tests/test_text_write_line_endings.py: 3/3 OK

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/862 **Author:** [@TanmaySatyam](https://github.com/TanmaySatyam) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test/old-9911-gpu-lds-add-f32` --- ### 📝 Commits (2) - [`e3295fc`](https://github.com/ubiquitarianism/leonida/commit/e3295fcc5ca84830797c355c70c2acb0eb756b70) GPU test cs_w32_lds_add_f32: ds_add_f32 and ds_add_rtn_f32 - [`8dc89da`](https://github.com/ubiquitarianism/leonida/commit/8dc89da0abee5a807d88c10edbee06fdf4f20f1b) test_lds_add_f32_fixture: runs under python -I; the double sum is exact for these inputs only ### 📊 Changes **5 files changed** (+266 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+3 -1) ➕ `runtime/test/shaders/cs_w32_lds_add_f32.asm` (+90 -0) 📝 `scripts/run_gpu_tests.py` (+4 -2) ➕ `tests/semantic/fixtures/disasm/cs_w32_lds_add_f32.s` (+75 -0) ➕ `tests/semantic/test_lds_add_f32_fixture.py` (+94 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9911 ### Summary Carries forward `old-pr/9911` (carried-over draft #176) onto current `main` (`f3e26be7c`), preserving the original author's (`Luiz Neves`) two commits: - `GPU test cs_w32_lds_add_f32: ds_add_f32 and ds_add_rtn_f32` - `test_lds_add_f32_fixture: runs under python -I; the double sum is exact for these inputs only` ### Rebase adjustments - Resolved append-list conflicts in `runtime/test/shaders/check.py` and `scripts/run_gpu_tests.py` against current `main`. - Kept `main`'s dynamic `tests/semantic/regen_fixtures.py` and added the `; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasm` marker line to `runtime/test/shaders/cs_w32_lds_add_f32.asm`. ### Testing & Hardware Verification - **AI-assisted:** yes (rebase, conflict resolution, and test execution). - **Synthetic fixtures only:** no game data used (`python -I scripts/check_no_game_data.py` clean on all touched files). - **GPU & Driver:** NVIDIA GeForce RTX 5070, Driver 591.74, Windows 11 (`LEONIDA_VK_VALIDATION=1`, `VKC_SUBGROUP_SIZE=32`). - **Live GPU run (`runtime/test/shaders/build.py` + `vk_compute_test.exe cs_w32_lds_add_f32.spv 1 dump`):** ```text 1 shaders: 1 translated, 1 pass spirv-val device: NVIDIA GeForce RTX 5070 (subgroup 32..32) (validation on) compute subgroup size: 32 1 groups x 64: 0 mismatches out[0..7] = 1069547520 1081081856 1266679808 1266679810 0 2139095040 1048576000 1075838976 ``` Matches expected `[0x3FC00000, 0x40700000, 0x4B800000, 0x4B800002, 0, 0x7F800000, 0x3E800000, 0x40200000]` with 0 mismatches and 0 Vulkan validation errors. - **CPU / unit tests:** - `python -I tests/semantic/test_lds_add_f32_fixture.py -v`: 4/4 OK - `python -I tests/test_regen_fixtures.py`: 7/7 OK - `python -I tests/test_text_write_line_endings.py`: 3/3 OK --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#900
No description provided.