run_gpu_tests: run cs_fmt_all, which has a check.py check but no GPU test row (GPU-ROW-FMT-ALL) #800

Closed
s0las16 wants to merge 2 commits from upstream-pr/800 into main
s0las16 commented 2026-11-24 13:59:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by s0las16 on 2026-11-24T13:59:33Z.


claiming: GPU-ROW-FMT-ALL - scripts/run_gpu_tests.py has no row for cs_fmt_all, though runtime/test/shaders/check.py checks it with fmt_all_test. So --filter cs_fmt_all stops with "selected cs_fmt_all but no runnable GPU test cases", and a full run never exercises the fixture.

This PR adds the row, which calls the existing fmt_all_test (SCALED, SINT, small-float and 10:10:10:2 typed loads and stores). It changes only the test runner: no translator change and no new fixture.

Tested: python -I scripts/run_gpu_tests.py --filter cs_fmt_all gives PASS (dumped words exact) on llvmpipe, Mesa 23.2.1 (Ubuntu 22.04). Before the change, the same command errored as described above.

No game files, nothing online. AI-assisted (Devin)

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473578044 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/800). Originally posted by [s0las16](https://github.com/s0las16) on 2026-11-24T13:59:33Z. --- claiming: GPU-ROW-FMT-ALL - `scripts/run_gpu_tests.py` has no row for `cs_fmt_all`, though `runtime/test/shaders/check.py` checks it with `fmt_all_test`. So `--filter cs_fmt_all` stops with "selected cs_fmt_all but no runnable GPU test cases", and a full run never exercises the fixture. This PR adds the row, which calls the existing `fmt_all_test` (SCALED, SINT, small-float and 10:10:10:2 typed loads and stores). It changes only the test runner: no translator change and no new fixture. Tested: `python -I scripts/run_gpu_tests.py --filter cs_fmt_all` gives PASS (dumped words exact) on llvmpipe, Mesa 23.2.1 (Ubuntu 22.04). Before the change, the same command errored as described above. No game files, nothing online. AI-assisted (Devin)
GeorgiyDemo commented 2026-11-24 14:11:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by GeorgiyDemo on 2026-11-24T14:11:34Z.


Tested 8fe14d247 on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), binaries from main d42773d07:

  • On main, --filter cs_fmt_all translates the shader and then has no GPU row to run (the "no runnable GPU test cases" path); with this PR it runs.
  • MoltenVK 1.4.2: cs_fmt_all PASS ("dumped words exact"), 1/1.
  • KosmicKrisp (Mesa 26.3.1): cs_fmt_all FAIL, word 293: expected 0x80007c01, got 0x80007e00, 0/1. This is the same mismatch check.py's cs_fmt_all shows on KosmicKrisp here, so it is a driver-side difference the new row now exposes rather than something this PR introduces.

So the row is worth having, but the macOS/KosmicKrisp run will need a known-failure entry or its own issue for word 293. AI-assisted; synthetic fixtures only, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7133982853 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/800#issuecomment-7133982853). Originally posted by [GeorgiyDemo](https://github.com/GeorgiyDemo) on 2026-11-24T14:11:34Z. --- Tested `8fe14d247` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), binaries from `main` `d42773d07`: - On `main`, `--filter cs_fmt_all` translates the shader and then has no GPU row to run (the "no runnable GPU test cases" path); with this PR it runs. - **MoltenVK 1.4.2**: `cs_fmt_all` PASS ("dumped words exact"), 1/1. - **KosmicKrisp** (Mesa 26.3.1): `cs_fmt_all` FAIL, `word 293: expected 0x80007c01, got 0x80007e00`, 0/1. This is the same mismatch `check.py`'s `cs_fmt_all` shows on KosmicKrisp here, so it is a driver-side difference the new row now exposes rather than something this PR introduces. So the row is worth having, but the macOS/KosmicKrisp run will need a known-failure entry or its own issue for word 293. AI-assisted; synthetic fixtures only, no game data.
MoonEyes commented 2026-11-24 14:37:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-24T14:37:32Z.


Checked locally, LGTM.

  • The new row (scripts/run_gpu_tests.py:1056-1059) has the same form as the other cs_fmt_* rows: same call signature, same (name, not problem, problem or ...) result.
  • Probed run_suite with fmt_all_test mocked: a mismatch gives FAIL and rc 1, a check.Skip gives SKIP and rc 0 ("0/1 passed, 1 skipped"), an empty string gives PASS. On main the same filter exits 2 with "no runnable GPU test cases", as described.
  • fmt_all_test compares the whole 336-word heap, and a missing dump or wrong size is a failure. The fixture does not overlap the other cs_fmt_* rows.
  • tests/test_run_gpu_tests.py passes (64 tests). It also merges cleanly with #609 (git merge-tree, 67 tests pass on the merged tree).

Two small points:

  1. Nothing tests the row itself: deleting it keeps the suite green. A case like PackedFormatFixture with --filter cs_fmt_all and fmt_all_test mocked to return a problem would cover it.
  2. The other rows report a count ("64/64 dumped words exact"). "336/336 dumped words exact" (or len(FMT_ALL_WORDS)) would match. Separately, the fmt_all_test docstring says 316 words, but FMT_ALL_WORDS has 336.

AI-assisted review (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7134681037 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/800#issuecomment-7134681037). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-24T14:37:32Z. --- Checked locally, LGTM. - The new row (scripts/run_gpu_tests.py:1056-1059) has the same form as the other cs_fmt_* rows: same call signature, same (name, not problem, problem or ...) result. - Probed run_suite with fmt_all_test mocked: a mismatch gives FAIL and rc 1, a check.Skip gives SKIP and rc 0 ("0/1 passed, 1 skipped"), an empty string gives PASS. On main the same filter exits 2 with "no runnable GPU test cases", as described. - fmt_all_test compares the whole 336-word heap, and a missing dump or wrong size is a failure. The fixture does not overlap the other cs_fmt_* rows. - tests/test_run_gpu_tests.py passes (64 tests). It also merges cleanly with #609 (git merge-tree, 67 tests pass on the merged tree). Two small points: 1. Nothing tests the row itself: deleting it keeps the suite green. A case like PackedFormatFixture with --filter cs_fmt_all and fmt_all_test mocked to return a problem would cover it. 2. The other rows report a count ("64/64 dumped words exact"). "336/336 dumped words exact" (or len(FMT_ALL_WORDS)) would match. Separately, the fmt_all_test docstring says 316 words, but FMT_ALL_WORDS has 336. AI-assisted review (Claude Code).
MoonEyes commented 2026-11-28 18:00:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:00:51Z.


Hi @s0las16, thanks for this pull request. It currently conflicts with main (conflicting file(s): 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:7243461252 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/800#issuecomment-7243461252). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T18:00:51Z. --- Hi @s0las16, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `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:44:05 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Conflicts with main in scripts/run_gpu_tests.py, with failing/cancelled stale CI (cs_fmt_all is still missing from scripts/run_gpu_tests.py on main). Please rebase onto current main to resolve the conflict and trigger a fresh green CI pass.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130557283 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/800#pullrequestreview-6130557283). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:44:05Z. **Review:** CHANGES_REQUESTED --- Conflicts with `main` in `scripts/run_gpu_tests.py`, with failing/cancelled stale CI (`cs_fmt_all` is still missing from `scripts/run_gpu_tests.py` on `main`). Please rebase onto current `main` to resolve the conflict and trigger a fresh green CI pass. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 16:31:58 +00:00 (Migrated from github.com)

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


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