Build and smoke-test the public Windows runtime #12

Closed
github-bot wants to merge 1 commit from gh-pr/12/head into gh-pr/12/base
Owner

@⁠fucklxrd on GitHub · 2026-11-21 17:12 UTC · original
fucklxrd:tombox-source-runtime-build → main · +51 −14 · 3 files · 109 commits · closed without merging

Changes

  • Build the shared compatibility crate from a public checkout and report missing title fixtures when starting the built-in backend.
  • Generate the D3D12 query shader from checked-in HLSL, cross-link the runtime DLL exports, and add an xhost --load-only smoke test.
  • Translate stripped mesh shaders using their pipeline's original root signature and offer the same input through xshader --root-signature.
  • Restore File I/O test coverage and generate synthetic Media Foundation test inputs when local fixtures are absent.

Verification

  • Linked the x64 Windows host harness and eight default runtime DLLs. Wine confirmed that all eight built DLLs loaded from the staged paths.
  • Passed 17 targeted D3D12 tests under Wine, including root-metadata retention and cache isolation. Compiled HLSL for a synthetic stripped mesh shader with DXC.
  • Passed three File I/O tests under Wine and checked all Media Foundation test targets for Windows x64. Verified the generated AAC and H.264 input formats with FFmpeg.

Three workspace crates still require resources omitted from the public checkout. The examined GTA VI sample has no executable, so its startup and rendering remain unverified.

**@⁠fucklxrd** on GitHub · 2026-11-21 17:12 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/12) `fucklxrd:tombox-source-runtime-build` → `main` · +51 −14 · 3 files · 109 commits · closed without merging ## Changes - Build the shared compatibility crate from a public checkout and report missing title fixtures when starting the built-in backend. - Generate the D3D12 query shader from checked-in HLSL, cross-link the runtime DLL exports, and add an `xhost --load-only` smoke test. - Translate stripped mesh shaders using their pipeline's original root signature and offer the same input through `xshader --root-signature`. - Restore File I/O test coverage and generate synthetic Media Foundation test inputs when local fixtures are absent. ## Verification - Linked the x64 Windows host harness and eight default runtime DLLs. Wine confirmed that all eight built DLLs loaded from the staged paths. - Passed 17 targeted D3D12 tests under Wine, including root-metadata retention and cache isolation. Compiled HLSL for a synthetic stripped mesh shader with DXC. - Passed three File I/O tests under Wine and checked all Media Foundation test targets for Windows x64. Verified the generated AAC and H.264 input formats with FFmpeg. Three workspace crates still require resources omitted from the public checkout. The examined GTA VI sample has no executable, so its startup and rendering remain unverified.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:07:06 +00:00
github-bot closed this pull request 2026-11-26 06:07:06 +00:00
Author
Owner

@⁠artareias on GitHub · 2026-11-21 17:27 UTC · original

Verified this on native Windows (Windows 10 22H2 build 19045, x64, MSVC 14.44, rustc 1.100.0), since the description mentions Wine only.

