mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 19:30:43 +00:00
Adds s_add_u32, s_sub_u32, s_addc_u32, s_subb_u32, s_and_b32, s_or_b32 and s_xor_b32 across the chain: generated opcodes from the pinned AMD XML, a typed ScalarAlu instruction, decoding, the reference interpreter, the independent semantic-review interpreter and the translator, which resolves scalar state and SCC as it already does for s_mov/s_cmp. v_mov_b32_e32 may now read a normal SGPR, so results reach vector code as constants. SCC: the XML states carry-out for additions, carry-in for ADDC/SUBB and nonzero results for bitwise forms. For subtraction it says carry-out without fixing the polarity; LLVM's lowering of usubo and of 64-bit subtraction to s_sub_u32/s_subb_u32 requires SCC to be the borrow. s_add_i32/s_sub_i32 stay unsupported: no pinned source settles whether their SCC is the carry or signed overflow. Verified with an original LLVM-assembled fixture and 1,400 boundary programs (every form, 10x10 operands, SCC clear and set) against exact integer definitions; translator, reference (exact integers) and independent interpreter (bit-serial ripple adder) all agree, and all 1,401 programs match on native Metal with validation. LLVM agrees on every encoding. Breaking any one implementation fails the tests. Fixes #185 Independent review fixes: both interpreters now require a known SGPR for v_mov_b32 from an SGPR even in an inactive lane, as translation does; alias, literal and inline cases also assert the translated result and run on Metal; rejections are pinned to the SOP2 word's offset; GPU status is recorded as local evidence with acceptance pending. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
3.7 KiB
3.7 KiB
Xenora 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.
Architecture and technical design
- Interface contracts — Shader inputs, guest services, native command submission, and synthetic textures.
- Fixture memory model and CPU boundary — Buffer bindings, guest address translation, and dependency direction.
RDNA 2 decoding and shader translation
- Instruction coverage — Desktop gfx1030 instruction forms, operand limits, and CPU and GPU results.
- SOP2 scalar ALU — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
- Metal Shading Language generation and independent CPU reference — Translation rules and separate CPU execution models.
Native Metal backend
- Compute interface — Resource limits, dispatch, completion, and profiling.
- Apple GPU evidence and host lab record — Observed behavior and historical floating-point results.
Guest CPU and runtime experiments
- Guest experiment guide — Bounded x86-64 execution, executable loading, experimental services, native compute, and offscreen rendering.
- Guest CPU research — Public specifications and unresolved console requirements.
- Synthetic import fixtures — Reproducible PE32+ builds and expected service behavior.
Testing, validation, and benchmarks
-
Engineering progress — Verification commands, metric definitions, and open release gates.
-
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.
-
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.
- Synthetic integration and upstream evidence — Audited source snapshots and remaining commercial startup prerequisites.
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.