Bring in main at cc5ce59 and resolve three documentation conflicts:
- CHANGELOG.md: keep the #453 entry above the entries added on main.
- docs/README.md: keep both new research links (swapchain references
and D3DMetal GPU limits).
- docs/roadmap.md: take main's milestone table, including the verified
M0/M1 status and the expanded M2 row, and append only the two
measured-constraint links from this branch to the M2 and M3 rows.
No source, shader, header or research-note content changes relative to
either parent.
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
Fixture:
- check_lock64 keeps its upload buffer alive until the list that copies
from it has run.
- The spin lock takes an acquire DeviceMemoryBarrier after winning the
lock, before reading the data, as well as the release barrier.
- A check that fails partway through recording closes and resets the
list (abandon) instead of leaving stale commands for the next check.
- wave.control checks what D3D12 guarantees: one wave width for every
thread, and lane indices forming a permutation within each wave, with
waves identified by WaveReadLaneFirst(id.x). It no longer assumes
lane == i % width.
- Skips with exit 77 when shader model 6.6 is unavailable or the query
fails.
- submit checks Signal, SetEventOnCompletion and the Reset calls.
Resources the GPU may still use are leaked rather than released after
a hung or removed queue.
Note: the measured constraints are separated from the reports taken
from a commercial title. The reports move to an "Unverified reports
(not evidence)" section, each with the synthetic workload that would
verify it. The M2-gate inference is dropped, and the roadmap rows link
only the measured section. The results are re-measured after the fixes:
with the acquire fence, the 64-try cap drops 96-108 of 512 updates. The
1024-try cap is still exact.
Signed-off-by: Vicente Abarca <135478656+Scarlet-Noble@users.noreply.github.com>
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>
- --timeout, and cleanup on timeout, SIGINT, SIGTERM or SIGHUP: stop the
launcher process group, then wineserver for the selected bottle or prefix.
wineserver -k exit 1 (nothing running) is accepted only if -w succeeds.
- Pass shim overrides with bin/wine --dll and --backend with --env in bottle
mode, because bin/wine discards WINEDLLOVERRIDES and applies bottle
settings over the environment. First found by jelly013.
- Print the trace summary after a run with --log.
- Record the libc dependency and a one-host D3D12 swapchain observation.
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
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>
Rebases onto origin/main and retires the paused in-tree native-first workspace, legacy scripts, legacy CI, and native-only docs per ADR 0006 (preserving full history permanently at Git tag native-first-final).
Addresses all maintainer review findings on PR #406:
- Isolate CrossOver/Wine child process environment in bx-cli (env_clear + minimal allowlist + opt-in --inherit-env, with unit tests)
- Replace naive objdump grep in scripts/build-shims.sh with strict PE Export Directory verification (exact names, ordinals, forwarders, 0 extra exports, 0 forbidden MinGW imports across all 16 DLLs / 102 exports)
- Restore global * @MacosPorters/maintainers fallback in .github/CODEOWNERS alongside per-track rules
- Restore independent-verification, claims/evidence-class, provenance-first, and contributor clean-room protections in AGENTS.md
- Unify docs/roadmap.md, CONTRIBUTING.md, README.md, docs/README.md, THIRD_PARTY_NOTICES.md, and CHANGELOG.md around Milestones M0-M6 and ADR 0006
Signed-off-by: ates <ahmetrizaates@hotmail.com>
Record the public CrossOver EULA and its section 2/3 terms, correct the
source-page inventory (no DXMT or VKD3D-Proton), cite DXMT's MIT
LICENSE.OLD and VKD3D-Proton's COPYING, soften the MoltenVK NOTICE
claim, add the reviewed pins and name the D3DMetal third-party source.
Signed-off-by: erkinemreta1 <erkinemreta1@users.noreply.github.com>
Record the third-party 4.0 License.pdf summary as evidence class D,
unconfirmed against Apple's own copy, and keep D3DMetal user-supplied
and never bundled. Update the licenses.md row and the changelog entry
to match.
Signed-off-by: erkinemreta1 <erkinemreta1@users.noreply.github.com>
Add docs/research/crossover-licensing.md with the license text read for
each component, its source link and the redistribution status, plus a
matching section in docs/licenses.md. D3DMetal, Rosetta 2 and the
CrossOver product terms stay unknown with the missing document named.
Closes#354
Signed-off-by: erkinemreta1 <erkinemreta1@users.noreply.github.com>
Add the hybrid research record and a primary-source re-check (CodeWeavers, Apple, DXMT, Wine, Rust toolchain), rename the roadmap's parked section to Parked ideas, and add the matching changelog and docs index entries. Unrelated local work stays uncommitted.
Five provisional phases with only Phase 1 active, parked ideas, Phase 1 completion criteria, a simple project board guide, the retired H0 to H7 breakdown, and an index of the closed native issues with preserved findings and contributor attribution.
Public-documentation review (evidence class D, nothing executed) of CrossOver, Wine, DXMT, DXVK, VKD3D-Proton, MoltenVK, FEX, VIctory, VIctory-macOS and PortWatch with license, pin and reuse decisions. VIctory-family projects are excluded from reuse on provenance grounds.
Add docs/roadmap.md (phases H0 to H7, critical path), ADR 0005 (accepted direction; proposed architecture and unverified assumptions kept separate), the deferred native roadmap and the project board setup guide. Archive the native-first plan and the seven retired milestones. Mark the PortWatch review as superseded in part.
Review follow-up. The Guest column credited the descriptor-table SRVs,
which tests call directly from Rust and the interface contract says
are not yet wired to guest imports. The table now has a Host graphics
API column for them and keeps Guest for paths an original PE fixture
reaches through imported services: today only RGBA8, through the
synthetic xenora.dll texture services of the Gate 5 fixture. Every
repository path is now a relative link, and each format row links the
exact Khronos DFS 1.3 section and Microsoft or Apple page it relies on.
Signed-off-by: maridogolpeador <354308468+maridogolpeador@users.noreply.github.com>
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>
Use generic 'commercial title' wording for our own references to a
specific game, rename the ignored diagnostics folders to
title-candidate-* and title-check, and refer to the upstream PE/Vulkan
project as 'PE-Vulkan project' in prose. Third-party URLs and repository
paths are unchanged to keep provenance accurate. Also adds the native
macOS development phases and PortWatch research notes already in the
working tree.
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
The extension-word length rules were written by hand because the XML
gives none, so they needed an outside oracle. An LLVM test now compares
names and lengths for one instruction per family and extension word.
It found five instructions the XML lists only under a literal encoding,
which the first table omitted; they are now base forms that always carry
a literal.
Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
The decoder knew 25 hand-matched forms, so any other instruction stopped
decoding with no record of what it was or how long it was. A two-stage
generator now reduces AMD's public RDNA 2 XML to all 1,460 base forms,
with a committed snapshot so CI can check the generated table offline.
identify() finds any form's exact length, including literal, SDWA, DPP
and NSA words, and the shaders CLI reports discovered against executable
forms so metadata coverage is never read as GPU support.
Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
Add gfx1030 decoding, semantic validation, Metal shader generation, and an independent CPU interpreter for three reproducible compute fixtures. Include native Metal tests, LLVM fixture verification, and the existing CI and Phase 01 handoff.
Verified formatting, all-features Clippy and tests, LLVM decoding, native ARM64 linkage, and all three demo fixtures with Metal API and shader validation enabled.
Signed-off-by: Ranveer Soni <git@ranveersoni.me>