9.0 KiB
BetterXen documentation
Getting started
Start with the project README for scope and build commands, then read the interface contracts. Reproduce an original guest test program or run the independent validation suite before changing either path. The changelog records notable changes.
Use the roadmap for the active CrossOver-based hybrid plan, phases, critical path and completion criteria; see ADR 0005 for the decision and project board setup. Native work is paused: deferred native roadmap and the archived native-first plan with retired milestones, the native issue archive and the retired H0 to H7 breakdown. Research inputs: the upstream research registry and component reuse matrix. Historical phase checkpoints retain their original evidence scope.
Architecture and technical design
-
Proposed hybrid responsibility boundary — Draft for #351; independent evidence review and maintainer acceptance remain required.
-
Interface contracts — Translated shader stages, guest services, native command submission, and synthetic textures.
-
Fixture memory model and CPU boundary — Buffer bindings, guest address translation, and dependency direction.
Native Metal graphics
- Translated offscreen stages — Translated vertex and pixel stages for the bounded gfx1030 subset.
- Blend and depth passes — Native blend and depth graphics passes with per-draw state.
- Apple GPU evidence and host lab record — Observed behavior and historical floating-point results.
RDNA 2 decoding and shader translation
- Instruction coverage — Desktop gfx1030 instruction forms, operand limits, and CPU and GPU results.
- Semantic coverage — Generated per-family counts of identified, declared, decoded, lowered and verified gfx1030 forms.
- SOP2 scalar ALU — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
- Semantic registry — How to add an instruction form: registry fields, validation, generation and the independence rule.
- VOP1 vector unary and swap — Wave32 integer bit operations, register exchange, and operand limits.
- VOP2 select and carry — Wave32 lane selection, carry and borrow through the vector condition code.
- VOPC integer compares — Wave32 compare forms, the VCC/EXEC contract, runtime
s_cbranch_vcczand the Metal mapping. - Metal Shading Language generation and independent CPU reference — Translation rules and separate CPU execution models.
Guest CPU and runtime experiments
- Guest experiment guide — Bounded x86-64 execution, executable loading, experimental services, native compute, and offscreen rendering.
- x86-64 instruction registry — Shared decoder, generated tables, semantics, native lowering and how to add a verified instruction form.
- Proposed AVX and AVX2 guest contract — VEX decoding, vector state, fault behavior and an original integer fixture specification.
- Runtime service registry and generated coverage — Import resolution, typed Win64 adapters and how to add a tested service.
- Guest threads — Deterministic scheduler, thread services, limits and tests.
- Guest CPU research — Public specifications and unresolved console requirements.
- Synthetic import fixtures — Reproducible PE32+ builds and expected service behavior.
Testing, validation, and benchmarks
- Hybrid workloads and measurement protocol — Original Windows workload selection, metric definitions, receipt sources and independent reproduction requirements; distinguishes the pending hybrid candidate from merged behavior.
- Migrated pull-request integration review — Merge decisions, integration fixes, native verification and excluded concurrent work.
- Testing and acceptance index — Entry point for test procedures, evidence and review records.
- AMD RDNA2 desktop GPU (gfx1030) form acceptance — Independence, command, log and promotion rules for fixture-verified instruction forms.
- Engineering progress — Verification commands, metric definitions, and open release gates.
- CPU test runtime, shards and coverage map — Measured CPU gate cost, deterministic test-target shards, and a verified per-operation CPU/loader coverage map with exact test evidence.
- Test inventory comparison — Detect missing or newly ignored Cargo tests across commits.
- Persistent resource and translated rendering acceptance — Pinned upstream tests, native ARM64 results and unsupported cases.
- Baseline acceptance, Phase 01 assurance, and independent reviews — Candidate-specific results and release findings.
- Gate A: a compiled C program — The two milestones, what the A1 and A2 tests check and what they do not show.
- Mutation testing and benchmark protocol — Test sensitivity, benchmark inputs, and timing requirements.
Research and engineering decisions
- Public sources, RDNA 2 notes, and Xbox GPU evidence — Specifications, evidence scope, and unknown console behavior.
- Shader inputs and risk register — Input provenance and unresolved engineering risks.
- Texture format inventory — Formats and layouts by stage (decode, layout, native upload, sampling, guest), their public specifications, unknowns and ranked follow-ups.
- PortWatch native macOS research — Screening of public Xbox-on-Windows port projects for native macOS planning; discovery only.
- Synthetic integration and upstream evidence — Audited source snapshots and remaining commercial startup prerequisites.
- Hybrid backlog research record — Findings, registry candidates and the issues they produced (2026-11-25); not verified on hardware.
- Primary-source verification — Which hybrid-research claims were confirmed, contradicted or left unverified against vendor documentation.
- CrossOver licensing boundaries — Per-component licenses and redistribution status for the hybrid direction, with the unread documents named.
Security, licensing, and contributions
-
Threat model and security reporting — Execution limits and disclosure instructions.
-
Legal scope, dependency licensing, and third-party notices — Input policy, attribution, and redistribution findings.
-
Contribution guidelines — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements.
-
Agent task queue — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents.
-
CPU/runtime expansion campaign ledger — Progress ledger for the BetterXen native CPU and runtime compatibility campaign: starting/current commits, completed batches, new forms, verification evidence and the next implementation target.
-
Infrastructure QA ownership — Non-overlapping paths for infrastructure and QA tooling.
-
Agent queue smoke evidence — Live Actions results from the disposable smoke repository.
-
Infrastructure QA tooling — Advisory orchestration, PR validation, benchmark analysis and release checks.
-
Migration to BetterXen: source attribution, imported history and compatibility names.