bvh_wave64_warp: WARP 1.0.22 misroutes non-uniform WaveReadLaneAt reads across lane blocks at forced widths above 8 #144

Open
opened 2026-11-21 17:07:49 +00:00 by rasptum · 12 comments
rasptum commented 2026-11-21 17:07:49 +00:00 (Migrated from github.com)
Contributor

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


Reproduction

Windows 10 22H2 (19045.6466), build with the app-local Agility SDK 1.620.2 and WARP 1.0.22 (setup in #147):

ctest --test-dir out/build/w10 --no-tests=error -R '^bvh_wave64_warp$' -V

Expected and observed behavior

With WARP 1.0.22 the forced wave64 check can run for the first time (SM 6.8, lanes 4 to 128), and it fails at field 25:

record=0 field=25 expected=f0094d90 actual=f053ba18
native_lane_range=4..128 shader_model_capped_at_6_6=0x66

Field 25 is WaveReadLaneAt(v, (nativeLane*7+3) % width) in tests/bvh_reads_waves.hlsl (line 103), with all 64 lanes active. Each query value is 0xf0000001 ^ (i*0x319db), so every result can be decoded back to the lane it came from. I dumped fields 8 and 25 for groups 0 and 1 with a temporary local print (not committed):

  • In all 128 lanes, lane n received the value of lane m where 7m+3 ≡ n (mod 64). That is the inverse of the requested permutation, not the permutation itself. Group 1's reversed lane order gives the same result.
  • In the same dispatch, field 24's shuffle (from in the scan loop), the native mirror (field 30, 63-n) and every other field pass.
  • At WARP's default native width of 8, 7n+3 ≡ 3-n (mod 8) is its own inverse, so bvh_waves_warp cannot show this. The RTX 3060 (32 lanes) passes the non-forced check.

The current WaveReadLaneAt documentation describes a non-uniform index as a shuffle and lists only inactive and helper lanes as undefined, so the fixture's expectation looks valid. I have not checked the normative DXIL spec, and I have not run WARP at a forced width of 16 or 32 to see whether the inversion depends on wave64.

Open questions: is this a WARP 1.0.22 defect worth reporting to Microsoft, and should bvh_wave64_warp record it as a known WARP result rather than a failure in this opt-in configuration?

Environment

  • Windows 10 22H2, build 19045.6466; VS Build Tools 17.14, MSVC 14.44.35207; Windows SDK 10.0.26100
  • Agility SDK 1.620.2 (D3D12Core.dll 1.620.2.0.20261106.5), WARP 1.0.22 (d3d10warp.dll 1.0.22.0.20261027.1), both Microsoft-signed NuGet packages
  • Backend WARP, debug layer unavailable (Graphics Tools not installed)

AI-assisted (Claude Code); run locally on the configuration above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531874334 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T17:07:49Z. --- ## Reproduction Windows 10 22H2 (19045.6466), build with the app-local Agility SDK 1.620.2 and WARP 1.0.22 (setup in #147): ```powershell ctest --test-dir out/build/w10 --no-tests=error -R '^bvh_wave64_warp$' -V ``` ## Expected and observed behavior With WARP 1.0.22 the forced wave64 check can run for the first time (SM 6.8, lanes 4 to 128), and it fails at field 25: ```text record=0 field=25 expected=f0094d90 actual=f053ba18 native_lane_range=4..128 shader_model_capped_at_6_6=0x66 ``` Field 25 is `WaveReadLaneAt(v, (nativeLane*7+3) % width)` in `tests/bvh_reads_waves.hlsl` (line 103), with all 64 lanes active. Each query value is `0xf0000001 ^ (i*0x319db)`, so every result can be decoded back to the lane it came from. I dumped fields 8 and 25 for groups 0 and 1 with a temporary local print (not committed): - In all 128 lanes, lane n received the value of lane m where `7m+3 ≡ n (mod 64)`. That is the inverse of the requested permutation, not the permutation itself. Group 1's reversed lane order gives the same result. - In the same dispatch, field 24's shuffle (`from` in the scan loop), the native mirror (field 30, `63-n`) and every other field pass. - At WARP's default native width of 8, `7n+3 ≡ 3-n (mod 8)` is its own inverse, so `bvh_waves_warp` cannot show this. The RTX 3060 (32 lanes) passes the non-forced check. The [current `WaveReadLaneAt` documentation](https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/wavereadlaneat) describes a non-uniform index as a shuffle and lists only inactive and helper lanes as undefined, so the fixture's expectation looks valid. I have not checked the normative DXIL spec, and I have not run WARP at a forced width of 16 or 32 to see whether the inversion depends on wave64. Open questions: is this a WARP 1.0.22 defect worth reporting to Microsoft, and should `bvh_wave64_warp` record it as a known WARP result rather than a failure in this opt-in configuration? ## Environment - Windows 10 22H2, build 19045.6466; VS Build Tools 17.14, MSVC 14.44.35207; Windows SDK 10.0.26100 - Agility SDK 1.620.2 (`D3D12Core.dll` 1.620.2.0.20261106.5), WARP 1.0.22 (`d3d10warp.dll` 1.0.22.0.20261027.1), both Microsoft-signed NuGet packages - Backend WARP, debug layer unavailable (Graphics Tools not installed) _AI-assisted (Claude Code); run locally on the configuration above._
R0Y00 commented 2026-11-24 06:47:41 +00:00 (Migrated from github.com)
Author
Contributor

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


Thanks for recording the shader, permutation and exact WARP/runtime versions. Keep the mismatch visible. Please add a minimal source-built shuffle and the forced-width 16/32 results where supported before attributing this to WARP or changing the expectation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066370936 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7066370936). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T17:18:03Z. --- Thanks for recording the shader, permutation and exact WARP/runtime versions. Keep the mismatch visible. Please add a minimal source-built shuffle and the forced-width 16/32 results where supported before attributing this to WARP or changing the expectation.
rasptum commented 2026-11-24 06:47:42 +00:00 (Migrated from github.com)
Author
Contributor

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


