mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 00:10:43 +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>
Synthetic PE32+ Conformance Tests (tests/conformance/)
Every directory matching test_*/CMakeLists.txt is auto-discovered by tests/conformance/CMakeLists.txt when running scripts/build-shims.sh.
Adding a New Test (Zero Shared-File Edits)
- Create
tests/conformance/test_<shim>/CMakeLists.txtandmain.cpp. - Build via
scripts/build-shims.sh(outputsbuild-shims/bin/test_<shim>.exe). - Run live under CrossOver + Rosetta 2:
target/debug/bx-cli run --prefix /tmp/bx-test --shims build-shims/bin --log /tmp/bx-test.jsonl --exe build-shims/bin/test_<shim>.exe