Run the D3D12 WARP checks on Windows 10 with app-local Agility SDK and WARP #147
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!147
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/147/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?
@rasptum on GitHub · 2026-11-21 17:09 UTC · original
rasptum:feat/win10-agility-warp→main· +80 −2 · 6 files · 3 commits · merged 2026-11-21 18:41 UTCChange
#99 made the
cs_6_5WARP checks skip on Windows 10, where the in-box WARP reports SM 6.2 with no DXR. This lets them run instead, using Microsoft's app-local Agility SDK and WARP packages. Nothing changes unless both new options are set.OFFSCREEN_AGILITY_620treated a missing debug layer as fatal. On Windows 10 without Graphics Tools,GetConfigurationInterface(CLSID_D3D12Debug)returnsDXGI_ERROR_SDK_COMPONENT_MISSINGeven withd3d12SDKLayers.dllapp-local, so every check stopped atLoad app-local debug layer failed (HRESULT 0x887a002d). That one result now continues withdebug_layer=unavailable, and other failures stay fatal.OFFSCREEN_WARP_DIRcopies an app-locald3d10warp.dllnext tooffscreen_check. It requiresOFFSCREEN_AGILITY_620_DIR: on the in-box runtime, WARP 1.0.22 reports DXR tier 1.2, butdxr_query_warp,dxr_update_warpandbvh_differential_warpfail with every ray reported as a miss. CMake stops with an explanation instead.docs/experiments.mdgets the setup, a capability table and the results. The README first-build section links to it.Capabilities on Windows 10 19045.6466 (standalone probe, confirmed by the test output):
This also confirms the guess from the #1 report: on Windows 10 the hardware wave64 check was capped by the runtime at SM 6.5. With Agility it reports SM 6.6 and skips only at the RTX 3060's 32-lane range.
Verification
Commit
151872don currentmain. Windows 10 22H2 (19045.6466), VS Build Tools 17.14, MSVC 14.44.35207, SDK 10.0.26100 (DXC 1.7.2308), RTX 3060 (32.0.15.9636). Packages: Agility SDK 1.620.2 and WARP 1.0.22 from nuget.org, DLLs Microsoft-signed.cmake --preset dev, no new options)shader_metadata_probefails (#98, fixed by #114). Same asmain.out/build/w10as documentedbvh_wave64_hardware, 32 lanes), 2 failed:shader_metadata_probe(#98) andbvh_wave64_warp(#145)OFFSCREEN_WARP_DIR requires OFFSCREEN_AGILITY_620_DIRAll seven
cs_6_5WARP checks,dxr_query_warp,dxr_update_warpandbvh_differential_warppass on Windows 10 in the Agility + WARP build, where they used to skip.bvh_wave64_warpruns for the first time and fails on one shuffle: WARP returns the inverse ofWaveReadLaneAt(v, (lane*7+3) % 64)in all 128 lanes checked. Details are in #145. I left the test unchanged so the result stays visible.Evidence and follow-up
No new fixtures and no binaries in the repository. Contributors download the two NuGet packages themselves, as with the existing Agility option. The machine with Graphics Tools that the existing paragraph describes should be unaffected, because a loaded debug layer takes the same path as before. I could not test that machine. A follow-up could ship both packages in the standalone GPU check so Windows 10 reporters get the same coverage. That needs a decision about redistributing them.
AI-assisted (Claude Code); built and run locally on the configuration above.
@R0Y00 on GitHub · 2026-11-21 17:18 UTC · original
Please cover configuring the same build directory twice, first with OFFSCREEN_WARP_DIR and then without it. configure_file copies d3d10warp.dll beside the executable, but clearing the cache option leaves that copy in place. Restore the in-box behavior when disabling the option and retain #145 as a separate measured result.
@rasptum on GitHub · 2026-11-21 17:33 UTC · original
Thanks, reproduced and fixed in
dbb09c6. With both options set and then cleared in one build directory, the old copy stayed,offscreen_check warpstill loadeddriver=1.0.22.0on the in-box runtime, and--ray-queryfailed with every ray a miss.cmake/app_local_warp.cmakenow copies the DLL whenOFFSCREEN_WARP_DIRis set and deletes it when the option is empty.app_local_warp_toggleruns it with the option set, then cleared, then cleared again, using a stand-in DLL, so CI needs no WARP package. With the delete removed, it fails withClearing OFFSCREEN_WARP_DIR left d3d10warp.dll beside the executable.driver=1.0.22.0and--ray-querypasses. Cleared givesdriver=10.0.19041.5794,dxr_tier=0and a skip.Full suites after the change: the default build is unchanged apart from the new passing test, and in the Agility + WARP build
app_local_warp_togglepasses with the other results unchanged. #145 stays separate: its forced-width measurements are now in the minimal shuffle test, #151.AI-assisted (Claude Code).
@R0Y00 on GitHub · 2026-11-21 17:58 UTC · original
Thanks for adding the repeated enable/disable test and checking the real WARP library. GitHub now reports a merge conflict on dbb09c6f. Please reconcile the offscreen device setup with the adapter selection and single-device path merged in #137, retaining the in-box fallback, and run the toggle test and WARP smoke test together.
@R0Y00 on GitHub · 2026-11-21 18:14 UTC · original
The revised diff preserves the adapter-selection path. One issue in the standalone toggle test:
file(REMOVE_RECURSE "${WORK_DIR}")deletes the entire directory supplied on the documentedcmake -Pcommand line, including unrelated files. Please remove the recursive cleanup or scope it to the stand-in files the test owns. Verify a pre-existing sentinel survives two runs in the same scratch directory.@rasptum on GitHub · 2026-11-21 18:25 UTC · original
Fixed in
d8dc318and rebased onto18d57d9. The test no longer removesWORK_DIR. It creates thewarp-packageandbuildsubdirectories and clears only its two stand-ind3d10warp.dllfiles before each run.keep-me.txtandbuild/other.txt. Both survived two consecutivecmake -Pruns. Before the change, the first run deleted them.Clearing OFFSCREEN_WARP_DIR left d3d10warp.dll beside the executable.app_local_warp_toggleand the WARP smoke tests passed together. The only failures arebvh_wave64_warpandwave_shuffle_warp(#145). The debug layer reported 0 errors and 0 warnings now that #191 is in.pixel_aot_warpon the Windows 10 in-box WARP, also fails on unmodifiedmainand is unrelated to this PR.AI-assisted (Claude Code).