mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 05:12:50 +00:00
Add the opt-in d3dmetal-harness crate (bx-d3dmetal-harness) that runs a user-supplied D3DMetal.framework outside CrossOver/Wine through utmapp/d3dmetal-native, so D3D12 faults can be attributed to D3DMetal or to Wine. D3DMetal ships x86_64-only, so an x86_64 probe hosts it under Rosetta 2 while the arm64 harness locates the framework, checks Mach-O archs, runs the probe with a cleared environment and timeout, and judges the readback of an original SM 6.6 DXIL compute kernel against host-computed values. Without a framework the harness reports SKIP; default builds and tests need neither D3DMetal nor the probe. Record d3dmetal-native, directx-native and DXC per file in the upstream registry and component reuse matrix. Closes #417 Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
3.9 KiB
3.9 KiB
Component reuse matrix
Companion to the upstream registry; same evidence limits (class D, nothing run, not legal advice), except the rows marked #417, which were built and run as recorded in the registry's M1-D2 section. "External" means installed or supplied by the user and invoked, never bundled or copied. GPL-3.0-or-later is BetterXen's license.
| Need | Candidate | Decision | Reason and condition |
|---|---|---|---|
| Windows runtime APIs | CrossOver (Wine-based) | Adopt as external dependency (strategic decision, ADR 0005) | Proprietary product; do not bundle or redistribute. Capabilities and interfaces unverified (#348, #350). |
| Windows runtime APIs | Upstream Wine | Reference; source may be consulted | LGPL 2.1. Copying source would need per-file review and a recorded pin. Not needed for the current plan. |
| x86-64 on ARM64 | Rosetta 2 | Permitted where Apple supports it; external | Apple component; support lifetime unknown (#349). BetterXen's own code stays ARM64. |
| x86-64 on ARM64 | FEX | Not applicable now | README targets ARM64 Linux. Re-check only if a macOS host path appears. |
| Direct3D 12 to Metal | D3DMetal | Evaluate as external, subject to license | Not in CodeWeavers' FOSS list; terms and availability to verify (#349, #354). Not redistributable until proven. |
| D3D12 on D3DMetal outside Wine (fault isolation) | utmapp/d3dmetal-native | Adopt as external, opt-in test dependency (#417) | MIT; built and run at af1ee17 (see the registry's M1-D2 section). The user builds it; BetterXen copies none of it, and only the x86_64 probe links it. It forces an x86_64 process under Rosetta 2 because D3DMetal is x86_64-only. BetterXen's arm64 tools drive that process instead of loading the framework. Never use its D3DMetal binary patcher. |
| Shader compilation for BetterXen's own test kernels | DirectX Shader Compiler (official release) | Use as external tool (#417) | Run under CrossOver Wine because there is no macOS release. Only compiler output of BetterXen's own HLSL is committed, with version and hashes recorded. The package's Microsoft licence terms cover its closed-source parts, which are never redistributed. |
| Direct3D 11/10 to Metal | DXMT | Evaluate as external binary or build | LGPL 2.1-or-later; usable as a separate process or library under LGPL terms; linking or copying needs legal review (#354). |
| Direct3D to Vulkan | DXVK | Evaluate only together with MoltenVK | zlib/libpng is permissive and GPL-compatible. Value on macOS unknown. |
| Direct3D 12 to Vulkan | VKD3D-Proton | Evaluate; blocked on a Vulkan 1.3 provider | Depends on MoltenVK feature coverage, unknown. |
| Vulkan on Metal | MoltenVK | Evaluate | Apache-2.0 (compatible with GPLv3). Subset of Vulkan; coverage vs consumers unknown. |
| Shader compiler / runtime | VIctory, VIctory-macOS | Rejected for reuse | Built for a specific commercial game's Xbox Series build whose provenance is not established as authorized. Ideas only. |
| Project discovery | PortWatch VI | Reference only | Editorial tracker; not engineering evidence; nothing imported. |
| x86-64 decode and ARM64 translation, runtime, gfx1030 compiler, Metal backend | BetterXen native implementation | Preserved, paused | Reuse only where hybrid needs it and it shows a demonstrated advantage; not forced into the architecture. |
| Test and diagnostics methodology | BetterXen existing audits, benchmark harness, claims registry | Reuse | Existing evidence classes, claims audit and benchmark gating apply to hybrid work (Phase 1 onward). |
| Configuration, diagnostics, benchmarking around CrossOver | BetterXen | Build (Phase 2, provisional) | Only after Phase 1 shows what CrossOver does not already provide (#351). |
Open items: license text for every selected component must be read from the exact release used; DXMT, DXVK and Wine contributor and file-level notices are not reviewed.