Minimal source-built shuffle and forced widths, as requested: #151 adds wave_shuffle_{warp,hardware}. One 64-thread group, and each thread stores its native lane, the width, a wave id and the group thread whose value came back from WaveReadLaneAt(t, (lane*7+3) % width). Two controls run in the same dispatch: a self-inverse mirror (width-1-lane) and a broadcast (3 % width). Each shuffle result is classified as correct, exact inverse, or other. inverse_distinct says whether the width can tell the two apart.

Windows 10 22H2, Agility SDK 1.620.2, built from #151 with #147 applied locally for the app-local WARP:

Adapter native forced 16 forced 32 forced 64
WARP 1.0.22 (lanes 4..128, SM 6.6) width 8: 64 correct, inverse_distinct=no 64 inverse 64 inverse 64 inverse
RTX 3060, 32.0.15.9636 (lanes 32..32) width 32: 64 correct n/a 64 correct n/a

Mirror and broadcast controls: 0 errors on every row.

  • The inversion is not tied to wave64. WARP 1.0.22 returns the inverse at every forced width it supports, 16, 32 and 64. At its native width of 8 the permutation is self-inverse, so a correct read and an inverted one look the same.
  • [WaveSize] is not the trigger by itself. The RTX 3060 runs the same forced-32 shader correctly.

A separate observation from building this: the Windows 10 in-box WARP (10.0.19041) removes the device (0x887a0005) for any WaveReadLaneAt whose lane index is not a literal. I bisected it with local variants: 3, a literal, passes. 3 % width, width-1, lane ^ 1, WaveReadLaneFirst(lane)+3 and (7*lane+3) & 3 all remove the device. So the native variant is cs_6_5, like bvh_reads_waves, and skips there.

AI-assisted (Claude Code); run locally on the configuration above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066572331 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7066572331). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T17:33:32Z. --- Minimal source-built shuffle and forced widths, as requested: #151 adds `wave_shuffle_{warp,hardware}`. One 64-thread group, and each thread stores its native lane, the width, a wave id and the group thread whose value came back from `WaveReadLaneAt(t, (lane*7+3) % width)`. Two controls run in the same dispatch: a self-inverse mirror (`width-1-lane`) and a broadcast (`3 % width`). Each shuffle result is classified as correct, exact inverse, or other. `inverse_distinct` says whether the width can tell the two apart. Windows 10 22H2, Agility SDK 1.620.2, built from #151 with #147 applied locally for the app-local WARP: | Adapter | native | forced 16 | forced 32 | forced 64 | |---|---|---|---|---| | WARP 1.0.22 (lanes 4..128, SM 6.6) | width 8: 64 correct, `inverse_distinct=no` | **64 inverse** | **64 inverse** | **64 inverse** | | RTX 3060, 32.0.15.9636 (lanes 32..32) | width 32: 64 correct | n/a | 64 correct | n/a | Mirror and broadcast controls: 0 errors on every row. - The inversion is not tied to wave64. WARP 1.0.22 returns the inverse at every forced width it supports, 16, 32 and 64. At its native width of 8 the permutation is self-inverse, so a correct read and an inverted one look the same. - `[WaveSize]` is not the trigger by itself. The RTX 3060 runs the same forced-32 shader correctly. A separate observation from building this: the Windows 10 in-box WARP (10.0.19041) removes the device (`0x887a0005`) for any `WaveReadLaneAt` whose lane index is not a literal. I bisected it with local variants: `3`, a literal, passes. `3 % width`, `width-1`, `lane ^ 1`, `WaveReadLaneFirst(lane)+3` and `(7*lane+3) & 3` all remove the device. So the native variant is `cs_6_5`, like `bvh_reads_waves`, and skips there. _AI-assisted (Claude Code); run locally on the configuration above._
rasptum commented 2026-11-24 06:47:45 +00:00 (Migrated from github.com)
Author
Contributor

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


