Commit Graph

40 Commits

Author SHA1 Message Date
9251d2f3d7 Merge pull request #542 from kotorvr 2026-11-21 19:53:11 -05:00
dab1015bd2 Merge pull request #451 from VictorJulianiR 2026-11-21 19:43:40 -05:00
24bfb65867 Follow up three review points on merged PRs (#326, #308, #292)
- 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>
2026-11-22 00:37:20 +00:00
f72cbd90b0 Run texture tests with pinned dependencies after the CI split 2026-11-21 21:28:04 -03:00
8f3fc8bd3b CI: build Windows Vulkan/COM targets via Vulkan-Headers and add sccache 2026-11-21 21:27:42 -03:00
3ef8f4f6df CI: scope Runtime workflow by path, run Linux ctest, enable D3D12 shim test 2026-11-21 21:27:07 -03:00
6b07adf9ba Merge pull request #447 from SombraSoft 2026-11-21 19:14:06 -05:00
df1c2efa71 Merge pull request #444 from SombraSoft 2026-11-21 19:14:05 -05:00
22b3259b5b Merge pull request #438 from SombraSoft 2026-11-21 19:14:04 -05:00
8a7f0de19b Merge pull request #434 from SombraSoft 2026-11-21 19:14:03 -05:00
f9ba6967d3 Merge pull request #432 from SombraSoft 2026-11-21 19:14:03 -05:00
f58e7c4a04 Run the NumPy and Pillow texture tests in Ubuntu CI 2026-11-21 20:53:45 -03:00
e3c13c6df1 CI: run translator-tests against LLVM 21 to match documented requirement 2026-11-21 20:42:52 -03:00
e2ad499d45 CI: upgrade viewer-tests to Node 24 LTS and add pip/NuGet caching with global.json 2026-11-21 20:42:13 -03:00
6b5786b348 CI: keep no-game-data check always on for docs-only PRs 2026-11-21 20:41:57 -03:00
49f4958a4b CI: run the GPU tests on Mesa llvmpipe
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
2026-11-21 23:39:29 +00:00
bf3e0a2069 CI: deduplicate runtime and pytest runs, add timeouts and rpf9dump diagnostics 2026-11-21 20:37:18 -03:00
2e23b7e73b CI: lint GitHub Actions workflows with jactionlint 2026-11-21 20:32:33 -03:00
fe413a2f1c Cancel superseded runs and skip heavy CI on docs-only PRs 2026-11-21 23:59:08 +01:00
798f4f6933 Rebuild ci.yml on current main; pin setup-node.
Updated CI workflow to include tests directory in Python compilation and added viewer tests for chunk streaming.
2026-11-22 01:13:55 +03:00
3cb99297cd Update checkout action versions in runtime.yml 2026-11-22 01:01:48 +03:00
f2d0063282 Refactor CI workflow and update action versions
Updated CI workflow to use specific action versions for checkout and setup-python. Removed viewer-tests job and adjusted steps for consistency.
2026-11-22 00:58:50 +03:00
bc9e77c8ba Merge pull request #213 from Jonathan 2026-11-21 16:37:30 -05:00
0c17741bf4 Viewer: retry failed chunk loads with bounded backoff 2026-11-21 17:29:15 -04:00
f35db03d8e CI: byte-compile tests/ too, as CONTRIBUTING.md says
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.
2026-11-21 15:08:50 -06:00
711d386320 CI, tests, tools: fix file handle leak, skip without pytest, build GPU tools on Linux
- 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.
2026-11-21 21:10:01 +01:00
9f79505a88 CI: leave pytest-based test files to the translator-tests job
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).
2026-11-21 18:11:57 +01:00
f20ea6dde8 Merge pull request #28 from Eremia Brinzoi Razvan Andrei 2026-11-21 12:26:30 -05:00
770c496630 Record full-view color clears and replay them on Vulkan 2026-11-21 19:20:39 +02:00
056dafe073 ci: bump the actions group with 3 updates
Bumps the actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [actions/setup-python](https://github.com/actions/setup-python) and [actions/setup-dotnet](https://github.com/actions/setup-dotnet).


Updates `actions/checkout` from 4 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

Updates `actions/setup-python` from 5 to 7
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v7)

Updates `actions/setup-dotnet` from 4 to 6
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-dotnet
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-21 16:59:35 +00:00
718b714871 CI: run the stdlib test scripts without test_translate.py (it needs pytest; the translator-tests job runs it) 2026-11-21 11:51:28 -05:00
4b251d1cb6 Merge pull request #15 from Mulkku
# Conflicts:
#	runtime/test/vk_store_test.cpp
#	runtime/test/vk_texture_test.cpp
#	runtime/test/vulkan_loader.h
#	tools/rdna2spirv.py
2026-11-21 11:47:52 -05:00
ab4fb9c6c1 CI: fix the translator-tests / semantic-tests job merge 2026-11-21 11:47:20 -05:00
af5dc7be3b Merge pull request #20 from ttd0x
# Conflicts:
#	.github/workflows/ci.yml
2026-11-21 11:47:13 -05:00
d70f44b292 Merge pull request #1 from Ewann 2026-11-21 11:46:54 -05:00
695ae01d21 tests: value-level regression tests for RDNA2 -> SPIR-V pixel shaders
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.
2026-11-21 18:27:51 +02:00
987e8471ee Fix RDNA2 wave masks and flat inputs
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.
2026-11-21 16:56:54 +02:00
4a90f8678a CI: build the runtime with MSVC
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-21 14:13:52 +01:00
44021cb729 Add pytest regression tests for the RDNA2 -> SPIR-V translator 2026-11-21 09:17:32 +01:00
db0dc8bd5e Initial commit: Leonida, build-it-yourself PC port groundwork
Shader pipeline (carve, FSSM unpack, gfx1013 disassembly, RDNA2 to SPIR-V),
asset export via rpf9-explorer's Core (submodule), PE loader and shim
skeleton, and make_game.py, which builds from the user's own copy of the game.
No game data, keys or executables are included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:22:16 -05:00