Commit Graph

211 Commits

Author SHA1 Message Date
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