mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 19:30:43 +00:00
Add docs/research/texture-formats.md, built from BetterXen main. For RGBA8, BC1-BC7 and Depth32Float it separates container recognition, CPU decoding, layout conversion, native Metal upload and readback, translated sampling and guest reachability, linking the implementing files and tests for each cell, including the packed BC footprints from It cross-references #208 and #209 rather than opening duplicate tasks, records console layouts, console descriptors and asset or audio containers as unknowns, and ranks three proposed follow-ups with an original-fixture recipe, an independent source of expected values and an owner each. Deferred formats with no demonstrated need are listed. docs/README.md indexes the page. Research only; no code changed. Ported from XenoraOSS/Xenora#427 and re-checked against BetterXen main. Signed-off-by: maridogolpeador <354308468+maridogolpeador@users.noreply.github.com>
79 lines
7.2 KiB
Markdown
79 lines
7.2 KiB
Markdown
# BetterXen documentation
|
|
|
|
## Getting started
|
|
|
|
Start with the [project README](../README.md) for scope and build commands,
|
|
then read the [interface contracts](interfaces.md). Reproduce an
|
|
[original guest test program](../experiments/x1/README.md) or run the
|
|
[independent validation suite](../tests/validation/README.md) before changing
|
|
either path. The [changelog](../CHANGELOG.md) records notable changes.
|
|
|
|
Use the [BetterXen development phases](development-phases.md) for current work
|
|
order, existing issue/PR dependencies and measurable completion criteria.
|
|
Historical phase checkpoints retain their original evidence scope.
|
|
|
|
## Architecture and technical design
|
|
|
|
- [Interface contracts](interfaces.md) — Translated shader stages, guest services, native command submission, and synthetic textures.
|
|
- [Fixture memory model](adr/0003-demo-memory-model.md) and [CPU boundary](adr/0004-cpu-boundary.md) — Buffer bindings, guest address translation, and dependency direction.
|
|
|
|
## Native Metal graphics
|
|
|
|
- [Translated offscreen stages](interfaces.md#translated-offscreen-stages) — Translated vertex and pixel stages for the bounded gfx1030 subset.
|
|
- [Blend and depth passes](interfaces.md) — Native blend and depth graphics passes with per-draw state.
|
|
- [Apple GPU evidence](research/apple-gpu.md) and [host lab record](research/host-lab.md) — Observed behavior and historical floating-point results.
|
|
|
|
## RDNA 2 decoding and shader translation
|
|
|
|
- [Instruction coverage](shaders/instruction-coverage.md) — Desktop gfx1030 instruction forms, operand limits, and CPU and GPU results.
|
|
- [Semantic coverage](shaders/semantic-coverage.md) — Generated per-family counts of identified, declared, decoded, lowered and verified gfx1030 forms.
|
|
- [SOP2 scalar ALU](shaders/scalar-alu.md) — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
|
|
- [Semantic registry](shaders/semantic-registry.md) — How to add an instruction form: registry fields, validation, generation and the independence rule.
|
|
- [VOP1 vector unary and swap](shaders/vector-unary.md) — Wave32 integer bit operations, register exchange, and operand limits.
|
|
- [VOP2 select and carry](shaders/vector-vcc.md) — Wave32 lane selection, carry and borrow through the vector condition code.
|
|
- [VOPC integer compares](shaders/vector-compare.md) — Wave32 compare forms, the VCC/EXEC contract, runtime `s_cbranch_vccz` and the Metal mapping.
|
|
- [Metal Shading Language generation](shaders/msl.md) and [independent CPU reference](shaders/reference-interpreter.md) — Translation rules and separate CPU execution models.
|
|
|
|
## Guest CPU and runtime experiments
|
|
|
|
- [Guest experiment guide](../experiments/x1/README.md) — Bounded x86-64 execution, executable loading, experimental services, native compute, and offscreen rendering.
|
|
- [x86-64 instruction registry](cpu/instruction-registry.md) — Shared decoder, generated tables, semantics, native lowering and how to add a verified instruction form.
|
|
- [Runtime service registry](runtime/registry.md) and [generated coverage](runtime/services.md) — Import resolution, typed Win64 adapters and how to add a tested service.
|
|
- [Guest threads](runtime/threads.md) — Deterministic scheduler, thread services, limits and tests.
|
|
- [Guest CPU research](research/cpu-boundary.md) — Public specifications and unresolved console requirements.
|
|
- [Synthetic import fixtures](../tests/compat_fixtures/README.md) — Reproducible PE32+ builds and expected service behavior.
|
|
|
|
## Testing, validation, and benchmarks
|
|
|
|
- [Migrated pull-request integration review](testing/migration-pr-review.md) — Merge decisions, integration fixes, native verification and excluded concurrent work.
|
|
- [Testing and acceptance index](testing/README.md) — Entry point for test procedures, evidence and review records.
|
|
- [AMD RDNA2 desktop GPU (gfx1030) form acceptance](testing/shader-form-acceptance.md) — Independence, command, log and promotion rules for fixture-verified instruction forms.
|
|
- [Engineering progress](progress.md) — Verification commands, metric definitions, and open release gates.
|
|
- [CPU test runtime and shard selection](testing/cpu-coverage.md) — Measured CPU gate cost and deterministic test-target shards.
|
|
- [Test inventory comparison](testing/test-inventory.md) — Detect missing or newly ignored Cargo tests across commits.
|
|
- [Persistent resource and translated rendering acceptance](testing/x9-acceptance.md) — Pinned upstream tests, native ARM64 results and unsupported cases.
|
|
- [Baseline acceptance](testing/phase-02-baseline.md), [Phase 01 assurance](testing/phase01-assurance.md), and [independent reviews](testing/review-log.md) — Candidate-specific results and release findings.
|
|
- [Gate A: a compiled C program](testing/gate-a.md) — The two milestones, what the A1 and A2 tests check and what they do not show.
|
|
- [Mutation testing](testing/mutation.md) and [benchmark protocol](testing/benchmarks.md) — Test sensitivity, benchmark inputs, and timing requirements.
|
|
|
|
## Research and engineering decisions
|
|
|
|
- [Public sources](research/sources.md), [RDNA 2 notes](research/rdna2.md), and [Xbox GPU evidence](research/xbox-gpu.md) — Specifications, evidence scope, and unknown console behavior.
|
|
- [Shader inputs](research/shader-containers.md) and [risk register](risk-register.md) — Input provenance and unresolved engineering risks.
|
|
- [Texture format inventory](research/texture-formats.md) — Formats and layouts by stage (decode, layout, native upload, sampling, guest), their public specifications, unknowns and ranked follow-ups.
|
|
- [PortWatch native macOS research](research/portwatch-native-macos.md) — Screening of public Xbox-on-Windows port projects for native macOS planning; discovery only.
|
|
- [Synthetic integration and upstream evidence](research/synthetic-integration.md) — Audited source snapshots and remaining commercial startup prerequisites.
|
|
|
|
## Security, licensing, and contributions
|
|
|
|
- [Threat model](threat-model.md) and [security reporting](../SECURITY.md) — Execution limits and disclosure instructions.
|
|
- [Legal scope](legal.md), [dependency licensing](licenses.md), and [third-party notices](../THIRD_PARTY_NOTICES.md) — Input policy, attribution, and redistribution findings.
|
|
- [Contribution guidelines](../CONTRIBUTING.md) — Original authorship, Developer Certificate of Origin sign-off, and evidence requirements.
|
|
- [Agent task queue](coordination/agent-tasks.md) — Areas, claiming, leases, upstream sync, verification and the security model for parallel contributors and coding agents.
|
|
- [CPU/runtime expansion campaign ledger](coordination/cpu-campaign-ledger.md) — 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](coordination/infrastructure-qa-ownership.md) — Non-overlapping paths for infrastructure and QA tooling.
|
|
- [Agent queue smoke evidence](coordination/agent-queue-smoke.md) — Live Actions results from the disposable smoke repository.
|
|
- [Infrastructure QA tooling](testing/infrastructure/README.md) — Advisory orchestration, PR validation, benchmark analysis and release checks.
|
|
|
|
- [Migration to BetterXen](migration.md): source attribution, imported history and compatibility names.
|