mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 23:30:44 +00:00
Adds docs/research/d3dmetal-gpu-limits.md: the D3DMetal and Apple GPU constraints a shader translator has to handle (wave64 splitting, 64-bit atomics and lock emulation, the 32 KiB mesh output limit, an Apple shader compiler crash on early-merged output stores, and OpenExistingHeapFromAddress). Each item is marked as either measured by the new fixture or reported from local builds of a commercial title. It is linked from the M2 and M3 roadmap rows and from the docs index. Adds tests/conformance/test_d3dmetal_gpu_limits: an original D3D12 compute fixture that talks to the host d3d12.dll directly. It has four original HLSL kernels with committed DXC 1.9.2609 output, and shaders/compile.sh regenerates them. Expected values are computed on the CPU. On an Apple M3 Pro (macOS 27.2.1, CodeWeavers Wine 11.0 built from source, D3DMetal 4.0b3) the WaveSize(64) pipeline and the kernels using SM 6.6 64-bit atomics are created but never run. The bounded lock emulation is exact at a 1024-try cap and drops updates at 64 tries. Signed-off-by: Vicente Abarca <135478656+Scarlet-Noble@users.noreply.github.com>
BetterXen Documentation
Getting Started & Architecture
- Project README — Overview, quick start,
bx-clicommands, and verified scope. - Roadmap — Single authoritative plan (Milestones M0–M6) and completion gates.
- Parallel Track Architecture — 6-track directory ownership, ABI freeze rule, and multi-agent Git workflow.
- Wave 1 Parallel Backlog — Non-overlapping starter issues across Tracks A–F.
- Frozen ABI Contracts — Cross-DLL C headers (
abi/include/) and canonical.defexport tables (abi/defs/). - Synthetic Conformance Suite — Auto-discovered PE32+ conformance binaries.
- Changelog — Unreleased and historical changes.
Architecture Decision Records
- ADR 0005: CrossOver-based hybrid direction — Pivot to CrossOver + Rosetta 2 + D3DMetal as the external foundation.
- ADR 0006: Retire in-tree native-first workspace — Retirement of paused native code/scripts/docs from
main(preserved at Git tagnative-first-final).
Research, Testing & Licensing
- Hybrid Workloads & Measurement Protocol — Original Windows workloads, receipt fields, timing conventions, and negative controls.
- CrossOver Licensing & Redistribution Boundaries — Per-component license review for CrossOver, Wine, DXMT, DXVK, VKD3D-Proton, MoltenVK, D3DMetal, and Rosetta 2.
- Upstream Research Registry & Component Reuse Matrix — Public upstream evaluation and provenance screening.
- Primary-Source Verification (2026-11-25) & Hybrid Backlog Research Record — Vendor documentation verification notes.
- D3DMetal GPU Limits — Constraints a shader translator targeting D3DMetal must handle (wave64, 64-bit image atomics, mesh output size, compiler crash, heaps), with the
test_d3dmetal_gpu_limitsfixture (#453). - Public Technical References, Xbox GDK Notes, RDNA 2 Notes, and Shader Containers — Public specification references for shim and shader work.
Governance, Security & Legal
- Engineering & Agent Rules (
CLAUDE.mdsymlink) — Mandatory rules for human contributors and coding agents. - Contributing Guidelines — Claiming, verification, clean-room policy, and DCO sign-off.
- Claims & Evidence Classes — Evidence classification definitions (classes A–D, U).
- Legal Scope, Dependency Licensing, and Third-Party Notices — Input policy, attribution, and redistribution boundaries.
- Threat Model & Security Policy — Isolation boundaries and vulnerability reporting.