Commit Graph

20 Commits

Author SHA1 Message Date
60faf88cf2 deps: bump third_party/rpf9-explorer from 73e9400 to cab9bb6
Bumps [third_party/rpf9-explorer](https://github.com/breadbbbb/rpf9-explorer) from `73e9400` to `cab9bb6`.
- [Release notes](https://github.com/breadbbbb/rpf9-explorer/releases)
- [Commits](73e940075c...cab9bb6ebe)

---
updated-dependencies:
- dependency-name: third_party/rpf9-explorer
  dependency-version: cab9bb6ebe6d46fec6ac90ee5004bdd8cfd9e31a
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-12-01 22:16:37 +00:00
6ce261718a deps: bump third_party/rpf9-explorer from e293917 to 73e9400
Bumps [third_party/rpf9-explorer](https://github.com/breadbbbb/rpf9-explorer) from `e293917` to `73e9400`.
- [Release notes](https://github.com/breadbbbb/rpf9-explorer/releases)
- [Commits](e2939175c3...73e940075c)

---
updated-dependencies:
- dependency-name: third_party/rpf9-explorer
  dependency-version: 73e940075cc4d113252b5271bf0d83b1b014042a
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-30 01:21:35 +00:00
e02ec36bf3 acphal: synchronize XMA context words and bound the output ring 2026-11-24 04:29:18 -03:00
cfcedb58e2 acphal: decode XMA contexts with runtime/xma_decoder when cargo is available
Replace the hand-written C++ XMA2/WMA Pro decoder with the Rust decoder
already on main. runtime/CMakeLists.txt builds it at configure time when
cargo is on PATH and links it into gta6rt and acphal_test
(LEONIDA_HAVE_XMA2_DECODER); without cargo, if that build fails, or with
the cl.exe fallback, XMA voices output silence for each packet's frame
count.

The ring engine decodes whole 2048-byte packets: the read offset and the
loop points are used per packet, so a loop plays its end packet in full
and restarts with a fresh decoder at the packet holding the loop start.
The C ABI gains leonida_xma2_decoder_create_hardware (no first-frame drop,
no 64-sample start skip), since the context carries its own skip.

Tested: acphal_test 129 checks (silence) and 125 checks (Rust decoder,
gnullvm build), 0 failures, 3 runs each, clang 23 / mingw x64; cargo fmt
and cargo test (gnullvm); pytest build/docs suites 204 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 03:53:37 -03:00
8714c3503b [RT-197] Add the XMA2 decoder C ABI boundary (#3441)
Squash-merged after diff review of PR #3441
2026-11-23 09:54:45 -06:00
bb75702bc6 Revert #4638: the rpf9-explorer submodule pin stays at e2939175
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:17:16 -05:00
064d06e459 Merge pull request #4638 from lines9686-rgb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:42 -05:00
15435e54da third_party/rpf9-explorer: pin ad41e794 (RbPlus 64 KiB 4 BPP tile order, ASSET-125)
breadbbbb/rpf9-explorer#15 merged: Core/TtpfReader.cs Patterns[2] now uses the
RDNA2/RbPlus (3, -3) order at bits 6..7 (GFX10_SW_64K_D_RBPLUS_PATINFO), as
tools/ttpf_mips.py already does. The pin also brings #13, merged just before it
(32 kHz Opus durations in 48 kHz frames). docs/textures.md "Next step" drops the
Patterns[2] item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:13:03 +03:00
6c2f31e61e fix(xtaskqueue): harden wait registration lifetime and dispatch
(cherry picked from commit 4129a8ae9508c88b96301b6422d3131525e1d02d)
2026-11-22 21:59:14 -03:00
aac68ca651 fix(xtaskqueue): prevent reentrant context enumeration deadlocks
Replace AtomicVector context visits with cursor-based enumeration and safe pinning. Add deterministic reentrancy and concurrent attach/detach regression tests.

Compatibility: contexts without the private pinning capability are rejected. Win32 WaitRegistration lifetime issues remain outside this commit.
(cherry picked from commit d808cfb538d8a65e24b42a86b89afd22d497b14b)
2026-11-22 21:59:14 -03:00
c93b8ea8c6 feat(xtaskqueue): add safe context pinning capability
(cherry picked from commit 2381f5c749b7e284535ad5614a27101a98751de5)
2026-11-22 21:59:14 -03:00
2c1a143f9e refactor(xtaskqueue): integrate atomic API reference lifecycle
(cherry picked from commit eb2ee925db613467e237c032bc7b8eb99ae156aa)
2026-11-22 21:59:14 -03:00
e05b3da707 refactor(xtaskqueue): introduce atomic API reference state
(cherry picked from commit 2c16a9c16ee4f8112d1a1a8d51802d2d30e775cb)
2026-11-22 21:59:14 -03:00
41f448261e Restore the rpf9-explorer pin to e293917
5d32ddb7 (a docs commit) carried third_party/rpf9-explorer back to 917e9b9, undoing #1313's bump for the C# BCPack
BC1/BC3/BC4/BC5 decode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:29:56 -05:00
5d32ddb7f4 Docs: textures.rpf header variants, say only what was seen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:33:22 +00:00
c833ae6d48 ASSET-44: Bump rpf9-explorer for C# BCPack BC1/BC3/BC4/BC5 decode 2026-11-22 06:57:22 -03:00
6778c2f47e Vendor the upstream BCPack entropy decoder for offline builds 2026-11-22 16:19:40 +08:00
8df277fb03 Restore the rpf9-explorer pin to 917e9b9
#650, #713 and #732 all pin third_party/rpf9-explorer to 917e9b9, but a merge commit here re-staged the old
checkout (48557ea), so main kept the old pin and rpf9dump didn't build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:38:28 -05:00
36bc1200ad Runtime: offline xgameruntime shim (XGameRuntime, XSystem, XTaskQueue, XAsync)
Every GDK title calls XGameRuntimeInitialize first and builds its async work on
XTaskQueue/XAsync. Add an xgameruntime.dll shim table for those, ahead of the
executable: XGameRuntimeInitialize/Uninitialize (reference counted),
XSystemGetDeviceType (Series X; LEONIDA_DEVICE_TYPE overrides) and
XSystemGetConsoleId (placeholder), plus the 23 XTaskQueue/XAsync functions.

XTaskQueue/XAsync come from microsoft/libHttpClient (MIT), copied unmodified
into third_party/xtaskqueue (task queue only, no HTTP stack); a small pch.h
stand-in lets them build alone. xgameruntime_test drives the table through
the shim registry the way a title boots. Nothing goes online.
2026-11-21 23:06:10 +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