cpu_shim_texture_reuse_warp crashes in the Windows 10 in-box WARP shader compiler #736

Closed
opened 2026-11-23 00:23:41 +00:00 by lukaslw-lab · 0 comments
lukaslw-lab commented 2026-11-23 00:23:41 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T00:23:41Z.


AI-assisted (Claude Code).

cpu_shim_texture_reuse_warp (from #705) crashes on Windows 10's in-box WARP: its compiler faults while creating the texture-init compute PSO. Windows 10 22H2 build 19045.7846, in-box WARP 10.0.19041.7811, at fd2486f:

ctest --preset dev --no-tests=error -R '^cpu_shim_texture_reuse_(warp|hardware)$' -V
AssertionError: texture native diagnostics: expected ['draw_frame mode=10', 'draw fence completed 1', ...], got ['draw_frame mode=10']

The native runner exits 0xc0000005. Under cdb:

d3d10warp!llvm::APFloat::bitcastToAPInt+0x10        cmp qword ptr [rcx],rax   rcx=0x28
d3d10warp!CShaderInfo::CompileShaderDXIL+0x1964
d3d10warp!UMDevice::CreateComputeShaderInternal+0xb2
D3D12Core!CDevice::CreateComputePipelineState+0x7e
cpu_shim_draw!DrawSession::setup_texture+0x7db      [tests/cpu/shim_draw_gpu.cpp @ 273]
Runner In-box WARP 10.0.19041.7811 App-local WARP 1.0.22 + Agility 1.620.2 RTX 3080 Ti (610.47)
native, AOT 0xc0000005 pass pass
pe_map (hosted by python.exe) 0xc0000005 0xc0000005: loads the in-box System32 WARP pass
  • The trigger is the indexed constant array in shim_draw_texture.hlsl (colors[2 * lane.y + lane.x], which becomes an internal constant [4 x i32] in DXIL). The same shader with a select chain passes in every cell above.
  • #705 was verified on Windows 11 and CI uses Server 2025; both have a newer in-box WARP, so only Windows 10 shows it. An app-local WARP can't cover the pe_map runner, because the D3D12 runtime and WARP are chosen relative to the host executable.
  • Fix ready on a branch: the select chain, with identical readbacks (see the PR).

Environment: MSVC 19.52.37029, Windows SDK 10.0.26100, DXC 1.9.2609, dev preset (Debug). The fixture doesn't request the debug layer.

Refs #705

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6549746288 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/742). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-23T00:23:41Z. --- _AI-assisted (Claude Code)._ `cpu_shim_texture_reuse_warp` (from #705) crashes on Windows 10's in-box WARP: its compiler faults while creating the texture-init compute PSO. Windows 10 22H2 build 19045.7846, in-box WARP `10.0.19041.7811`, at `fd2486f`: ```powershell ctest --preset dev --no-tests=error -R '^cpu_shim_texture_reuse_(warp|hardware)$' -V ``` ```text AssertionError: texture native diagnostics: expected ['draw_frame mode=10', 'draw fence completed 1', ...], got ['draw_frame mode=10'] ``` The native runner exits `0xc0000005`. Under cdb: ```text d3d10warp!llvm::APFloat::bitcastToAPInt+0x10 cmp qword ptr [rcx],rax rcx=0x28 d3d10warp!CShaderInfo::CompileShaderDXIL+0x1964 d3d10warp!UMDevice::CreateComputeShaderInternal+0xb2 D3D12Core!CDevice::CreateComputePipelineState+0x7e cpu_shim_draw!DrawSession::setup_texture+0x7db [tests/cpu/shim_draw_gpu.cpp @ 273] ``` | Runner | In-box WARP 10.0.19041.7811 | App-local WARP 1.0.22 + Agility 1.620.2 | RTX 3080 Ti (610.47) | |---|---|---|---| | native, AOT | `0xc0000005` | pass | pass | | `pe_map` (hosted by `python.exe`) | `0xc0000005` | `0xc0000005`: loads the in-box `System32` WARP | pass | - The trigger is the indexed constant array in `shim_draw_texture.hlsl` (`colors[2 * lane.y + lane.x]`, which becomes an `internal constant [4 x i32]` in DXIL). The same shader with a select chain passes in every cell above. - #705 was verified on Windows 11 and CI uses Server 2025; both have a newer in-box WARP, so only Windows 10 shows it. An app-local WARP can't cover the `pe_map` runner, because the D3D12 runtime and WARP are chosen relative to the host executable. - Fix ready on a branch: the select chain, with identical readbacks (see the PR). Environment: MSVC 19.52.37029, Windows SDK 10.0.26100, DXC 1.9.2609, `dev` preset (Debug). The fixture doesn't request the debug layer. Refs #705
Sign in to join this conversation.
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#736
No description provided.