- ci.yml: cancel only superseded pull request runs; a push to main was
cancelled by the next merge and left that commit without a CI result
(#326 review).
- world_census.py: --jobs above 61 is rejected with an argparse error on
Windows instead of ProcessPoolExecutor's ValueError traceback, with a
test next to the below-1 test (#308 review).
- docs/textures.md: drop the duplicated "The BCPack counts above..."
paragraph (#292 review).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The linux-gpu-tools job built the GPU test programs but never ran them.
It now installs llvmpipe (software Vulkan), llvm-mc and SPIRV-Tools and
runs scripts/run_gpu_tests.py twice: natively (31 pass, 29 expected
skips: 8-wide subgroups, no fragment barycentrics) and the compute tests
with LEONIDA_W64_EMULATE=1 (33 pass). The emulated mesh tests are left
out because llvmpipe's compiler aborts on them. docs/testing.md gets a
section on running the suite without a GPU.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7JEiKsTUaHQbCTdc4Eghy
The coordination issue (#156) will move to a successor when its thread
gets long. CONTRIBUTING.md, AGENTS.md, the PR template and the testing
guide now find it as the open issue titled "Coordinating who works on
what" (a search link, and a gh command for agents), so they stay right
without an edit each time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ItsNotRexed asked in #156 for claims to be made there before a PR is
opened. Say so where contributors and their agents look first:
CONTRIBUTING.md, AGENTS.md and the pull request template.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CONTRIBUTING.md lists the tool check as `compileall make_game.py tools tests`, but the CI step and
AGENTS.md left out tests/. The pytest-based files are skipped by the Windows test loop, so a syntax
error in them only showed up in the Linux job.
- tools/awc_opus.py: wrap export_bank file read in a with-statement to
close the handle promptly instead of relying on GC (fixes ResourceWarning
seen in test output).
- tests/test_amd_swizzle.py: use raise unittest.SkipTest instead of
import pytest; pytest.skip so the test works under both python -I and
unittest discovery when numpy is absent. No pytest dependency needed.
- tests/test_d3d12_xs_surface.py: same treatment for the two conditional
skips (Windows SDK headers, SCARAB_REF). The test still skips gracefully
without pytest installed.
- .github/workflows/runtime.yml: add a linux-gpu-tools job that installs
libvulkan-dev, builds all GPU test tools with cmake + ninja + g++, and
verifies every tool binary exists. Rename the Windows job from 'build' to
'windows' to disambiguate. This catches build regressions in GPU tool code
that only manifest on Linux.
AI-assisted.
The stdlib loop in the check job ran every tests/test_*.py as a script with 'python -I', which fails for any file that
imports pytest (and for ones that import sibling helpers). It skipped tests/test_translate.py by name; skip every file
that imports pytest instead. They all run in the translator-tests job (pytest tests --ignore=tests/semantic).
Add tests/semantic: translate two hand-written, branch-free pixel shaders
(ps_sdwa, ps_ops) and execute the resulting SPIR-V with a small strict
interpreter, asserting every mrt0 word against hand-derived expectations.
Catches wrong-value regressions (SDWA selects/sext, min3/max3, bfe_i32,
packed f16 FMA) that spirv-val cannot.
- Standard library only; no LLVM, SPIRV-Tools, GPU or game files.
- Interpreter rejects unmodelled constructs instead of approximating.
- Negative controls sabotage translated output; mutation tests sabotage a
temporary copy of tools/ and require the matching test to fail.
- Fixtures are generated from runtime/test/shaders/*.asm.
- CI job semantic-tests (Windows + Ubuntu, Python 3.12), discovery limited
to tests/semantic.
Preserve whole-wave mask operations, saved EXEC values and flat
pixel inputs when generating SPIR-V. Keep a dispatch-loop fallback
alongside structured control flow and share the descriptor probe.
Add reproducible GPU fixtures for these cases and exercise the
control-flow and mask analyses in CI.