Independent confirmation from @Joacoorandom's stress fixture in #155 (now closed). It uses a different shader, nine groups of per-lane values and its own CPU oracle. I ran it on Windows as submitted (e0eb2bb), since the PR notes Windows and GPU behavior were not yet measured. Windows 10 22H2, Agility SDK 1.620.2, debug layer enabled (Graphics Tools now installed):

Adapter default forced 16 forced 32 forced 64
WARP 1.0.22 width 8: 0 mismatches, 0 inverse witnesses 1584 mismatches, 576/576 inverse-route matches 1672, 576/576 1760, 576/576
RTX 3060, 32.0.15.9636 width 32: 0 mismatches skip 0 mismatches skip

debug_errors=0 debug_warnings=0 on every run. The first mismatch is thread=0 field=5 expected=f00c676d at each forced width. The extra mismatches beyond 576 come from the other non-self-inverse routes the fixture covers. In-box WARP 10.0.19041 skips the default probe at its SM 6.5 gate instead of removing the device. With #151, two independent fixtures now give the same width pattern on WARP 1.0.22.

AI-assisted (Claude Code); run locally on the configuration above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066944740 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7066944740). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T18:01:36Z. --- Independent confirmation from @Joacoorandom's stress fixture in #155 (now closed). It uses a different shader, nine groups of per-lane values and its own CPU oracle. I ran it on Windows as submitted (`e0eb2bb`), since the PR notes Windows and GPU behavior were not yet measured. Windows 10 22H2, Agility SDK 1.620.2, debug layer enabled (Graphics Tools now installed): | Adapter | default | forced 16 | forced 32 | forced 64 | |---|---|---|---|---| | WARP 1.0.22 | width 8: 0 mismatches, 0 inverse witnesses | 1584 mismatches, **576/576** inverse-route matches | 1672, **576/576** | 1760, **576/576** | | RTX 3060, 32.0.15.9636 | width 32: 0 mismatches | skip | 0 mismatches | skip | `debug_errors=0 debug_warnings=0` on every run. The first mismatch is `thread=0 field=5 expected=f00c676d` at each forced width. The extra mismatches beyond 576 come from the other non-self-inverse routes the fixture covers. In-box WARP 10.0.19041 skips the default probe at its SM 6.5 gate instead of removing the device. With #151, two independent fixtures now give the same width pattern on WARP 1.0.22. _AI-assisted (Claude Code); run locally on the configuration above._
MarlomMedeiros commented 2026-11-24 06:47:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T18:02:03Z.


Second configuration, same pattern. Windows 11 build 26300, RTX 5070
(driver 32.0.16.2135), Agility SDK 1.620.2 with app-local WARP 1.0.22
(Microsoft.Direct3D.D3D12 and Microsoft.Direct3D.WARP NuGet packages),
local build of the app-local branch from #147 merged with main at
ccfa703. Debug layer enabled, zero errors, mirror and broadcast
controls clean everywhere.

Runtime Native Forced 16 Forced 32 Forced 64
RTX 5070, in-box D3D12 32: correct=64, distinct skip correct=64, distinct skip
In-box WARP 10.0.26100 4: correct=64, self-inverse skip skip skip
App-local WARP 1.0.22 8: correct=64, self-inverse inverse=64 inverse=64 inverse=64

