mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 21:30:43 +00:00
40 lines
12 KiB
Markdown
40 lines
12 KiB
Markdown
# Phase 02 Xbox ecosystem 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.
|
|
|
|
Screened the eight A3 leads on 2026-11-23 against section 6 of the dual-track brief. The pins below identify the default-branch snapshots and their latest observed commits in UTC. The OpenScarlett tip changes documentation. A recent tip establishes activity, and its commit message records the subject of that activity. See the companion notes for [KyTx and Leonida](phase02-collaboration.md) and [CPU engine selection and original interpreter fixture](phase02-cpu-feasibility.md).
|
|
|
|
GitHub metadata and tree entries establish availability and paths. Pinned text inspection establishes what a selected function does in source. Upstream test counts, captures and README statements remain upstream reports. No upstream code, builds, fixtures or GPU workloads were executed here. Repository-level license labels are provisional for reuse. File-specific grants, origin and transitive terms remain unverified for every code surface below.
|
|
|
|
## Repository screen
|
|
|
|
| Candidate and pinned activity | Evidence and decision |
|
|
| --- | --- |
|
|
| [OpenScarlett](https://github.com/californiaAlmonds/OpenScarlett/tree/51e6a02c1cde93fe1a0f07f2d98016bac2ba3422), main, Nov 23. Hardware-report table update. Root MIT. | Series X/S project targeting Windows with C++20, D3D12 and Vulkan. The tip cites 75/75 CTest in a hardware report. Pinned inspection found `LayoutPlane2D`, `GetTileGeometry` and `ComputeIntraTileOffset2D`, which separate plane footprint, tile geometry and within-tile addressing. Comments about console format ordinals and source provenance need independent confirmation. Tree entries also indicate GDK sample material with separate license metadata. Use the separation of concerns as a research lead for an original linear texture test. Defer console swizzles until the relevant contract has a public source and authorized vectors. [Implementation](https://github.com/californiaAlmonds/OpenScarlett/blob/51e6a02c1cde93fe1a0f07f2d98016bac2ba3422/src/gpu/xg_layout.cpp) |
|
|
| [Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/tree/00860ec6c9e02cb2685471d8beb1e9c2f1799ac5), main, Nov 23. PE TLS templates merge. Root MIT. | Series-title research on Windows x64 with D3D12 and WARP. Repository metadata reports source-built executables and two pixel shader comparisons, with full startup unverified. Pinned `era_gpu_alias::open` in `src/era_gpu_alias.cpp` checks the Windows allocation base and committed state, queries existing-heap support and requests the D3D12 device interface. The title-specific source and input provenance remain unresolved. Replace the host-address premise with Xenora-managed guest ranges and opaque handles. Public PE parsing is a possible later research surface. [Alias source](https://github.com/R0Y00/Xbox2Windows/blob/00860ec6c9e02cb2685471d8beb1e9c2f1799ac5/src/era_gpu_alias.cpp) |
|
|
| [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/tree/44597abb16aced385dd28a7f7dff3e277bd86b5c), main, Nov 23. Compute LDS merge. Root GPL v3 text reported by GitHub. | Metadata describes Series software on PC and names TomBox and rage9. The Rust tree contains Win32 compatibility crates, layout oracle tests and shader translation code. The pinned merge subject names `ds_mskor_b32` and `ds_wrxchg2_rtn_b32`. This review did not inspect those implementations or run their tests. Separate TuxBox and rocJitsu license entries and the TomBox relationship require file-by-file provenance review. Treat LDS as a public AMD ISA experiment and defer all upstream fixture and code reuse. [Pinned merge](https://github.com/omonkeyz/xbox-emulator/commit/44597abb16aced385dd28a7f7dff3e277bd86b5c) |
|
|
| [TomBox](https://github.com/drycheetah84/TomBox/tree/4f66ea98423e02e1cbb1d6d068e55e3a98d408fd), master, Nov 22. Shader compute readback merge. Root license unavailable in the screen. | Metadata describes Series API shimming. Tree lists a Rust workspace, Windows CI and named game shaders and capture artifacts. Authorization and origin are unresolved. Screening stopped at tree metadata. Runtime backend details, exact shader behavior, file grants and execution evidence remain unknown. Reject as a source of code or fixtures. |
|
|
| [ScarlettX](https://github.com/Freminet/ScarlettX/tree/01c642cf62a6d9978f535e2c438c488ebcb4cd39), main, Nov 22. Frame cap and pacing changes. Root license unavailable in the screen. | Windows x64 Series high-level emulation and claimed clean-room origin. Tree includes a D3D12 backend. Pinned `TexelElementOffset` and `CopyFromSubresource` work from a mip view and block offset rules. The swizzle tables and Xbox applicability remain unverified. Use only the API shape as a lead for checking slice and mip bounds in original fixtures. [Layout source](https://github.com/Freminet/ScarlettX/blob/01c642cf62a6d9978f535e2c438c488ebcb4cd39/src/gpu/xg_layout.cpp) |
|
|
| [scarlett-layer](https://github.com/jadeowaowa/scarlett-layer/tree/f4f0d7e124921b2d2253f23ecc9ea10cc879be36), main, Nov 22. RDNA2 oracle and corpus sprint. Root Apache-2.0. | Windows x64 and D3D12 compatibility layer targeting unpacked, unencrypted Series executables. Pinned `TestRdna2OracleAluAndCbvDiffE2E` constructs RDNA words and separate HLSL reference cases. Pinned `CreateScarlettCommandQueueX` is a D3D12 shim entry in a Windows queue implementation. The commit advertises 28 oracle cases and a 255-ELF sweep. Corpus rights, expected-value independence and execution were outside this review. Use the two-path test structure with independently derived outputs and native Metal readback. [Oracle cases](https://github.com/jadeowaowa/scarlett-layer/blob/f4f0d7e124921b2d2253f23ecc9ea10cc879be36/src/tests/scarlett_tests/tests_rdna2_oracle.cpp) · [Queue source](https://github.com/jadeowaowa/scarlett-layer/blob/f4f0d7e124921b2d2253f23ecc9ea10cc879be36/src/shims/d3d12_xs/command_queue_x.cpp) |
|
|
| [GDKScarlett](https://github.com/Ender-0001/GDKScarlett/tree/e703bc3a11ad2780c9167f98c25b9867c7b08797), main, Nov 21. Initial d3d12_xs commit. Root BSD-2-Clause. | Visual Studio DLL projects for Windows. Pinned `XboxDescriptorHeapWrap` and `XboxDescriptorHeapUnwrap` bridge descriptor heap objects around D3D12 interfaces. The tree also lists C++ GCN-to-HLSL sources. Series shader coverage, ABI provenance, target architecture and run evidence remain unverified. Take the handle ownership question into a synthetic Metal contract. Defer the shim and shader code. [Heap wrapper](https://github.com/Ender-0001/GDKScarlett/blob/e703bc3a11ad2780c9167f98c25b9867c7b08797/Libraries/d3d12_x/XboxDescHeap.cpp) |
|
|
| [DirectXbox-Recomp](https://github.com/phobos665/DirectXbox-Recomp/tree/34460a643b4e75a5b6172158a25cd84189066529), main, Nov 9. Title-specific SH2 change. Root GPL v3 text reported by GitHub with separate upstream MIT and other notices. | Original Xbox recompilation and NV2A work derived from xboxrecomp, with Windows and POSIX paths described upstream. Pinned `tests/guest_memory/test_main.c::main` tests fixed placement, aliased backing and read/write protection in a guest arena. Its platform compatibility and fault-handler assumptions require their own proof. Use the memory invariants to derive software checks on Darwin ARM64. Upstream title claims, native ARM64 status and per-file lineage remain unverified. [Memory test](https://github.com/phobos665/DirectXbox-Recomp/blob/34460a643b4e75a5b6172158a25cd84189066529/tests/guest_memory/test_main.c) · [License inventory](https://github.com/phobos665/DirectXbox-Recomp/blob/34460a643b4e75a5b6172158a25cd84189066529/LICENSES/README.md) |
|
|
|
|
The Windows experiments provide design leads for host-side contracts. DirectXbox-Recomp targets original Xbox, and its NV2A behavior cannot establish Series RDNA behavior. PS5 and Xbox 360 have separate GPU and service contracts. Public AMD ISA and Apple or Microsoft API specifications are Class B for the behavior they document. Applying desktop RDNA semantics to Series is Class C. Repository source and developer reports do not elevate console claims or establish any authentic title milestone.
|
|
|
|
## Ranked experiments
|
|
|
|
The rank favors direct reuse of Xenora's existing test entry points and small, reversible changes. Each row proposes original Xenora code and fixtures under GPL-3.0-or-later. The source and root license for each design lead are pinned above. Independent reviewers derive expected values from public specifications or the original synthetic contract. Keep all probes isolated until review and leave each production interface on its current baseline if a probe fails.
|
|
|
|
| Rank and component | Scope, acceptance and fallback |
|
|
| --- | --- |
|
|
| 1. scarlett-layer differential compute case | Add one original integer/bitwise boundary case to the gfx1030 fixture and `tests/validation` flow, using the upstream ALU test shape. Compare lane-indexed outputs on the independent CPU path and native `crates/metal/tests/native_compute.rs`. Include a mutation such as a changed shift count that must alter a checked output. Risk is correlated expectations from the encoding helper or compiler. Derive expected words independently and retain the current fixtures if the case cannot distinguish the intended fault. [AMD RDNA2 ISA](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf) |
|
|
| 2. DirectXbox-Recomp guest region checks | At the proposed Track B X2 test boundary, model two guest ranges backed by explicit software regions. Verify fixed-range overlap rejection, alias visibility through distinct guest addresses and rejection of a cross-boundary write with zero partial effects. Test guest permissions within a backing region larger than a guest page. Avoid fixed host mappings and signal handlers. Maintenance is limited to the original software map. Fall back to disjoint code and data regions if alias semantics are premature. [CPU boundary](phase02-cpu-feasibility.md) |
|
|
| 3. GDKScarlett descriptor ownership and Xbox2Windows allocation check | At the X3 boundary and `crates/metal/tests/native_compute.rs`, accept one opaque typed handle with a checked range and access mode. Submit a known write, retire the guest handle after submission and verify the allocation lives through completion. Reject stale, wrong-type and overflowing ranges before encoding. Guest input must never become a host pointer. Risk is asynchronous use after release. Keep the existing direct two-buffer ABI as the fallback. [Interface contract](../interfaces.md) |
|
|
| 4. OpenScarlett plane footprint and ScarlettX subresource range | Extend the proposed offscreen path in `crates/metal/tests/native/offscreen.rs` with one original linear RGBA8 subresource transfer using padded source rows. Derive visible pixel values and padding canaries independently. Reject short storage, overflow and invalid subresource selection. Query the native alignment for the actual Metal path where required. Keep the tightly scoped offscreen baseline if the transfer contract needs revision. Xbox tiling and compression remain research tasks. [Microsoft linear footprints](https://learn.microsoft.com/en-us/windows/desktop/api/d3d12/ns-d3d12-d3d12_placed_subresource_footprint) · [Apple buffer-backed texture alignment](https://developer.apple.com/documentation/metal/mtlbuffer/maketexture%28descriptor%3Aoffset%3Abytesperrow%3A%29) |
|
|
| 5. omonkeyz LDS update lead | After the compute ABI can represent workgroup storage, isolate a single documented LDS masked update in `crates/decoder`, `crates/shader`, `crates/ref` and `tests/validation` with separate lane addresses and an independently computed output. Check untouched words and reject malformed operand and out-of-range cases. Defer same-address concurrency and any barrier semantics until there is a separately verified synchronization contract. The baseline explicitly rejects LDS. [AMD RDNA2 ISA](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf) |
|
|
|
|
The A3 screen yields architecture notes and original test designs. Dependency, vendoring and submodule decisions remain deferred. None of the inspected paths established a standalone native ARM64 Metal component with verified file terms and independent acceptance evidence. For authentic Series graphics or loader work, record the unresolved ABI, command and texture-layout questions before exercising any authorized input. Xenora game execution remains unsupported in this evidence.
|