Create the EXE shadow device through the Xbox shim #799
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!799
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/799/head"
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?
@R0Y00 on GitHub · 2026-11-23 05:26 UTC · original
R0Y00:codex/shadow-shim-device→main· +56 −12 · 7 files · 1 commits · merged 2026-11-23 05:37 UTCRefs #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.*)$.
@legacy-code-archaeologist on GitHub · 2026-11-23 06:18 UTC · original
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).
@legacy-code-archaeologist on GitHub · 2026-11-23 09:51 UTC · original
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).