docs: measure native wave32 compute on app-local WARP 1.0.22 (#3160 stage 1) #3166

Merged
Not-Saii merged 4 commits from upstream-pr/3166 into main 2026-11-27 20:28:54 +00:00
Not-Saii commented 2026-11-27 19:38:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-27T19:38:15Z.


Change

Adds docs/experiments/native-compute-warp.md, the stage 1 measurement for #3160. The change is documentation only: no translator, test or CMake changes.

The measurement changed the plan. On Windows 11 build 26300, WARP 1.0.22 placed beside the EXE and loaded by the in-box D3D12 runtime already provides 4-to-128-lane waves. The export-based Agility load fails on this machine with 0x887E0003. So the native compute executables get no Agility wiring: here it would turn passing tests into failing ones.

Results

Test In-box runtime + WARP 1.0.22
native_comparison_pso_warp pass (PSO creation only)
native_heap_handle_probe_warp pass
native_global_srv_heap_replay_warp pass
startup_compute_dispatch_native_warp fail: dispatched, output unwritten (0xc5c5c5c5, 288 words)
native_startup_request_cache_warp fail: compute dispatch output mismatch
shader_wave32_warp pass (forced width 32)
bvh_wave64_warp fail at field 25, the field #145 reports, with a different value (source lane 19; #145 decoded to 27)
  • Heap-probe and heap-replay binaries with the DLL removed: (4..4) lanes, skip 77.
  • Options unset: the five native tests behave as on main, four skips (77) and one pass through the 4-lane branch.
  • Negative control: one wrong expected word in native_global_srv_heap_replay.cpp (local, reverted) fails with mismatch word 5: got 0xa0000005 expected 0xa0000004.
  • startup_compute_dispatch_warp (HLSL module, same stand-in) passes on WARP 1.0.22.
  • startup_compute_dispatch_native_hardware and native_startup_request_cache_hardware pass on the RTX 4090 (driver 32.0.16.1088), so the two stand-in failures are WARP-only.

Commands

cmake --preset dev -B out/build/warp122 "-DOFFSCREEN_AGILITY_620_DIR=<agility dir>" "-DOFFSCREEN_WARP_DIR=<warp>/build/native/bin/x64"
cmake --build out/build/warp122 --target compile_dxil native_recording_check native_heap_handle_probe native_global_srv_heap_replay
ctest --test-dir out/build/warp122 --no-tests=error -j1 -V -R '^native_(comparison_pso|heap_handle_probe|global_srv_heap_replay)_warp$'

The stand-in and gate tests need offscreen_check and startup_stream_consumer, which don't compile with the Agility option on main. That is the 40-byte view-description static_assert from #2532, filed as #3165. I measured them in an options-unset build with d3d10warp.dll copied in by hand; the note has the commands.

tests/docs_links_check.py and tests/bidi_controls_check.py pass.

Environment

Commit 88cddb09. Windows 11 build 26300, in-box D3D12Core.dll 10.0.26100.9818. MSVC 14.44.35207, Windows SDK 10.0.26100, Debug build. WARP 1.0.22 and Agility 1.620.2 come from the Microsoft-signed NuGet packages, not committed. RTX 4090 (driver 32.0.16.1088) only for the two stand-in _hardware runs.

Open

  • The cause of the two WARP-only stand-in failures.
  • Why the export-based Agility load fails on this build.
  • #145 for native compute: the readlane, DPP and permlane fixtures run only on native_store_replay (hardware adapter).
  • Stage 2 of #3160 (CI) stays open.

Refs #3160

AI-assisted.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5532160101 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3166). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-27T19:38:15Z. --- ## Change Adds `docs/experiments/native-compute-warp.md`, the stage 1 measurement for #3160. The change is documentation only: no translator, test or CMake changes. The measurement changed the plan. On Windows 11 build 26300, WARP 1.0.22 placed beside the EXE and loaded by the in-box D3D12 runtime already provides 4-to-128-lane waves. The export-based Agility load fails on this machine with `0x887E0003`. So the native compute executables get no Agility wiring: here it would turn passing tests into failing ones. ## Results | Test | In-box runtime + WARP 1.0.22 | |---|---| | `native_comparison_pso_warp` | pass (PSO creation only) | | `native_heap_handle_probe_warp` | pass | | `native_global_srv_heap_replay_warp` | pass | | `startup_compute_dispatch_native_warp` | fail: dispatched, output unwritten (`0xc5c5c5c5`, 288 words) | | `native_startup_request_cache_warp` | fail: `compute dispatch output mismatch` | | `shader_wave32_warp` | pass (forced width 32) | | `bvh_wave64_warp` | fail at field 25, the field #145 reports, with a different value (source lane 19; #145 decoded to 27) | - Heap-probe and heap-replay binaries with the DLL removed: `(4..4)` lanes, skip 77. - Options unset: the five native tests behave as on `main`, four skips (77) and one pass through the 4-lane branch. - Negative control: one wrong expected word in `native_global_srv_heap_replay.cpp` (local, reverted) fails with `mismatch word 5: got 0xa0000005 expected 0xa0000004`. - `startup_compute_dispatch_warp` (HLSL module, same stand-in) passes on WARP 1.0.22. - `startup_compute_dispatch_native_hardware` and `native_startup_request_cache_hardware` pass on the RTX 4090 (driver 32.0.16.1088), so the two stand-in failures are WARP-only. ## Commands ```powershell cmake --preset dev -B out/build/warp122 "-DOFFSCREEN_AGILITY_620_DIR=<agility dir>" "-DOFFSCREEN_WARP_DIR=<warp>/build/native/bin/x64" cmake --build out/build/warp122 --target compile_dxil native_recording_check native_heap_handle_probe native_global_srv_heap_replay ctest --test-dir out/build/warp122 --no-tests=error -j1 -V -R '^native_(comparison_pso|heap_handle_probe|global_srv_heap_replay)_warp$' ``` The stand-in and gate tests need `offscreen_check` and `startup_stream_consumer`, which don't compile with the Agility option on `main`. That is the 40-byte view-description `static_assert` from #2532, filed as #3165. I measured them in an options-unset build with `d3d10warp.dll` copied in by hand; the note has the commands. `tests/docs_links_check.py` and `tests/bidi_controls_check.py` pass. ## Environment Commit `88cddb09`. Windows 11 build 26300, in-box `D3D12Core.dll` 10.0.26100.9818. MSVC 14.44.35207, Windows SDK 10.0.26100, Debug build. WARP 1.0.22 and Agility 1.620.2 come from the Microsoft-signed NuGet packages, not committed. RTX 4090 (driver 32.0.16.1088) only for the two stand-in `_hardware` runs. ## Open - The cause of the two WARP-only stand-in failures. - Why the export-based Agility load fails on this build. - #145 for native compute: the readlane, DPP and permlane fixtures run only on `native_store_replay` (hardware adapter). - Stage 2 of #3160 (CI) stays open. Refs #3160 AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tedin7 commented 2026-11-27 20:28:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-27T20:28:42Z.

