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

Merged
R0Y00 merged 1 commit from upstream-pr/826 into main 2026-11-23 09:26:07 +00:00
R0Y00 commented 2026-11-23 09:16:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T09:16:12Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6556043757 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/826). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T09:16:12Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:44:58 +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!820
No description provided.