Run the D3D12 WARP checks on Windows 10 with app-local Agility SDK and WARP #146

Merged
rasptum merged 3 commits from upstream-pr/147 into main 2026-11-21 18:41:50 +00:00
rasptum commented 2026-11-21 17:09:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T17:09:58Z.


Change

#99 made the cs_6_5 WARP 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.

  • Agility path without Graphics Tools. OFFSCREEN_AGILITY_620 treated a missing debug layer as fatal. On Windows 10 without Graphics Tools, GetConfigurationInterface(CLSID_D3D12Debug) returns DXGI_ERROR_SDK_COMPONENT_MISSING even with d3d12SDKLayers.dll app-local, so every check stopped at Load app-local debug layer failed (HRESULT 0x887a002d). That one result now continues with debug_layer=unavailable, and other failures stay fatal.
  • OFFSCREEN_WARP_DIR copies an app-local d3d10warp.dll next to offscreen_check. It requires OFFSCREEN_AGILITY_620_DIR: on the in-box runtime, WARP 1.0.22 reports DXR tier 1.2, but dxr_query_warp, dxr_update_warp and bvh_differential_warp fail with every ray reported as a miss. CMake stops with an explanation instead.
  • Docs. docs/experiments.md gets 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):

Runtime RTX 3060 WARP
In-box SM 6.5, DXR 1.2 SM 6.2, no DXR, 4 lanes
Agility 1.620.2 SM 6.8, DXR 1.2 SM 6.2, no DXR, 4 lanes
Agility 1.620.2 + WARP 1.0.22 SM 6.8, DXR 1.2 SM 6.8, DXR 1.2, 4 to 128 lanes

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 151872d on current main. 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.