The inversion reproduces identically on a different OS and a different
host adapter, so it looks like a WARP 1.0.22 property rather than
something OS- or driver-adjacent (expected for a software rasterizer,
now measured). Two environment notes: the in-box WARP on this Windows
11 build is 10.0.26100.10068 and only reports a 4..4 lane range, so
forced widths all skip; and under the Agility runtime both runs print
the CheckFeatureSupport1 supersession notice twice, counted as
informational warnings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066950463 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7066950463). Originally posted by [MarlomMedeiros](https://github.com/MarlomMedeiros) on 2026-11-21T18:02:03Z. --- Second configuration, same pattern. Windows 11 build 26300, RTX 5070 (driver 32.0.16.2135), Agility SDK 1.620.2 with app-local WARP 1.0.22 (Microsoft.Direct3D.D3D12 and Microsoft.Direct3D.WARP NuGet packages), local build of the app-local branch from #147 merged with main at ccfa703. Debug layer enabled, zero errors, mirror and broadcast controls clean everywhere. | Runtime | Native | Forced 16 | Forced 32 | Forced 64 | |---|---|---|---|---| | RTX 5070, in-box D3D12 | 32: correct=64, distinct | skip | correct=64, distinct | skip | | In-box WARP 10.0.26100 | 4: correct=64, self-inverse | skip | skip | skip | | App-local WARP 1.0.22 | 8: correct=64, self-inverse | inverse=64 | inverse=64 | inverse=64 | The inversion reproduces identically on a different OS and a different host adapter, so it looks like a WARP 1.0.22 property rather than something OS- or driver-adjacent (expected for a software rasterizer, now measured). Two environment notes: the in-box WARP on this Windows 11 build is 10.0.26100.10068 and only reports a 4..4 lane range, so forced widths all skip; and under the Agility runtime both runs print the CheckFeatureSupport1 supersession notice twice, counted as informational warnings.
lambirou commented 2026-11-24 06:47:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-21T18:20:37Z.


I ran the merged #151 fixture on an AMD Radeon RX 9060 XT as a hardware comparison for the WARP result. The physical GPU passed at native wave64 and at forced wave32 and wave64.

  • Commit 1e394fe61f70caf7a7c6a2283166c1c90dea8fe7, Release build
  • Windows 11 26H2, build 26300.10075, with in-box D3D12
  • AMD driver 32.0.32029.2010, lane range 32..64, Shader Model 6.6
  • MSVC 19.44.35228, DXC from Windows SDK 10.0.26100, D3D12 debug layer unavailable
Variant Correct Inverse Other Control errors
Native wave64 64/64 0 0 0
Forced wave32 64/64 0 0 0
Forced wave64 64/64 0 0 0

Forced wave16 was skipped because it falls outside the adapter's lane range. In-box WARP 10.0.26100.10068 reported only wave4, where the test permutation is self-inverse. CTest skipped that case after the native check. The app-local WARP 1.0.22 was outside the scope of this run.

After building the offscreen_check target, I ran:

ctest --test-dir <build-dir> --no-tests=error -R "^wave_shuffle_(hardware|warp)$" -V

AI-assisted report based on a local test run.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067184082 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7067184082). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-21T18:20:37Z. --- I ran the merged #151 fixture on an **AMD Radeon RX 9060 XT** as a hardware comparison for the WARP result. The physical GPU passed at native wave64 and at forced wave32 and wave64. - Commit `1e394fe61f70caf7a7c6a2283166c1c90dea8fe7`, Release build - Windows 11 26H2, build `26300.10075`, with in-box D3D12 - AMD driver `32.0.32029.2010`, lane range `32..64`, Shader Model 6.6 - MSVC `19.44.35228`, DXC from Windows SDK `10.0.26100`, D3D12 debug layer unavailable | Variant | Correct | Inverse | Other | Control errors | | --- | ---: | ---: | ---: | ---: | | Native wave64 | 64/64 | 0 | 0 | 0 | | Forced wave32 | 64/64 | 0 | 0 | 0 | | Forced wave64 | 64/64 | 0 | 0 | 0 | Forced wave16 was skipped because it falls outside the adapter's lane range. In-box WARP `10.0.26100.10068` reported only wave4, where the test permutation is self-inverse. CTest skipped that case after the native check. The app-local WARP 1.0.22 was outside the scope of this run. After building the `offscreen_check` target, I ran: ```powershell ctest --test-dir <build-dir> --no-tests=error -R "^wave_shuffle_(hardware|warp)$" -V ``` _AI-assisted report based on a local test run._
rasptum commented 2026-11-24 06:47:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T19:55:00Z.


A correction to my own description. The wrong reads are not the inverse permutation in general. That was a coincidence of 7n+3.

I replaced the shuffle index with eight different expressions and dumped the source lane of every read on WARP 1.0.22 at widths 8, 16, 32 and 64 (Windows 10 22H2, Agility SDK 1.620.2, debug layer on, 0 errors).

Index Forced 16 Forced 32 Forced 64 Matches the inverse?
(lane*7+3) % width 0/16 correct 0/32 0/64 yes, all
(lane+1) % width 12/16 24/32 48/64 no, none
(lane*5+2) % width 8/16 8/32 0/64 no, none
(lane*3) % width 8/16 8/32 16/64 all at 16 and 32, 40/64 at 64
(lane*lane+3) % width 8/16 8/32 8/64 not a permutation
lane / 2, lane & ~1, lane ^ 9 all correct all correct all correct

Native width 8 is correct for every expression (lane ^ 9 is out of range there and is excluded). The RTX 3060 is correct for every expression at width 32.

One rule matches all 952 defined lane reads. I derived it from four expressions and ran the other four as predictions:

  • WARP 1.0.22 runs a forced wave as blocks of its native 8 lanes.
  • Lane l in block b requests index i. The position inside the source block, i % 8, is right.
  • The source block is taken from the wrong lane's request: the lane at position i % 8 of the reader's own block.

So a read is correct whenever every lane of a block requests the same source block. That covers uniform reads, the mirror and a single-block wave, and it explains why the controls pass.

