mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 19:30:43 +00:00
35 lines
7.1 KiB
Markdown
35 lines
7.1 KiB
Markdown
# Phase 02 collaboration research
|
||
|
||
The implementation policy is [independent authorship](../../CONTRIBUTING.md).
|
||
Historical reuse discussion records the earlier survey. Xenora uses
|
||
public specifications and original fixtures, with other emulator
|
||
projects serving only as references for test selection.
|
||
|
||
Reviewed 2026-11-23 against Xenora `4b9a4cecf35c8d4d90d8ecdb9c1510e7bd260102`. Evidence consists of public source inspection and upstream reports. No builds, fixtures, game inputs or hardware tests were run.
|
||
|
||
## KyTx
|
||
|
||
TxCsOffc offered help with Wave64/EXEC, descriptors, PM4 and large MSL programs. Xenora already accepted the offer in principle and invited a small contribution. The FC 27 menu and 30–37 FPS match on M5 Max are class D developer reports, with rendering flaws and stability issues. The issue and README come from the same project and provide no independent reproduction. This PS5 report does not establish Xbox behavior. [Offer and maintainer reply](https://github.com/ranveersoni98/Xenora/issues/1), [KyTx README at inspected revision](https://github.com/TxCsOffc/KyTx/blob/10f50d3eff0c0df36ee5d7007848a7b0b15072eb/README.md)
|
||
|
||
At KyTx `10f50d3eff0c0df36ee5d7007848a7b0b15072eb`, `Wave64Pair`, the emitter's per-half instruction path and its two-word ballot support the architectural description. The selector also has stage and diagnostic controls, so the source does not establish uniform coverage of all stages, opcodes or cross-half cases. Use this as a design lead. KyTx documents a native Metal product path and an external FEX-darwin build dependency. [MSL emitter](https://github.com/TxCsOffc/KyTx/blob/10f50d3eff0c0df36ee5d7007848a7b0b15072eb/src/graphics/shader/recompiler/backend/msl/MslEmitter.cpp#L3152), [Build notes](https://github.com/TxCsOffc/KyTx/blob/10f50d3eff0c0df36ee5d7007848a7b0b15072eb/README.md#building)
|
||
|
||
### First contribution
|
||
|
||
Request original gfx1030 Wave64 assembly, a mask/lane design note and per-lane expected outputs. Specify an isolated 64-lane synthetic ABI with full initial EXEC, lane-indexed output and a sentinel for inactive writes. Cover full, empty, alternating and asymmetric masks, lanes 0/31/32/63, and nested save, modify and restore of EXEC. Use observable scalar results to catch accidental duplicate scalar effects. Identify encodings with the pinned LLVM oracle (class E) and have R2 derive expected results independently from AMD's public ISA (class B for documented desktop RDNA 2, with Xbox applicability unknown). Require explicit rejection outside the supported subset. Keep the first PR fixture-only. Any later native lowering needs its own exact readback and validation evidence, including the measured pipeline execution width. [AMD RDNA 2 ISA](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf), [Xenora interface](../interfaces.md)
|
||
|
||
KyTx declares GPL-2.0. Tx's conditional GPL-2.0-or-later offer covers only material they own and can license. Require file-level authorship, explicit compatible terms (GPL-3.0-or-later preferred for new Xenora fixtures), preserved notices and DCO. Inherited GPL-2.0-only code cannot enter the GPL-3.0-or-later combined work under those terms. The separate Kyty MIT notice does not settle a derived file's full provenance. No KyTx submodule is justified for the fixture. [KyTx license and notices](https://github.com/TxCsOffc/KyTx/tree/10f50d3eff0c0df36ee5d7007848a7b0b15072eb/LICENSES), [KyTx license](https://github.com/TxCsOffc/KyTx/blob/10f50d3eff0c0df36ee5d7007848a7b0b15072eb/LICENSE)
|
||
|
||
## Leonida
|
||
|
||
Public revision `2d3369a4c82e6f36c5190c4c534d3df600e135ec`. Candidate study surfaces and limits:
|
||
|
||
| Surface | Evidence and disposition |
|
||
| --- | --- |
|
||
| Decode and translation | `decode_bytes` decodes RDNA words with an explicit wave-mode argument. The SPIR-V generator exposes `Gen` and `assemble`. Compare supported operand forms on independent synthetic inputs. Keep Xenora's typed decoder and MSL backend. [Decoder](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/tools/rdna2_decode.py#L1397), [Generator](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/tools/rdna2spirv.py#L219) |
|
||
| Containers and GPU API | `wave_size` and `binding_table` expose Leonida's FSSM interpretation. The D3D12 Vulkan shim and its device test are concrete source paths. Their existence does not establish a public authoritative Xbox ABI or PM4 contract. Keep metadata and guest handles outside Xenora's decoder, with explicit wave size, checked byte ranges and validated resource bindings. [FSSM reader](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/tools/fssm_header.py#L155), [Device shim](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/runtime/shims/d3d12_vulkan_device.cpp), [Device test](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/runtime/test/d3d12_vulkan_device_test.cpp) |
|
||
| Executable and services | `Loader::load` and `Loader::load_runtime_module` establish an implemented Windows PE loading and shim boundary. CMake registers loader, bounds and TLS tests. The upstream stand-in run is reported. For Xenora, study the boundary using original PE fixtures, with checked image metadata, guest address translation and explicit service dispatch. Native Windows execution and the Vulkan runtime conflict with Xenora's host contract. [PE loader](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/runtime/src/pe_loader.cpp#L608), [Test registration](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/runtime/CMakeLists.txt#L516) |
|
||
|
||
The README reports 26,503 translations and SPIR-V validation at specific earlier revisions. It contains conflicting Wave64 counts, so leave that count unresolved. The linked GPU reports cover synthetic cases and include a MoltenVK path. Validation and pipeline creation do not check game shader output. The pinned status explicitly says the game does not boot. Xenora's GTA VI intro remains unverified, and no authorized test input was established in this review. [Pinned status](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/README.md#project-status), [Reported validator run](https://github.com/ItsNotRexed/Leonida/issues/644#issuecomment-7072972586), [Upstream GPU reports](https://github.com/ItsNotRexed/Leonida/issues/166)
|
||
|
||
Leonida carries GPL v3 text at the inspected pin. Any adoption still requires R1 to establish exact file terms and ownership, check generated tables and SDK-derived material, and review the separate `third_party/rpf9-explorer` gitlink at `e2939175c36a02d6ed25fa2c217b9d6ddcb8b516`. Game-derived metadata, shaders and asset outputs are outside this collaboration. Use public design references and original synthetic inputs. No Leonida submodule is justified. [Leonida license](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/LICENSE), [Submodule declaration](https://github.com/ItsNotRexed/Leonida/blob/2d3369a4c82e6f36c5190c4c534d3df600e135ec/.gitmodules)
|