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

Closed
leonida/mandy
s0las16 wants to merge 0 commits from devin/1795518363-gpu-row-fmt-all into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

s0las16 commented 2026-11-24 13:59:33 +00:00

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)

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

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.

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

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).

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

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).

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 reviewed 2026-12-01 11:44:05 +00:00
aslan2142 left a comment
No description provided.
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

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.

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.
Sign in to join this conversation.
No description provided.