#272 adds a rotation read to wave_shuffle and classifies wrong reads against this rule instead of the inverse. The test still fails on WARP 1.0.22. If this description is acceptable, I will retitle this issue to match.

AI-assisted (Claude Code). The Windows results were measured locally; the rule is inferred from readbacks, not from WARP's code.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7068370609 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7068370609). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T19:55:00Z. --- A correction to my own description. The wrong reads are not the inverse permutation in general. That was a coincidence of `7n+3`. I replaced the shuffle index with eight different expressions and dumped the source lane of every read on WARP 1.0.22 at widths 8, 16, 32 and 64 (Windows 10 22H2, Agility SDK 1.620.2, debug layer on, 0 errors). | Index | Forced 16 | Forced 32 | Forced 64 | Matches the inverse? | |---|---|---|---|---| | `(lane*7+3) % width` | 0/16 correct | 0/32 | 0/64 | yes, all | | `(lane+1) % width` | 12/16 | 24/32 | 48/64 | no, none | | `(lane*5+2) % width` | 8/16 | 8/32 | 0/64 | no, none | | `(lane*3) % width` | 8/16 | 8/32 | 16/64 | all at 16 and 32, 40/64 at 64 | | `(lane*lane+3) % width` | 8/16 | 8/32 | 8/64 | not a permutation | | `lane / 2`, `lane & ~1`, `lane ^ 9` | all correct | all correct | all correct | | Native width 8 is correct for every expression (`lane ^ 9` is out of range there and is excluded). The RTX 3060 is correct for every expression at width 32. One rule matches all 952 defined lane reads. I derived it from four expressions and ran the other four as predictions: - WARP 1.0.22 runs a forced wave as blocks of its native 8 lanes. - Lane `l` in block `b` requests index `i`. The position inside the source block, `i % 8`, is right. - The source block is taken from the wrong lane's request: the lane at position `i % 8` of the reader's own block. So a read is correct whenever every lane of a block requests the same source block. That covers uniform reads, the mirror and a single-block wave, and it explains why the controls pass. #272 adds a rotation read to `wave_shuffle` and classifies wrong reads against this rule instead of the inverse. The test still fails on WARP 1.0.22. If this description is acceptable, I will retitle this issue to match. _AI-assisted (Claude Code). The Windows results were measured locally; the rule is inferred from readbacks, not from WARP's code._
R0Y00 commented 2026-11-24 06:47:59 +00:00 (Migrated from github.com)
Author
Contributor

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


Yes, please update the title to describe the observed cross-block lane misrouting on WARP 1.0.22. The rotation control from #272 is now on main and distinguishes it from an inverse permutation. Please keep the proposed block-selection rule identified as an inference from readbacks. A rerun on a different WARP version with the adapter version, wave width and block_misrouted/other counts would help narrow the affected versions.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7068761578 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7068761578). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T20:27:06Z. --- Yes, please update the title to describe the observed cross-block lane misrouting on WARP 1.0.22. The rotation control from #272 is now on main and distinguishes it from an inverse permutation. Please keep the proposed block-selection rule identified as an inference from readbacks. A rerun on a different WARP version with the adapter version, wave width and `block_misrouted`/`other` counts would help narrow the affected versions.
rasptum commented 2026-11-24 06:48:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T21:02:13Z.


Rerun of wave_shuffle on other WARP versions, as requested. Ten versions of the official Microsoft.Direct3D.WARP NuGet package, each placed app-local beside the executable with OFFSCREEN_WARP_DIR. The driver= line of every run matched the intended package.

  • Commit: c832696 (main)
  • Windows 10 22H2, build 19045.6466
  • Agility SDK 1.620.2 (D3D12Core.dll 1.620.2.0), debug layer enabled, debug_errors=0 debug_warnings=0 on every run that reached the forced variants
  • Command: offscreen_check.exe warp --wave-shuffle
  • Adapter: Microsoft Basic Render Driver, vendor 1414, device 008c

Cells are correct / block_misrouted / other out of 64 threads, affine first, then rotation. "ctl" is control_errors for native, forced 16, forced 32, forced 64.