Build (cargo build --workspace --keep-going): 94 .exe/.dll artifacts. compat-common now compiles from the public checkout. Five crates still fail, all for omitted resources, as the description says: opus_dll and skp_silk (third_party/opus), wldp (data/*.bin), gamecorecomproxy and connectedstorageservice_proxystub (data/*.bin).

Tests (cargo test -p compat-common -p d3d12_xs -p xtffileio -p xtfcommon --no-fail-fast): 372 passed, 9 failed, 6 ignored. The failures:

  1. Five net tests are not gated like the other online tests (net_async_bulk, net_async_secure, net_cross_module, net_ws_async_rta, net_ws_winhttp). They set TOMBOX_NET_BACKEND=builtin, but online::title_for and the built-in backend are compiled out without tombox_backend_data. Result: connect err OS Error 12029 and backend port published: NotPresent. Adding #![cfg(tombox_backend_data)] as the first line of each file, like online_backend.rs already does, fixes all five. With that change compat-common goes to 105 passed, 3 failed.
  2. compat_routes::run_time_loader_calls_resolve_to_routed_exports_with_pc_fallback (line 269) and ex_caller_and_ldr_loader_imports_are_routed_too (line 388) depend on the host OS. Line 388 expects ntdll not to export RtlpUmsThreadYield (STATUS_ENTRYPOINT_NOT_FOUND), but Windows 10 does export it; only Windows 11 removed UMS. Line 269 expects shcore.dll ordinal 227 to be absent on the host, which is not the case here. Probably worth skipping these below build 22000, or using symbols that no Windows version exports.
  3. gdk_runtime::every_title_call_site_is_served_or_forwarded does read_dir(analysis/gdk).unwrap() and fails with NotFound on a public checkout.
  4. xtffileio::tests::application_operation_handlers_follow_console_mount_failure (tests.rs:405) is deterministic. package_mount_hold_handler sends the FILE_NOT_FOUND message and then replies S_OK, while the test expects FILE_NOT_FOUND in the final reply too. This is not caused by this PR: on main the crate's tests do not compile at all, so it was not visible before.

I did not run the mfplat media tests (they need FFmpeg with libx264). The patch for item 1 is trivial and I can send it as a separate PR if you prefer.

🤖 Generated with Claude Code

**@⁠artareias** on GitHub · 2026-11-21 17:27 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/12#issuecomment-7066501890) Verified this on native Windows (Windows 10 22H2 build 19045, x64, MSVC 14.44, rustc 1.100.0), since the description mentions Wine only. **Build** (`cargo build --workspace --keep-going`): 94 `.exe`/`.dll` artifacts. `compat-common` now compiles from the public checkout. Five crates still fail, all for omitted resources, as the description says: `opus_dll` and `skp_silk` (`third_party/opus`), `wldp` (`data/*.bin`), `gamecorecomproxy` and `connectedstorageservice_proxystub` (`data/*.bin`). **Tests** (`cargo test -p compat-common -p d3d12_xs -p xtffileio -p xtfcommon --no-fail-fast`): 372 passed, 9 failed, 6 ignored. The failures: 1. **Five net tests are not gated like the other online tests** (`net_async_bulk`, `net_async_secure`, `net_cross_module`, `net_ws_async_rta`, `net_ws_winhttp`). They set `TOMBOX_NET_BACKEND=builtin`, but `online::title_for` and the built-in backend are compiled out without `tombox_backend_data`. Result: `connect err OS Error 12029` and `backend port published: NotPresent`. Adding `#![cfg(tombox_backend_data)]` as the first line of each file, like `online_backend.rs` already does, fixes all five. With that change `compat-common` goes to 105 passed, 3 failed. 2. `compat_routes::run_time_loader_calls_resolve_to_routed_exports_with_pc_fallback` (line 269) and `ex_caller_and_ldr_loader_imports_are_routed_too` (line 388) depend on the host OS. Line 388 expects `ntdll` not to export `RtlpUmsThreadYield` (`STATUS_ENTRYPOINT_NOT_FOUND`), but Windows 10 does export it; only Windows 11 removed UMS. Line 269 expects `shcore.dll` ordinal 227 to be absent on the host, which is not the case here. Probably worth skipping these below build 22000, or using symbols that no Windows version exports. 3. `gdk_runtime::every_title_call_site_is_served_or_forwarded` does `read_dir(analysis/gdk).unwrap()` and fails with NotFound on a public checkout. 4. `xtffileio::tests::application_operation_handlers_follow_console_mount_failure` (`tests.rs:405`) is deterministic. `package_mount_hold_handler` sends the `FILE_NOT_FOUND` message and then replies `S_OK`, while the test expects `FILE_NOT_FOUND` in the final reply too. This is not caused by this PR: on `main` the crate's tests do not compile at all, so it was not visible before. I did not run the `mfplat` media tests (they need FFmpeg with libx264). The patch for item 1 is trivial and I can send it as a separate PR if you prefer. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-22 13:12 UTC · original

Main's history was rewritten, which auto-closed this PR (sorry for the noise). Please split this into one PR per change, and leave CONTRIBUTING.md and the generated docs/ untouched. Several parts overlap fixes since made on main. To resubmit: git fetch this repo, branch from the current main, cherry-pick only your own commits (the old branch is based on the previous history and cannot be merged), and open a new PR.

**@⁠omonkeyz** on GitHub · 2026-11-22 13:12 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/12#issuecomment-7079648571) Main's history was rewritten, which auto-closed this PR (sorry for the noise). Please split this into one PR per change, and leave CONTRIBUTING.md and the generated docs/ untouched. Several parts overlap fixes since made on main. To resubmit: `git fetch` this repo, branch from the current `main`, cherry-pick only your own commits (the old branch is based on the previous history and cannot be merged), and open a new PR.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.