Build Result
Default (cmake --preset dev, no new options) 79/80. Only shader_metadata_probe fails (#98, fixed by #114). Same as main.
Agility + WARP, out/build/w10 as documented 77 passed, 1 skipped (bvh_wave64_hardware, 32 lanes), 2 failed: shader_metadata_probe (#98) and bvh_wave64_warp (#145)
WARP without Agility Configure stops: OFFSCREEN_WARP_DIR requires OFFSCREEN_AGILITY_620_DIR

All seven cs_6_5 WARP checks, dxr_query_warp, dxr_update_warp and bvh_differential_warp pass on Windows 10 in the Agility + WARP build, where they used to skip.

bvh_wave64_warp runs for the first time and fails on one shuffle: WARP returns the inverse of WaveReadLaneAt(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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531897508 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/147). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T17:09:58Z. --- ## Change #99 made the `cs_6_5` WARP 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. - **Agility path without Graphics Tools.** `OFFSCREEN_AGILITY_620` treated a missing debug layer as fatal. On Windows 10 without Graphics Tools, `GetConfigurationInterface(CLSID_D3D12Debug)` returns `DXGI_ERROR_SDK_COMPONENT_MISSING` even with `d3d12SDKLayers.dll` app-local, so every check stopped at `Load app-local debug layer failed (HRESULT 0x887a002d)`. That one result now continues with `debug_layer=unavailable`, and other failures stay fatal. - **`OFFSCREEN_WARP_DIR`** copies an app-local `d3d10warp.dll` next to `offscreen_check`. It requires `OFFSCREEN_AGILITY_620_DIR`: on the in-box runtime, WARP 1.0.22 reports DXR tier 1.2, but `dxr_query_warp`, `dxr_update_warp` and `bvh_differential_warp` fail with every ray reported as a miss. CMake stops with an explanation instead. - **Docs.** `docs/experiments.md` gets 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): | Runtime | RTX 3060 | WARP | |---|---|---| | In-box | SM 6.5, DXR 1.2 | SM 6.2, no DXR, 4 lanes | | Agility 1.620.2 | SM 6.8, DXR 1.2 | SM 6.2, no DXR, 4 lanes | | Agility 1.620.2 + WARP 1.0.22 | SM 6.8, DXR 1.2 | SM 6.8, DXR 1.2, 4 to 128 lanes | 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 `151872d` on current `main`. 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. | Build | Result | |---|---| | Default (`cmake --preset dev`, no new options) | 79/80. Only `shader_metadata_probe` fails (#98, fixed by #114). Same as `main`. | | Agility + WARP, `out/build/w10` as documented | 77 passed, 1 skipped (`bvh_wave64_hardware`, 32 lanes), 2 failed: `shader_metadata_probe` (#98) and `bvh_wave64_warp` (#145) | | WARP without Agility | Configure stops: `OFFSCREEN_WARP_DIR requires OFFSCREEN_AGILITY_620_DIR` | All seven `cs_6_5` WARP checks, `dxr_query_warp`, `dxr_update_warp` and `bvh_differential_warp` pass on Windows 10 in the Agility + WARP build, where they used to skip. `bvh_wave64_warp` runs for the first time and fails on one shuffle: WARP returns the inverse of `WaveReadLaneAt(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._
upstream-sync closed this pull request 2026-11-24 06:41:32 +00:00
R0Y00 commented 2026-11-24 06:47:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:18:19Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066374420 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/147#issuecomment-7066374420). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T17:18:19Z. --- 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 commented 2026-11-24 06:47:43 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T17:33:36Z.


Thanks, reproduced and fixed in dbb09c6. With both options set and then cleared in one build directory, the old copy stayed, offscreen_check warp still loaded driver=1.0.22.0 on the in-box runtime, and --ray-query failed with every ray a miss.

  • cmake/app_local_warp.cmake now copies the DLL when OFFSCREEN_WARP_DIR is set and deletes it when the option is empty.
  • New test app_local_warp_toggle runs 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 with Clearing OFFSCREEN_WARP_DIR left d3d10warp.dll beside the executable.
  • With the real package in one directory: enabled gives driver=1.0.22.0 and --ray-query passes. Cleared gives driver=10.0.19041.5794, dxr_tier=0 and 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_toggle passes with the other results unchanged. #145 stays separate: its forced-width measurements are now in the minimal shuffle test, #151.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066573146 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/147#issuecomment-7066573146). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T17:33:36Z. --- Thanks, reproduced and fixed in `dbb09c6`. With both options set and then cleared in one build directory, the old copy stayed, `offscreen_check warp` still loaded `driver=1.0.22.0` on the in-box runtime, and `--ray-query` failed with every ray a miss. - `cmake/app_local_warp.cmake` now copies the DLL when `OFFSCREEN_WARP_DIR` is set and deletes it when the option is empty. - New test `app_local_warp_toggle` runs 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 with `Clearing OFFSCREEN_WARP_DIR left d3d10warp.dll beside the executable`. - With the real package in one directory: enabled gives `driver=1.0.22.0` and `--ray-query` passes. Cleared gives `driver=10.0.19041.5794`, `dxr_tier=0` and 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_toggle` passes 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 commented 2026-11-24 06:47:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:58:59Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066912427 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/147#issuecomment-7066912427). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T17:58:59Z. --- 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 commented 2026-11-24 06:47:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T18:14:06Z.


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 documented cmake -P command 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067102165 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/147#issuecomment-7067102165). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T18:14:06Z. --- 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 documented `cmake -P` command 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 commented 2026-11-24 06:47:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T18:25:18Z.


Fixed in d8dc318 and rebased onto 18d57d9. The test no longer removes WORK_DIR. It creates the warp-package and build subdirectories and clears only its two stand-in d3d10warp.dll files before each run.

  • Sentinel: I used a scratch directory holding keep-me.txt and build/other.txt. Both survived two consecutive cmake -P runs. Before the change, the first run deleted them.
  • Negative control: with the helper's delete disabled, the test still fails with Clearing OFFSCREEN_WARP_DIR left d3d10warp.dll beside the executable.
  • Agility + WARP 1.0.22, full suite: 108/110. app_local_warp_toggle and the WARP smoke tests passed together. The only failures are bvh_wave64_warp and wave_shuffle_warp (#145). The debug layer reported 0 errors and 0 warnings now that #191 is in.
  • Default build: 109/110. The one failure, pixel_aot_warp on the Windows 10 in-box WARP, also fails on unmodified main and is unrelated to this PR.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067242147 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/147#issuecomment-7067242147). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T18:25:18Z. --- Fixed in `d8dc318` and rebased onto `18d57d9`. The test no longer removes `WORK_DIR`. It creates the `warp-package` and `build` subdirectories and clears only its two stand-in `d3d10warp.dll` files before each run. - **Sentinel:** I used a scratch directory holding `keep-me.txt` and `build/other.txt`. Both survived two consecutive `cmake -P` runs. Before the change, the first run deleted them. - **Negative control:** with the helper's delete disabled, the test still fails with `Clearing OFFSCREEN_WARP_DIR left d3d10warp.dll beside the executable`. - **Agility + WARP 1.0.22, full suite:** 108/110. `app_local_warp_toggle` and the WARP smoke tests passed together. The only failures are `bvh_wave64_warp` and `wave_shuffle_warp` (#145). The debug layer reported 0 errors and 0 warnings now that #191 is in. - **Default build:** 109/110. The one failure, `pixel_aot_warp` on the Windows 10 in-box WARP, also fails on unmodified `main` and is unrelated to this PR. _AI-assisted (Claude Code)._
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!146
No description provided.