WARP (driver=) DLL file version native_lane_range shader model line native forced 16 forced 32 forced 64 ctl block exit
10.0.26026.1002 (package 1.0.9) 10.0.26026.1002 4..4 shader_model_capped_at_6_6=0x66 width 4: 64/0/0, 64/0/0 skipped skipped skipped 0 4 77
1.0.13.0 1.0.13.0.20240822.1 4..128 shader_model_capped_at_6_6=0x66 width 4: 64/0/0, 64/0/0 0/64/0, 32/32/0 0/64/0, 32/32/0 0/64/0, 32/32/0 0, 0, 0, 0 4 1
1.0.15.1 1.0.15.1.20250904.1 4..128 shader_model_capped_at_6_6=0x66 width 4: 64/0/0, 64/0/0 0/64/0, 32/32/0 0/64/0, 32/32/0 0/64/0, 32/32/0 0, 0, 0, 0 4 1
1.0.16.1 1.0.16.1.20251015.1 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1
1.0.17.0 1.0.17.0.20260113.2 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1
1.0.19.0 1.0.19.0.20260422.1 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1
1.0.20.0 1.0.20.0.20260527.5 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1
1.0.21.0 1.0.21.0.20260922.2 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1
1.0.22.0 (baseline) 1.0.22.0.20261027.1 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1
1.65535.22.0 (1.65535.22-preview) 1.65535.22.0.20261027.2 4..128 shader_model_capped_at_6_6=0x66 width 8: 64/0/0, 64/0/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0/64/0, 48/16/0 0, 0, 0, 0 8 1

What this measured:

  • Every tested version that accepts a forced width misroutes, from 1.0.13 through 1.0.22 and the 1.65535.22 preview. There is no good version in this set, so no first-good or last-bad boundary. 1.0.22 is the newest stable package on nuget.org today.
  • other=0 everywhere: every wrong read is one the fixture's block model predicts, and the mirror and broadcast controls stay at 0 errors.
  • The native width changed from 4 (1.0.13, 1.0.15.1) to 8 (1.0.16.1 and later). The misrouted rotation count follows it: 32 of 64 with blocks of 4, 16 of 64 with blocks of 8. That is two wrong lanes per block: 2 x 64/4 and 2 x 64/8 threads. I did not test 1.0.16, so the change is somewhere after 1.0.15.1 and no later than 1.0.16.1.
  • Package 1.0.9 (reports itself as 10.0.26026.1002) has native_lane_range=4..4, so the forced variants skip and the run exits 77. It is a capability skip, not a pass. 1.0.10 to 1.0.12 were not tested, so I do not know which version first accepted a forced width.
  • The three results that differ from 1.0.22 (1.0.9, 1.0.13, 1.0.15.1) were run a second time with identical output.

The block-selection rule is still an inference from the readbacks. It predicts every value read back here, at two different block sizes, but I have not looked at WARP's code and cannot say that this is how WARP implements the read.

Not tested: 1.0.14.x, 1.0.16, 1.0.18, the 1.0.19 and 1.0.20 previews, 1.65535.20-preview, anything before 1.0.9, and the in-box WARP of newer Windows builds. The in-box WARP here (10.0.19041) is Shader Model 6.2 and skips the fixture.

AI-assisted (Claude Code). The Windows results were measured locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7069188373 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7069188373). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T21:02:13Z. --- Rerun of `wave_shuffle` on other WARP versions, as requested. Ten versions of the official `Microsoft.Direct3D.WARP` NuGet package, each placed app-local beside the executable with `OFFSCREEN_WARP_DIR`. The `driver=` line of every run matched the intended package. - Commit: c832696 (`main`) - Windows 10 22H2, build 19045.6466 - Agility SDK 1.620.2 (`D3D12Core.dll` 1.620.2.0), debug layer enabled, `debug_errors=0 debug_warnings=0` on every run that reached the forced variants - Command: `offscreen_check.exe warp --wave-shuffle` - Adapter: Microsoft Basic Render Driver, vendor 1414, device 008c Cells are `correct / block_misrouted / other` out of 64 threads, affine first, then rotation. "ctl" is `control_errors` for native, forced 16, forced 32, forced 64. | WARP (`driver=`) | DLL file version | `native_lane_range` | shader model line | native | forced 16 | forced 32 | forced 64 | ctl | `block` | exit | |---|---|---|---|---|---|---|---|---|---|---| | 10.0.26026.1002 (package 1.0.9) | 10.0.26026.1002 | 4..4 | `shader_model_capped_at_6_6=0x66` | width 4: 64/0/0, 64/0/0 | skipped | skipped | skipped | 0 | 4 | 77 | | 1.0.13.0 | 1.0.13.0.20240822.1 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 4: 64/0/0, 64/0/0 | **0/64/0**, **32/32/0** | **0/64/0**, **32/32/0** | **0/64/0**, **32/32/0** | 0, 0, 0, 0 | 4 | 1 | | 1.0.15.1 | 1.0.15.1.20250904.1 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 4: 64/0/0, 64/0/0 | **0/64/0**, **32/32/0** | **0/64/0**, **32/32/0** | **0/64/0**, **32/32/0** | 0, 0, 0, 0 | 4 | 1 | | 1.0.16.1 | 1.0.16.1.20251015.1 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | | 1.0.17.0 | 1.0.17.0.20260113.2 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | | 1.0.19.0 | 1.0.19.0.20260422.1 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | | 1.0.20.0 | 1.0.20.0.20260527.5 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | | 1.0.21.0 | 1.0.21.0.20260922.2 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | | 1.0.22.0 (baseline) | 1.0.22.0.20261027.1 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | | 1.65535.22.0 (1.65535.22-preview) | 1.65535.22.0.20261027.2 | 4..128 | `shader_model_capped_at_6_6=0x66` | width 8: 64/0/0, 64/0/0 | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | **0/64/0**, **48/16/0** | 0, 0, 0, 0 | 8 | 1 | What this measured: - Every tested version that accepts a forced width misroutes, from 1.0.13 through 1.0.22 and the 1.65535.22 preview. There is no good version in this set, so no first-good or last-bad boundary. 1.0.22 is the newest stable package on nuget.org today. - `other=0` everywhere: every wrong read is one the fixture's block model predicts, and the mirror and broadcast controls stay at 0 errors. - The native width changed from 4 (1.0.13, 1.0.15.1) to 8 (1.0.16.1 and later). The misrouted rotation count follows it: 32 of 64 with blocks of 4, 16 of 64 with blocks of 8. That is two wrong lanes per block: 2 x 64/4 and 2 x 64/8 threads. I did not test 1.0.16, so the change is somewhere after 1.0.15.1 and no later than 1.0.16.1. - Package 1.0.9 (reports itself as 10.0.26026.1002) has `native_lane_range=4..4`, so the forced variants skip and the run exits 77. It is a capability skip, not a pass. 1.0.10 to 1.0.12 were not tested, so I do not know which version first accepted a forced width. - The three results that differ from 1.0.22 (1.0.9, 1.0.13, 1.0.15.1) were run a second time with identical output. The block-selection rule is still an inference from the readbacks. It predicts every value read back here, at two different block sizes, but I have not looked at WARP's code and cannot say that this is how WARP implements the read. Not tested: 1.0.14.x, 1.0.16, 1.0.18, the 1.0.19 and 1.0.20 previews, 1.65535.20-preview, anything before 1.0.9, and the in-box WARP of newer Windows builds. The in-box WARP here (10.0.19041) is Shader Model 6.2 and skips the fixture. _AI-assisted (Claude Code). The Windows results were measured locally._
triggered02 commented 2026-11-24 06:49:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:31:30Z.


