gpu: create the shadow device from the EXE import #826

Manually merged
github merged 1 commit from gh-pr/826/head into gh-pr/826/base 2026-11-26 22:21:40 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 09:16 UTC · original
R0Y00:codex/exe-shadow-runtime-chain → main · +122 −38 · 8 files · 1 commits · merged 2026-11-23 09:26 UTC

Change

Refs #730. Lift the real d3d12_xs!D3D12XboxCreateDevice call from the source-built EXE. The PE mapper resolves the same import. Adapter selection and ownership stay in the fixture provider. The request uses the desktop ID3D12Device IID and a null parameter block at feature level 12.0.

The success path preserves two color and light depth frames, four tracked surface releases and exit 42. The unsupported IID starts with a non-null output and observes E_NOINTERFACE, a cleared output, both DXGI references released, no frame data and exit 20.

Verification

Tested ddc841f on Windows 11 26200.9974, RTX 4060 Laptop GPU with NVIDIA 616.56 and WARP 10.0.26100.9818. The shim EXE provider runs without requesting the debug layer. The standalone draw uses its existing debug-layer setup.

  • cmake --build --preset release --target cpu_shim_startup_lifted pe_map offscreen_check --parallel 6 passed.
  • ctest --preset release --no-tests=error --output-on-failure -R '^(cpu_native_shim_startup|cpu_shim_(compute|draw|texture_reuse|upload_texture|chain|shadow)_(warp|hardware)|mesh_shadow_draw_(warp|hardware))$' passed all 15 tests.
  • python -B tests/docs_links_check.py and git diff --check passed.

AI-assisted.

**@⁠R0Y00** on GitHub · 2026-11-23 09:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/826) `R0Y00:codex/exe-shadow-runtime-chain` → `main` · +122 −38 · 8 files · 1 commits · merged 2026-11-23 09:26 UTC ## Change Refs #730. Lift the real `d3d12_xs!D3D12XboxCreateDevice` call from the source-built EXE. The PE mapper resolves the same import. Adapter selection and ownership stay in the fixture provider. The request uses the desktop `ID3D12Device` IID and a null parameter block at feature level 12.0. The success path preserves two color and light depth frames, four tracked surface releases and exit 42. The unsupported IID starts with a non-null output and observes `E_NOINTERFACE`, a cleared output, both DXGI references released, no frame data and exit 20. ## Verification Tested `ddc841f` on Windows 11 26200.9974, RTX 4060 Laptop GPU with NVIDIA 616.56 and WARP 10.0.26100.9818. The shim EXE provider runs without requesting the debug layer. The standalone draw uses its existing debug-layer setup. - `cmake --build --preset release --target cpu_shim_startup_lifted pe_map offscreen_check --parallel 6` passed. - `ctest --preset release --no-tests=error --output-on-failure -R '^(cpu_native_shim_startup|cpu_shim_(compute|draw|texture_reuse|upload_texture|chain|shadow)_(warp|hardware)|mesh_shadow_draw_(warp|hardware))$'` passed all 15 tests. - `python -B tests/docs_links_check.py` and `git diff --check` passed. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:21:38 +00:00
github manually merged commit ddc841fc2c into gh-pr/826/base 2026-11-26 22:21:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.