[PR #853] tests: GPU fixture cs_w32_pk_rel_ext for packed 16-bit, rel moves, and ds_or/xor_b64 (OLD-9906) #891

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

📋 Pull Request Information

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

Base: main ← Head: test/old-9906-gpu-pk-rel-ext


📝 Commits (3)

  • f01fb63 GPU test cs_w32_pk_rel_ext: packed 16-bit ints, v_swaprel, s_movrels, ds_or/xor_b64
  • 7159c36 cs_w32_pk_rel_ext: run the LDS ops in lane 0 only
  • fba7c45 test_pk_rel_ext_fixture: runs under python -I

📊 Changes

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

View changed files

📝 runtime/test/shaders/check.py (+3 -1)
➕ runtime/test/shaders/cs_w32_pk_rel_ext.asm (+78 -0)
📝 scripts/run_gpu_tests.py (+4 -2)
➕ tests/semantic/fixtures/disasm/cs_w32_pk_rel_ext.s (+62 -0)
➕ tests/semantic/test_pk_rel_ext_fixture.py (+105 -0)

📄 Description

Claimed in the coordination issue as: OLD-9906

Summary

Carries forward old-pr/9906 (carried-over draft #171) onto current main (d0da7dade), preserving the original author's (Luiz Neves) three commits:

  • GPU test cs_w32_pk_rel_ext: packed 16-bit ints, v_swaprel, s_movrels, ds_or/xor_b64
  • cs_w32_pk_rel_ext: run the LDS ops in lane 0 only
  • test_pk_rel_ext_fixture: runs under python -I

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_pk_rel_ext.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_pk_rel_ext.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] = 4294901763 2147483646 1114130 65536 261 258 515 15793920
    
    Matches expected [0xFFFF0003, 0x7FFFFFFE, 0x00110012, 0x00010000, 0x105, 0x102, 0x203, 0x00F0FF00] with 0 mismatches and 0 Vulkan validation errors.
  • CPU / unit tests:
    • python -I tests/semantic/test_pk_rel_ext_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/853 **Author:** [@TanmaySatyam](https://github.com/TanmaySatyam) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test/old-9906-gpu-pk-rel-ext` --- ### 📝 Commits (3) - [`f01fb63`](https://github.com/ubiquitarianism/leonida/commit/f01fb638e128ba82630f55671056f282416eabdd) GPU test cs_w32_pk_rel_ext: packed 16-bit ints, v_swaprel, s_movrels, ds_or/xor_b64 - [`7159c36`](https://github.com/ubiquitarianism/leonida/commit/7159c361542f68056eb8441e83f073d291b7ecbb) cs_w32_pk_rel_ext: run the LDS ops in lane 0 only - [`fba7c45`](https://github.com/ubiquitarianism/leonida/commit/fba7c4557e9ca9aad04c36de04f600634a7107ee) test_pk_rel_ext_fixture: runs under python -I ### 📊 Changes **5 files changed** (+252 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+3 -1) ➕ `runtime/test/shaders/cs_w32_pk_rel_ext.asm` (+78 -0) 📝 `scripts/run_gpu_tests.py` (+4 -2) ➕ `tests/semantic/fixtures/disasm/cs_w32_pk_rel_ext.s` (+62 -0) ➕ `tests/semantic/test_pk_rel_ext_fixture.py` (+105 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9906 ### Summary Carries forward `old-pr/9906` (carried-over draft #171) onto current `main` (`d0da7dade`), preserving the original author's (`Luiz Neves`) three commits: - `GPU test cs_w32_pk_rel_ext: packed 16-bit ints, v_swaprel, s_movrels, ds_or/xor_b64` - `cs_w32_pk_rel_ext: run the LDS ops in lane 0 only` - `test_pk_rel_ext_fixture: runs under python -I` ### 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_pk_rel_ext.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_pk_rel_ext.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] = 4294901763 2147483646 1114130 65536 261 258 515 15793920 ``` Matches expected `[0xFFFF0003, 0x7FFFFFFE, 0x00110012, 0x00010000, 0x105, 0x102, 0x203, 0x00F0FF00]` with 0 mismatches and 0 Vulkan validation errors. - **CPU / unit tests:** - `python -I tests/semantic/test_pk_rel_ext_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#891
No description provided.