Create the EXE shadow device through the Xbox shim #793
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/799"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T05:26:16Z.
Refs #730. Route actual device creation in the two-frame shadow path through d3d12_xs. This profile accepts the desktop device IID and a null parameter block. Keep adapter selection in the host. The unsupported IID control checks output clearing, both owned DXGI reference releases, no frame bytes and exit 20.
Local RTX 4060 Laptop and WARP: all three runners preserved both frames, four surface releases and exit 42 on success. The stale map still affects exactly 170 pixels. All ten focused CTests passed with the release preset and filter ^(cpu_shim_(shadow|chain|compute)(warp|hardware)|d3d12_xs_shim.*)$.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-23T06:18:30Z.
cpu_shim_shadow_hardwarefails here instead of skipping. The failure is in the first runner, before any translated code runs:Host: Windows 11 Pro 26100, Intel Core i7-6820HQ laptop with an NVIDIA Quadro M1000M (high-performance preference) and Intel HD Graphics 530, at
186711d.The cause is the adapter probe:
create_deviceintests/cpu/shim_chain_gpu.cpp(line 104) accepts the first high-performance adapter for whichD3D12CreateDevicesucceeds atD3D_FEATURE_LEVEL_11_0. Here that is the Quadro.D3D12XboxCreateDevice(line 125), andsrc/d3d12_xs_shim.cpp(line 68) requestsD3D_FEATURE_LEVEL_12_0.A probe of
D3D12CreateDevice(null output) on each adapter:S_FALSE0x887a00040x887a00040x887a0004S_FALSES_FALSES_FALSES_FALSES_FALSES_FALSES_FALSES_FALSESo the probe accepts an adapter the shim cannot use, and the run reports a failure. Either of these would make it skip or pass:
xbox_shimis set, so the loop moves on to the HD 530;DXGI_ERROR_UNSUPPORTEDfromD3D12XboxCreateDeviceas a capability skip (77).I have not changed anything here.
cpu_shim_chain_hardwareskips on this host as before.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-23T09:51:58Z.
Still present at
523d9ac, after #826 and #829:cpu_shim_shadow_hardwarefails in its native run on the same laptop.The causes are unchanged:
tests/cpu/shim_chain_gpu.cpp(line 125) probes the adapter atD3D_FEATURE_LEVEL_11_0, so it keeps the Quadro M1000M.src/d3d12_xs_shim.cpp(line 68) creates the device atD3D_FEATURE_LEVEL_12_0.If it helps, I can send a small PR so that a hardware adapter is accepted only at the feature level its device path will request (12_0 when the device comes from the Xbox shim). On this laptop the loop would then move on to the HD 530. It would keep the existing 77 skip when no adapter qualifies.
AI-assisted (Claude Code).