Review: COMMENTED


Review of 49b4447af3, a docs-only change (one new file, docs/experiments/native-compute-warp.md). Comment only.

The note keeps measurements, controls and open questions apart: the renamed-DLL control and the one-word negative control show that the app-local WARP passes are real comparisons, the two stand-in failures are reported with their failing words and left open, and the unknowns (cause of the export-path 0x887E0003, #145 on native compute) are labelled as such. The statement that every direct compute module declares wave size 32 matches src/dxil_module.h on main, and the 4-lane in-box WARP matches what our own WARP runs see (the native _warp/_hardware legs skip there). No code, test or CMake change, so nothing for a Windows run to verify.

Commands: git diff origin/main...pull/3166/head (read), git grep -n wave origin/main -- src/dxil_module.h.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6093073879 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3166#pullrequestreview-6093073879). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-27T20:28:42Z. **Review:** COMMENTED --- Review of 49b4447af3da477aa983e44990e1192b43e8669d, a docs-only change (one new file, `docs/experiments/native-compute-warp.md`). Comment only. The note keeps measurements, controls and open questions apart: the renamed-DLL control and the one-word negative control show that the app-local WARP passes are real comparisons, the two stand-in failures are reported with their failing words and left open, and the unknowns (cause of the export-path `0x887E0003`, #145 on native compute) are labelled as such. The statement that every direct compute module declares wave size 32 matches `src/dxil_module.h` on main, and the 4-lane in-box WARP matches what our own WARP runs see (the native `_warp`/`_hardware` legs skip there). No code, test or CMake change, so nothing for a Windows run to verify. Commands: `git diff origin/main...pull/3166/head` (read), `git grep -n wave origin/main -- src/dxil_module.h`. AI-assisted; commands listed were executed locally.
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!3166
No description provided.