cpu: load the app-local WARP in the mapped shim host #1101

Merged
archielcqp-a11y merged 1 commit from upstream-pr/1108 into main 2026-11-24 01:46:05 +00:00
archielcqp-a11y commented 2026-11-24 01:08:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-24T01:08:35Z.


Change

The pe_map run of the shim tests hosts the EXE in python.exe, so DXGI does not find an app-local d3d10warp.dll (OFFSCREEN_WARP_DIR) beside the native EXE and falls back to the in-box WARP. tests/cpu/shim_startup_check.py --map now loads that copy first when it exists, so the mapped run uses the same WARP as the native and AOT runs. Builds without an app-local WARP are unchanged. Independent problem; no issue.

Verification

Commit c70ee1c on upstream 31f9ebb, Windows 10 build 19045, debug layer enabled.

  • Agility SDK 1.620.2 + WARP 1.0.22 build (-DOFFSCREEN_AGILITY_620_DIR, -DOFFSCREEN_WARP_DIR): ctest --no-tests=error -R '^cpu_shim_' → 12/12 passed on 31f9ebb with this change. Before, on 31f9ebb: cpu_shim_shadow_warp failed (the mapped run created the device and closed it without a frame, shadow close surfaces=0 device=1) and cpu_shim_chain_warp skipped.
  • Builds without an app-local WARP skip the new load, so their shim runs are unchanged.
  • The cpu_shim_shadow stale-binding control still reports its expected mismatch.

Also tested on upstream 31f9ebb with all five rebased changes stacked (620 tests, Agility SDK 1.620.2 + WARP 1.0.22 build, bottom-up ASLR off): gpu_alias_registry_hardware/_warp, cpu_shim_shadow_warp, cpu_shim_chain_warp and both wave64_emulate tests pass. The remaining failures also fail on plain 31f9ebb: bvh_wave64_warp, wave_shuffle_warp (#145), cpu_archive_texture_gpu_warp, cpu_native_load_config_callback, pe_package_import_closure.

Evidence and follow-up

No new fixture. docs/experiments.md gains a paragraph under the shim shadow section.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No new fixture; the existing stale-binding control still fails as expected.)
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

This change was AI-assisted.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572272324 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1108). Originally posted by [archielcqp-a11y](https://github.com/archielcqp-a11y) on 2026-11-24T01:08:35Z. --- ## Change The `pe_map` run of the shim tests hosts the EXE in `python.exe`, so DXGI does not find an app-local `d3d10warp.dll` (`OFFSCREEN_WARP_DIR`) beside the native EXE and falls back to the in-box WARP. `tests/cpu/shim_startup_check.py --map` now loads that copy first when it exists, so the mapped run uses the same WARP as the native and AOT runs. Builds without an app-local WARP are unchanged. Independent problem; no issue. ## Verification Commit `c70ee1c` on upstream `31f9ebb`, Windows 10 build 19045, debug layer enabled. - Agility SDK 1.620.2 + WARP 1.0.22 build (`-DOFFSCREEN_AGILITY_620_DIR`, `-DOFFSCREEN_WARP_DIR`): `ctest --no-tests=error -R '^cpu_shim_'` → 12/12 passed on `31f9ebb` with this change. Before, on `31f9ebb`: `cpu_shim_shadow_warp` failed (the mapped run created the device and closed it without a frame, `shadow close surfaces=0 device=1`) and `cpu_shim_chain_warp` skipped. - Builds without an app-local WARP skip the new load, so their shim runs are unchanged. - The `cpu_shim_shadow` stale-binding control still reports its expected mismatch. Also tested on upstream `31f9ebb` with all five rebased changes stacked (620 tests, Agility SDK 1.620.2 + WARP 1.0.22 build, bottom-up ASLR off): `gpu_alias_registry_hardware`/`_warp`, `cpu_shim_shadow_warp`, `cpu_shim_chain_warp` and both `wave64_emulate` tests pass. The remaining failures also fail on plain `31f9ebb`: `bvh_wave64_warp`, `wave_shuffle_warp` (#145), `cpu_archive_texture_gpu_warp`, `cpu_native_load_config_callback`, `pe_package_import_closure`. ## Evidence and follow-up No new fixture. `docs/experiments.md` gains a paragraph under the shim shadow section. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. (No new fixture; the existing stale-binding control still fails as expected.) - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. This change was AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:46:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1101
No description provided.