Commit Graph

21 Commits

Author SHA1 Message Date
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
797b13473d Merge pull request #9 from Adrià 2026-11-21 11:46:53 -05:00
3fe7b7feac Merge pull request #8 from Adrià 2026-11-21 11:46:53 -05:00
ad27984923 Merge pull request #12 from Adrià 2026-11-21 11:46:52 -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
78e44e3eb3 Add an issue form for bug reports
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-21 14:28:21 +01:00
3ecfae302f Add a pull request template from CONTRIBUTING.md
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-21 14:15:04 +01:00
233c59f9a5 CI: Dependabot for GitHub Actions and the rpf9-explorer submodule
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-21 14:15:02 +01: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