Reproducing the forced-width WaveReadLaneAt lane-block check on this machine's WARP to see whether the WARP 1.0.22 misroute persists. Environment: in-box WARP (Microsoft Basic Render Driver 10.0.26100.9818) and NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1074), Windows 11 build 26200, main @ abdb8fb, dev preset. Running the existing bvh_wave64_{hardware,warp} and wave_shuffle_{hardware,warp} entries and the forced-width control if the built binary exposes it; will report observed vs expected lane reads.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114575113 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7114575113). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:31:30Z. --- Reproducing the forced-width `WaveReadLaneAt` lane-block check on this machine's WARP to see whether the WARP 1.0.22 misroute persists. Environment: in-box WARP (Microsoft Basic Render Driver 10.0.26100.9818) and NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1074), Windows 11 build 26200, `main` @ abdb8fb, `dev` preset. Running the existing `bvh_wave64_{hardware,warp}` and `wave_shuffle_{hardware,warp}` entries and the forced-width control if the built binary exposes it; will report observed vs expected lane reads.
triggered02 commented 2026-11-24 06:49:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:33:47Z.


Checked whether this reproduces on the in-box WARP rather than app-local WARP 1.0.22.

Environment: Xbox2Windows @ 1ccc326, Windows 11 Pro build 26200, in-box WARP 10.0.26100.9818 (Microsoft Basic Render Driver), NVIDIA GTX 1660 SUPER (driver 32.0.16.1074), existing dev build, no Agility SDK / app-local WARP, debug layer unavailable.

Results (ctest --preset dev -R '^bvh_wave64_(hardware|warp)$|^wave_shuffle_(hardware|warp)$' -V):

  • bvh_wave64_warp: skip (77) — in-box WARP reports native_lane_range=4..4 (SM 6.6 available), so the 64-lane fixture cannot run.
  • wave_shuffle_warp: skip (77) — native width 4 passes cleanly (affine 64/64, rotation 64/64, block_misrouted=0, control_errors=0); forced widths 16/32/64 all skipped because the adapter advertises only 4 lanes.
  • bvh_wave64_hardware: skip (77) — GTX 1660 SUPER reports 32..32 lanes.
  • wave_shuffle_hardware: pass — native 32 and forced [WaveSize(32)] both 64/64 correct for affine and rotation, block_misrouted=0, control_errors=0; forced 16/64 skipped on capability.

Conclusion: the lane-block misroute does not reproduce on in-box WARP 10.0.26100.9818 — the forced-width scenario is unreachable there (4-lane range), and native-width reads are all correct. The failure stays specific to app-local WARP 1.0.22 with the Agility SDK, which advertises 4..128 lanes. No runtime override exists in the fixture to force the in-box WARP above its reported range, so this is a capability skip, not a positive correctness proof at widths > 8 for the in-box build.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114625084 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7114625084). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:33:47Z. --- Checked whether this reproduces on the in-box WARP rather than app-local WARP 1.0.22. Environment: Xbox2Windows @ `1ccc326`, Windows 11 Pro build 26200, in-box WARP 10.0.26100.9818 (Microsoft Basic Render Driver), NVIDIA GTX 1660 SUPER (driver 32.0.16.1074), existing dev build, no Agility SDK / app-local WARP, debug layer unavailable. Results (`ctest --preset dev -R '^bvh_wave64_(hardware|warp)$|^wave_shuffle_(hardware|warp)$' -V`): - `bvh_wave64_warp`: **skip (77)** — in-box WARP reports `native_lane_range=4..4` (SM 6.6 available), so the 64-lane fixture cannot run. - `wave_shuffle_warp`: **skip (77)** — native width 4 passes cleanly (affine 64/64, rotation 64/64, `block_misrouted=0`, `control_errors=0`); forced widths 16/32/64 all skipped because the adapter advertises only 4 lanes. - `bvh_wave64_hardware`: **skip (77)** — GTX 1660 SUPER reports 32..32 lanes. - `wave_shuffle_hardware`: **pass** — native 32 and forced `[WaveSize(32)]` both 64/64 correct for affine and rotation, `block_misrouted=0`, `control_errors=0`; forced 16/64 skipped on capability. Conclusion: the lane-block misroute does **not** reproduce on in-box WARP 10.0.26100.9818 — the forced-width scenario is unreachable there (4-lane range), and native-width reads are all correct. The failure stays specific to app-local WARP 1.0.22 with the Agility SDK, which advertises 4..128 lanes. No runtime override exists in the fixture to force the in-box WARP above its reported range, so this is a capability skip, not a positive correctness proof at widths > 8 for the in-box build.
triggered02 commented 2026-11-24 06:49:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:34:55Z.


Recorded in #1020 (one paragraph after the open-question paragraph in docs/experiments.md).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114649662 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7114649662). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:34:55Z. --- Recorded in #1020 (one paragraph after the open-question paragraph in docs/experiments.md).
triggered02 commented 2026-11-26 04:04:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-26T03:32:28Z.


Closing this as an external WARP defect that is already recorded, rather than an open item on our side. Evidence accumulated on the issue:

  • App-local WARP 1.0.22 (SM 6.8, Agility SDK 1.620.2): vh_wave64_warp fails at field 25 � WaveReadLaneAt(v, (nativeLane*7+3) % width) with all 64 lanes active � i.e. a non-uniform lane read misrouted across lane blocks when the width is forced above 8.
  • In-box WARP 10.0.26100.9818 (Microsoft Basic Render Driver): reports
    ative_lane_range=4..4, so the 64-lane fixture cannot run and the test correctly skips with 77 (vh_wave64_warp and wave_shuffle_warp). Nothing to compare on this host.
  • Recorded: #1020 added the paragraph to docs/experiments.md, so the observation survives this issue.

So there is no project change that fixes it: the failure is inside a specific WARP build's forced-width lane routing, and the harness behaves correctly on both WARP versions (skip where the width is unavailable, fail where the defect is present). Closing as external/recorded. If a later WARP or Agility SDK still reproduces it, reopen with the adapter string, WARP version and the same ctest -R '^bvh_wave64_warp$' -V line and it becomes actionable again.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181808578 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/145#issuecomment-7181808578). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-26T03:32:28Z. --- Closing this as an external WARP defect that is already recorded, rather than an open item on our side. Evidence accumulated on the issue: - **App-local WARP 1.0.22 (SM 6.8, Agility SDK 1.620.2)**: vh_wave64_warp fails at field 25 � WaveReadLaneAt(v, (nativeLane*7+3) % width) with all 64 lanes active � i.e. a non-uniform lane read misrouted across lane blocks when the width is forced above 8. - **In-box WARP 10.0.26100.9818 (Microsoft Basic Render Driver)**: reports ative_lane_range=4..4, so the 64-lane fixture cannot run and the test correctly skips with 77 (vh_wave64_warp **and** wave_shuffle_warp). Nothing to compare on this host. - **Recorded**: #1020 added the paragraph to docs/experiments.md, so the observation survives this issue. So there is no project change that fixes it: the failure is inside a specific WARP build's forced-width lane routing, and the harness behaves correctly on both WARP versions (skip where the width is unavailable, fail where the defect is present). Closing as external/recorded. If a later WARP or Agility SDK still reproduces it, reopen with the adapter string, WARP version and the same ctest -R '^bvh_wave64_warp$' -V line and it becomes actionable again.
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#144
No description provided.