Tests: add split_wave64_spin_exchange_updates_block_tails regression test #1918

Open
Decodere wants to merge 1 commit from upstream-pr/1928 into main
Decodere commented 2026-11-24 23:33:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-24T23:33:40Z.


What is in it

Part of #1889. Part of #1269.

Follow-up rebase of #1928 onto main (50a9fdef, resolving the EOF lower_dxil::tests conflict with #2074): both self.tails[self.cur] = self.lw.cur(); sync lines in DxilIr::ballot and DxilIr::read_lane landed in #2203, so this PR now contains only the standalone split_wave64_spin_exchange_updates_block_tails regression test in crates/xcl/src/gpu/recomp/lower_dxil.rs (+81/-0, zero runtime changes):

  • Compiles and validates three [128, 1, 1] split-wave64 (Partner::Spin) compute shaders through lower_dxil::compute_split:
    1. Whole-wave ballot (s_bcnt1_i32_b64) in a uniform branch arm feeding a join PHI.
    2. Cross-half v_readlane_b32 (lane 37) in a uniform branch arm feeding a join PHI.
    3. v_readfirstlane_b32 (ballot + read_lane) inside a uniform loop feeding back-edge PHIs.
  • When a GPU is available, dispatches all three shaders and verifies exact output parity against run_compute_waves.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 4060 (8 GB, 32-lane waves, driver 621.14), Intel Core i5-11400F, 32 GB RAM, Windows 11 Home build 26200, Rust 1.100.0, DXC 1.9.2609.5, release build.
  • Targeted regression test (cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests::split_wave64_spin_exchange_updates_block_tails -- --exact --nocapture): 1 passed, 0 failed, 0 ignored (0.26 s, 0 skipped, full DXIL validation + RTX 4060 GPU dispatch parity against run_compute_waves).
  • Full lower_dxil module suite (cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests -- --test-threads=4 --nocapture --skip a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier): 21 passed, 0 failed, 0 ignored (0.54 s, 17 runtime SKIPPED lines on RTX 4060: 14 no wave64 + 3 wave32 per-lane refused; a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier is skipped because it currently fails on unmodified origin/main 50a9fdef CI run 45656870453).
  • cargo build --release --bin xcl: passed.

Regression run

Baseline (origin/main 50a9fdef81cb796b8756a31defb0648301d002ce):

xcl-smoke v1
commit: 50a9fdef81cb796b8756a31defb0648301d002ce
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1544 (PresentX 1544)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13995 MB

PR head (971322597fd998d65e945a01b6881e5a099e4dc4):

xcl-smoke v1
commit: 971322597fd998d65e945a01b6881e5a099e4dc4
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14017 MB

Not tested

  • AMD and Intel GPUs, native wave64 hardware, and the 17 runtime-skipped lower_dxil subcases on this wave32-only RTX 4060 (the 3 new split-wave64 Partner::Spin cases themselves all ran on the RTX 4060).
  • Full workspace suite on 97132259 (diff is test-only inside #[cfg(test)] mod tests of lower_dxil.rs with zero runtime code changes; targeted lower_dxil::tests 21/0 and paired 60 s smoke ran on 97132259).

AI use

Rebased onto main, verified, and updated with Google Antigravity (Gemini 4 Neon). All targeted GPU tests and paired 60 s RTX 4060 smoke runs were executed locally.

<!-- greyfinch-sync:ivall/xcl:issue:5482148361 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-24T23:33:40Z. --- **What is in it** Part of #1889. Part of #1269. Follow-up rebase of #1928 onto `main` (`50a9fdef`, resolving the EOF `lower_dxil::tests` conflict with #2074): both `self.tails[self.cur] = self.lw.cur();` sync lines in `DxilIr::ballot` and `DxilIr::read_lane` landed in #2203, so this PR now contains **only** the standalone `split_wave64_spin_exchange_updates_block_tails` regression test in `crates/xcl/src/gpu/recomp/lower_dxil.rs` (`+81/-0`, zero runtime changes): - Compiles and validates three `[128, 1, 1]` split-wave64 (`Partner::Spin`) compute shaders through `lower_dxil::compute_split`: 1. Whole-wave ballot (`s_bcnt1_i32_b64`) in a uniform branch arm feeding a join PHI. 2. Cross-half `v_readlane_b32` (lane 37) in a uniform branch arm feeding a join PHI. 3. `v_readfirstlane_b32` (ballot + read_lane) inside a uniform loop feeding back-edge PHIs. - When a GPU is available, dispatches all three shaders and verifies exact output parity against `run_compute_waves`. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 4060 (8 GB, 32-lane waves, driver 621.14), Intel Core i5-11400F, 32 GB RAM, Windows 11 Home build 26200, Rust 1.100.0, DXC `1.9.2609.5`, release build. - Targeted regression test (`cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests::split_wave64_spin_exchange_updates_block_tails -- --exact --nocapture`): **1 passed, 0 failed, 0 ignored** (0.26 s, `0` skipped, full DXIL validation + RTX 4060 GPU dispatch parity against `run_compute_waves`). - Full `lower_dxil` module suite (`cargo test --release -p xcl --lib gpu::recomp::lower_dxil::tests -- --test-threads=4 --nocapture --skip a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`): **21 passed, 0 failed, 0 ignored** (0.54 s, `17` runtime `SKIPPED` lines on RTX 4060: `14` `no wave64` + `3` wave32 per-lane `refused`; `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier` is skipped because it currently fails on unmodified `origin/main` `50a9fdef` CI run `45656870453`). - `cargo build --release --bin xcl`: passed. **Regression run** Baseline (`origin/main` `50a9fdef81cb796b8756a31defb0648301d002ce`): ``` xcl-smoke v1 commit: 50a9fdef81cb796b8756a31defb0648301d002ce gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1544 (PresentX 1544) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13995 MB ``` PR head (`971322597fd998d65e945a01b6881e5a099e4dc4`): ``` xcl-smoke v1 commit: 971322597fd998d65e945a01b6881e5a099e4dc4 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1606 (PresentX 1606) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14017 MB ``` **Not tested** - AMD and Intel GPUs, native wave64 hardware, and the 17 runtime-skipped `lower_dxil` subcases on this wave32-only RTX 4060 (the 3 new split-wave64 `Partner::Spin` cases themselves all ran on the RTX 4060). - Full workspace suite on `97132259` (diff is test-only inside `#[cfg(test)] mod tests` of `lower_dxil.rs` with zero runtime code changes; targeted `lower_dxil::tests` 21/0 and paired 60 s smoke ran on `97132259`). **AI use** Rebased onto `main`, verified, and updated with Google Antigravity (Gemini 4 Neon). All targeted GPU tests and paired 60 s RTX 4060 smoke runs were executed locally.
WebIdentity1 commented 2026-11-25 00:08:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WebIdentity1 on 2026-11-24T23:38:44Z.


Independent Ampere check of exact head 79a7e326cc1b1419603f9a14e22dc7331f6287fd: the new regression passes on RTX 3090, driver 591.74, Ryzen 7 7800X3D, Windows 10 19045, Rust 1.98.1 MSVC, DXC 1.8.2502.11, debug.

cargo test --locked -p xcl --lib split_wave64_spin_exchange_updates_block_tails -- --test-threads=1 --show-output, with XCL_ADAPTER=3090:

  • Head with only the two production changes reverted (same test retained): 0 passed / 1 failed / 0 ignored. ballot diamond fails DXIL validation with PHI node entries do not match predecessors!, before GPU dispatch.
  • Unmodified head: 1 passed / 0 failed / 0 ignored, zero skips. All three cases execute: ballot diamond, cross-half readlane diamond, and readfirstlane loop. Their 256 output words per case match the existing CPU model.

Both builds recompiled XCL. All 310 source hashes matched before/after each run; the pair differs only in those block-tail updates. This adds an older Ampere/driver check to the author's Ada result.

Not tested: full workspace suite for this head, retail smoke/gameplay, native wave64, or performance. No implementation change is proposed.

AI use: Codex with GPT-6 Astra inspected the fix and test, ran the comparison, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7147635539 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7147635539). Originally posted by [WebIdentity1](https://github.com/WebIdentity1) on 2026-11-24T23:38:44Z. --- Independent Ampere check of exact head `79a7e326cc1b1419603f9a14e22dc7331f6287fd`: the new regression passes on **RTX 3090, driver 591.74**, Ryzen 7 7800X3D, Windows 10 19045, Rust 1.98.1 MSVC, DXC 1.8.2502.11, debug. `cargo test --locked -p xcl --lib split_wave64_spin_exchange_updates_block_tails -- --test-threads=1 --show-output`, with `XCL_ADAPTER=3090`: - Head with only the two production changes reverted (same test retained): **0 passed / 1 failed / 0 ignored**. `ballot diamond` fails DXIL validation with `PHI node entries do not match predecessors!`, before GPU dispatch. - Unmodified head: **1 passed / 0 failed / 0 ignored**, zero skips. All three cases execute: ballot diamond, cross-half readlane diamond, and readfirstlane loop. Their 256 output words per case match the existing CPU model. Both builds recompiled XCL. All 310 source hashes matched before/after each run; the pair differs only in those block-tail updates. This adds an older Ampere/driver check to the author's Ada result. **Not tested:** full workspace suite for this head, retail smoke/gameplay, native wave64, or performance. No implementation change is proposed. **AI use:** Codex with GPT-6 Astra inspected the fix and test, ran the comparison, and drafted this report.
upipibi commented 2026-11-25 00:09:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T23:42:27Z.


NVIDIA run: RTX 3070 8 GB (32-lane waves, split wave64), driver 616.56, Windows 11, debug, 79a7e32 merged onto main 20cf130 (clean).

  • split_wave64_spin_exchange_updates_block_tails: passes.
  • XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu_ --skip gpu_sparse_vram --test-threads=4: 110 passed, 0 failed, 1 ignored, the same as main on this machine. The sparse test was skipped because of #1727.

AI-assisted (Claude Code). Synthetic tests only.

<!-- greyfinch-sync:ivall/xcl:comment:7147704782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7147704782). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T23:42:27Z. --- NVIDIA run: RTX 3070 8 GB (32-lane waves, split wave64), driver 616.56, Windows 11, debug, `79a7e32` merged onto `main` `20cf130` (clean). - `split_wave64_spin_exchange_updates_block_tails`: passes. - `XCL_DIRECT_DXIL=1 cargo test -p xcl --lib -- gpu_ --skip gpu_sparse_vram --test-threads=4`: 110 passed, 0 failed, 1 ignored, the same as `main` on this machine. The sparse test was skipped because of #1727. AI-assisted (Claude Code). Synthetic tests only.
upipibi commented 2026-11-25 01:10:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T00:34:23Z.


Re-checked 87adc4b on the RTX 3070 (driver 616.56, Windows 11, debug). split_wave64_spin_exchange_updates_block_tails passes, and the gpu_ tests with XCL_DIRECT_DXIL=1 give 111 passed, the same as main.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ivall/xcl:comment:7148651458 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7148651458). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T00:34:23Z. --- Re-checked `87adc4b` on the RTX 3070 (driver 616.56, Windows 11, debug). `split_wave64_spin_exchange_updates_block_tails` passes, and the `gpu_` tests with `XCL_DIRECT_DXIL=1` give 111 passed, the same as `main`. AI-assisted (Claude Code).
raylitebull commented 2026-11-25 01:11:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:08:16Z.


Diff audit passed (lower_dxil.rs self.tails[self.cur] = self.lw.cur() after split-wave64 ballot and read_lane_uniform, plus the 3 regression cases), Build and test + PR description are green on 87adc4b, and NVIDIA (RTX 3090, RTX 3070) verified it.

Remaining before merge: one independent AMD GPU pass on 87adc4b.

<!-- greyfinch-sync:ivall/xcl:comment:7149243155 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7149243155). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T01:08:16Z. --- Diff audit passed (`lower_dxil.rs` `self.tails[self.cur] = self.lw.cur()` after split-wave64 `ballot` and `read_lane_uniform`, plus the 3 regression cases), `Build and test` + `PR description` are green on `87adc4b`, and NVIDIA (RTX 3090, RTX 3070) verified it. **Remaining before merge:** one independent **AMD** GPU pass on `87adc4b`.
Decodere commented 2026-11-25 02:09:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T02:03:27Z.


Rebased cleanly onto main (3da2abb8) at 3990660a resolving only the crates/xcl/src/gpu/recomp/lower_dxil.rs end-of-file test conflict from #1865; the runtime fix in DxilIr::ballot / DxilIr::read_lane is unchanged.

Re-verified locally on RTX 4060 (release): gpu::recomp::lower_dxil (19 passed, 0 failed), full workspace (1,112 passed, 0 failed, 46 ignored), and paired 60 s scripts/smoke.ps1 (1,582 -> 1,526 frames, 0 crashes/removals). Ready for CI and the remaining independent AMD GPU check.

AI use: Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7150266016 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7150266016). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T02:03:27Z. --- Rebased cleanly onto `main` (`3da2abb8`) at `3990660a` resolving only the `crates/xcl/src/gpu/recomp/lower_dxil.rs` end-of-file test conflict from `#1865`; the runtime fix in `DxilIr::ballot` / `DxilIr::read_lane` is unchanged. Re-verified locally on RTX 4060 (release): `gpu::recomp::lower_dxil` (`19 passed, 0 failed`), full workspace (`1,112 passed, 0 failed, 46 ignored`), and paired 60 s `scripts/smoke.ps1` (`1,582 -> 1,526` frames, `0` crashes/removals). Ready for CI and the remaining independent AMD GPU check. AI use: Google Antigravity (Gemini 4 Neon).
gefydev commented 2026-11-25 02:18:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gefydev on 2026-11-25T02:18:13Z.

Review: COMMENTED


Review of 87adc4b from the per-lane form's side (#1745). I read it against main 3da2abb; I did not run it.

The fix is right. Lw::ballot and Lw::read_lane_uniform go through spin_exchange when a group has more than one console wave (Partner::Spin), which ends the current block, and DxilIr was still wiring successor phis to the block before the exchange. foreign already resyncs tails[cur] after inst_guarded for the same reason; these two were missed when the split exchanges were routed through Lw.

I checked the other DxilIr paths that reach Lw in the split form: read_lane_half (wave_read_lane_at on l & 31), ballot_half (wave_ballot), the loads and stores, and compute_ids emit no blocks. So after this change, every place that can split a block resyncs its tail.

Two notes:

  1. Optional, more robust: br / br_if could set self.tails[self.cur] = self.lw.cur() before they terminate. The terminator is always in lw.cur(), so this one line would keep the tails right for any future Ir method that makes blocks, and it would replace the three separate syncs. Fine to leave as it is if you prefer the change minimal.
  2. The PR conflicts with main now, in lower_dxil.rs, probably the end of the test module after the recent per-lane merges (#2014, #1865). It needs a rebase.

Review written with Claude Code (Claude Opus 5.5); I checked each point against the code.

<!-- greyfinch-sync:ivall/xcl:review:6050709674 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#pullrequestreview-6050709674). Originally posted by [gefydev](https://github.com/gefydev) on 2026-11-25T02:18:13Z. **Review:** COMMENTED --- Review of `87adc4b` from the per-lane form's side (#1745). I read it against `main` `3da2abb`; I did not run it. The fix is right. `Lw::ballot` and `Lw::read_lane_uniform` go through `spin_exchange` when a group has more than one console wave (`Partner::Spin`), which ends the current block, and `DxilIr` was still wiring successor phis to the block before the exchange. `foreign` already resyncs `tails[cur]` after `inst_guarded` for the same reason; these two were missed when the split exchanges were routed through `Lw`. I checked the other `DxilIr` paths that reach `Lw` in the split form: `read_lane_half` (`wave_read_lane_at` on `l & 31`), `ballot_half` (`wave_ballot`), the loads and stores, and `compute_ids` emit no blocks. So after this change, every place that can split a block resyncs its tail. Two notes: 1. **Optional, more robust:** `br` / `br_if` could set `self.tails[self.cur] = self.lw.cur()` before they terminate. The terminator is always in `lw.cur()`, so this one line would keep the tails right for any future `Ir` method that makes blocks, and it would replace the three separate syncs. Fine to leave as it is if you prefer the change minimal. 2. **The PR conflicts with `main` now**, in `lower_dxil.rs`, probably the end of the test module after the recent per-lane merges (#2014, #1865). It needs a rebase. Review written with Claude Code (Claude Opus 5.5); I checked each point against the code.
Decodere commented 2026-11-25 03:05:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T02:20:53Z.


@gefydev Thank you for auditing every DxilIr path against the per-lane form (#1745)! Good news: head 3990660a is already rebased cleanly onto main (3da2abb8, resolving the lower_dxil.rs EOF test conflict from #1865), MERGEABLE, and green on CI. We'll keep the minimal explicit self.tails[self.cur] = self.lw.cur() syncs in ballot and read_lane (matching foreign) to keep the fix tight and focused.

<!-- greyfinch-sync:ivall/xcl:comment:7150606518 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7150606518). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T02:20:53Z. --- @gefydev Thank you for auditing every `DxilIr` path against the per-lane form (`#1745`)! Good news: head `3990660a` is already rebased cleanly onto `main` (`3da2abb8`, resolving the `lower_dxil.rs` EOF test conflict from `#1865`), `MERGEABLE`, and green on CI. We'll keep the minimal explicit `self.tails[self.cur] = self.lw.cur()` syncs in `ballot` and `read_lane` (matching `foreign`) to keep the fix tight and focused.
gefydev commented 2026-11-25 03:05:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gefydev on 2026-11-25T02:21:29Z.


@Decodere thank you: noted that 3990660a is rebased onto main (3da2abb8), mergeable and green on CI, and that you keep the explicit tail syncs in ballot and read_lane, matching foreign. That is fine with us; the br / br_if resync was only an optional suggestion. The merge is for the maintainer.

AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.

<!-- greyfinch-sync:ivall/xcl:comment:7150619802 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7150619802). Originally posted by [gefydev](https://github.com/gefydev) on 2026-11-25T02:21:29Z. --- @Decodere thank you: noted that `3990660a` is rebased onto `main` (`3da2abb8`), mergeable and green on CI, and that you keep the explicit tail syncs in `ballot` and `read_lane`, matching `foreign`. That is fine with us; the `br` / `br_if` resync was only an optional suggestion. The merge is for the maintainer. AI use: Claude Code (Claude Opus 5.5) wrote this reply for @gefydev.
DavidM1911 commented 2026-11-25 03:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:33:51Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7150884600 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7150884600). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T02:33:51Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
JJAutoCompare commented 2026-11-25 03:05:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T02:53:58Z.


Tested

Independent Intel Arc A770 compatibility check for XCL PR #1928 at 3990660af24ecbd02d7ece38ee946a0626dee211. The PR was open at this commit before and after the run. The detached checkout was clean both times.

  • DXIL validation: 3/3 passed. The checked-in debug test validates each shader with DXC before the GPU capability check. The run loaded DXC and DXIL 1.9.2609.5 from the explicit toolchain directory and reported zero validation skips.
  • GPU parity: 3/3 passed on the A770 using split wave64 on hardware wave32. The whole-wave ballot diamond, cross-half lane-37 readlane diamond, and readfirstlane loop each dispatched two 128-thread groups and matched the CPU reference on all 256 output words per case. The test also checked three CPU reference spot values per case.
  • Libtest: 1 passed, 0 failed, 0 ignored, 0 skipped, 1,088 filtered out. Libtest finished in 0.34 s. The wrapper acquired and released the shared A770 lock and exited 0. PowerShell formatted the DXC version line from stderr as NativeCommandError in the captured log.

Windows 11 Enterprise Evaluation 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), Cargo 1.100.0, DXC/DXIL 1.9.2609.5 (01b62ad4), unoptimized test profile with debug assertions on and debuginfo off.

Process environment for the build and run

XCL_ADAPTER=A770
XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64
CARGO_BUILD_JOBS=2
CARGO_INCREMENTAL=0
CARGO_PROFILE_DEV_DEBUG=0
CARGO_PROFILE_TEST_DEBUG=0
CARGO_TARGET_DIR=L:/XclTooling/pr1947-1831ec4-t3-97236edf/target
TEMP=L:/XclTooling/pr1928
TMP=L:/XclTooling/pr1928

Prebuild outside the Arc lock and graphics execution inside it

& "$env:USERPROFILE/.cargo/bin/cargo.exe" test --locked -p xcl --lib --no-run -j 2 --message-format=json-render-diagnostics > L:/XclTooling/pr1928/build-3990660.log

$pr1928Command = @'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test {
    $pr1928Exe = Join-Path $env:CARGO_TARGET_DIR 'debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe'
    if ((Get-FileHash -LiteralPath $pr1928Exe).Hash -ne 'E321749EF65B804C74EE37850BB786D14E1B169E5D431EC6CAD74F4D3945BB6C') { throw 'Test binary changed since the prebuild' }
    & $pr1928Exe 'gpu::recomp::lower_dxil::tests::split_wave64_spin_exchange_updates_block_tails' --exact --test-threads=1 --nocapture
}
'@
& powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command $pr1928Command 2>&1 | Tee-Object -FilePath L:/XclTooling/pr1928/gpu-3990660.log

The temporary RemoteSigned policy applied only to the child PowerShell process running the local lock wrapper.

Not tested

Full workspace suite, comparison against main or the pre-fix revision, retail-title smoke or gameplay, native wave64, other adapters, release profile, and performance.

AI use

T3 Code / Codex (gpt-6.2-sol) verified the exact PR head, ran the checked-in test, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7151331579 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7151331579). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T02:53:58Z. --- **Tested** Independent Intel Arc A770 compatibility check for [XCL PR #1928](https://github.com/xcl-dev/xcl/pull/1928) at `3990660af24ecbd02d7ece38ee946a0626dee211`. The PR was open at this commit before and after the run. The detached checkout was clean both times. - **DXIL validation:** 3/3 passed. The checked-in debug test validates each shader with DXC before the GPU capability check. The run loaded DXC and DXIL 1.9.2609.5 from the explicit toolchain directory and reported zero validation skips. - **GPU parity:** 3/3 passed on the A770 using split wave64 on hardware wave32. The whole-wave ballot diamond, cross-half lane-37 readlane diamond, and readfirstlane loop each dispatched two 128-thread groups and matched the CPU reference on all 256 output words per case. The test also checked three CPU reference spot values per case. - **Libtest:** 1 passed, 0 failed, 0 ignored, 0 skipped, 1,088 filtered out. Libtest finished in 0.34 s. The wrapper acquired and released the shared A770 lock and exited 0. PowerShell formatted the DXC version line from stderr as `NativeCommandError` in the captured log. Windows 11 Enterprise Evaluation 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 (`0ef1bc386`, `x86_64-pc-windows-msvc`), Cargo 1.100.0, DXC/DXIL 1.9.2609.5 (`01b62ad4`), unoptimized test profile with debug assertions on and debuginfo off. Process environment for the build and run ```text XCL_ADAPTER=A770 XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64 CARGO_BUILD_JOBS=2 CARGO_INCREMENTAL=0 CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0 CARGO_TARGET_DIR=L:/XclTooling/pr1947-1831ec4-t3-97236edf/target TEMP=L:/XclTooling/pr1928 TMP=L:/XclTooling/pr1928 ``` Prebuild outside the Arc lock and graphics execution inside it ```powershell & "$env:USERPROFILE/.cargo/bin/cargo.exe" test --locked -p xcl --lib --no-run -j 2 --message-format=json-render-diagnostics > L:/XclTooling/pr1928/build-3990660.log $pr1928Command = @' & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { $pr1928Exe = Join-Path $env:CARGO_TARGET_DIR 'debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' if ((Get-FileHash -LiteralPath $pr1928Exe).Hash -ne 'E321749EF65B804C74EE37850BB786D14E1B169E5D431EC6CAD74F4D3945BB6C') { throw 'Test binary changed since the prebuild' } & $pr1928Exe 'gpu::recomp::lower_dxil::tests::split_wave64_spin_exchange_updates_block_tails' --exact --test-threads=1 --nocapture } '@ & powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command $pr1928Command 2>&1 | Tee-Object -FilePath L:/XclTooling/pr1928/gpu-3990660.log ``` The temporary `RemoteSigned` policy applied only to the child PowerShell process running the local lock wrapper. **Not tested** Full workspace suite, comparison against `main` or the pre-fix revision, retail-title smoke or gameplay, native wave64, other adapters, release profile, and performance. **AI use** T3 Code / Codex (gpt-6.2-sol) verified the exact PR head, ran the checked-in test, and prepared this report.
luckyteagirl commented 2026-11-25 05:08:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T04:30:39Z.


RX 6800M Direct DXIL GPU verification for PR #1928 at 3990660af24ecbd02d7ece38ee946a0626dee211

Setup: Windows 11 build 26200, AMD Radeon RX 6800M (driver 30.0.13002.13003), Ryzen 9 5980HX, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. Clean exact-head checkout; XCL_ADAPTER=6800M, XCL_REQUIRE_GPU=1, XCL_DIRECT_DXIL=1.

Tested

  • cargo test --locked -p xcl --lib -j 2 split_wave64_spin_exchange_updates_block_tails -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored, no SKIPPED. The test compiles three [128, 1, 1] split-wave64 cases, dispatches each on the GPU, and compares all output words with the CPU model.
  • Same command filtered to gpu::recomp::lower_dxil: 19 passed, 0 failed, 0 ignored. Six per-lane f16/conversion subcases printed SKIPPED for unsupported #1426 opcodes; those are not GPU coverage.
  • cargo build --locked --workspace -j 2: passed.

Not tested: Full workspace suite, paired retail-title smoke, other GPUs, or a title's live Direct DXIL per-lane path. This is focused AMD validation of the regression, not a claim that the full PR is ready to merge. No game data was used.

AI assistance: OpenAI Codex (GPT-6) ran the commands, extracted counts and skips from the logs, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152908117 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7152908117). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T04:30:39Z. --- ### RX 6800M Direct DXIL GPU verification for PR #1928 at `3990660af24ecbd02d7ece38ee946a0626dee211` **Setup:** Windows 11 build 26200, AMD Radeon RX 6800M (driver `30.0.13002.13003`), Ryzen 9 5980HX, Rust `1.99.0` MSVC, DXC/DXIL `1.9.2609.5`. Clean exact-head checkout; `XCL_ADAPTER=6800M`, `XCL_REQUIRE_GPU=1`, `XCL_DIRECT_DXIL=1`. **Tested** - `cargo test --locked -p xcl --lib -j 2 split_wave64_spin_exchange_updates_block_tails -- --test-threads=1 --show-output`: **1 passed, 0 failed, 0 ignored**, no `SKIPPED`. The test compiles three `[128, 1, 1]` split-wave64 cases, dispatches each on the GPU, and compares all output words with the CPU model. - Same command filtered to `gpu::recomp::lower_dxil`: **19 passed, 0 failed, 0 ignored**. Six per-lane f16/conversion subcases printed `SKIPPED` for unsupported `#1426` opcodes; those are not GPU coverage. - `cargo build --locked --workspace -j 2`: passed. **Not tested:** Full workspace suite, paired retail-title smoke, other GPUs, or a title's live Direct DXIL per-lane path. This is focused AMD validation of the regression, not a claim that the full PR is ready to merge. No game data was used. AI assistance: OpenAI Codex (GPT-6) ran the commands, extracted counts and skips from the logs, and drafted this report.
raylitebull commented 2026-11-25 11:09:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:46:56Z.


Note after recent merges on main: both self.tails[self.cur] = self.lw.cur(); sync lines in DxilIr::ballot and DxilIr::read_lane (crates/xcl/src/gpu/recomp/lower_dxil.rs) landed as part of #2203.

If you'd still like to land split_wave64_spin_exchange_updates_block_tails as a standalone regression test, rebasing #1928 onto main to keep only the test will make it merge-ready cleanly (or it can be closed if not needed separately).

<!-- greyfinch-sync:ivall/xcl:comment:7160165337 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7160165337). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:46:56Z. --- Note after recent merges on `main`: both `self.tails[self.cur] = self.lw.cur();` sync lines in `DxilIr::ballot` and `DxilIr::read_lane` (`crates/xcl/src/gpu/recomp/lower_dxil.rs`) landed as part of #2203. If you'd still like to land `split_wave64_spin_exchange_updates_block_tails` as a standalone regression test, rebasing `#1928` onto `main` to keep only the test will make it merge-ready cleanly (or it can be closed if not needed separately).
upstream-sync changed title from [PR #1928] Recompiler: update per-lane DXIL block tail after split exchanges to [PR #1928] Tests: add split_wave64_spin_exchange_updates_block_tails regression test 2026-11-25 12:05:17 +00:00
Decodere commented 2026-11-25 12:06:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T11:45:46Z.


@raylitebull Thanks for the heads-up — rebased #1928 onto main (19b8bd51), dropping the two runtime sync lines that landed via #2203 and keeping only the standalone split_wave64_spin_exchange_updates_block_tails regression test (+81/-0, zero runtime diff). Re-verified on RTX 4060 (1/0, lower_dxil::tests 21/0, paired 60 s smoke 1548 -> 1521, 0 removals/crashes).

AI use: rebased, tested, and drafted with Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7161466150 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7161466150). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T11:45:46Z. --- @raylitebull Thanks for the heads-up — rebased #1928 onto `main` (`19b8bd51`), dropping the two runtime sync lines that landed via #2203 and keeping only the standalone `split_wave64_spin_exchange_updates_block_tails` regression test (`+81/-0`, zero runtime diff). Re-verified on RTX 4060 (`1/0`, `lower_dxil::tests` `21/0`, paired 60 s smoke `1548 -> 1521`, `0` removals/crashes). _AI use: rebased, tested, and drafted with Google Antigravity (Gemini 4 Neon)._
Decodere commented 2026-11-25 18:04:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-25T17:14:06Z.


Rebased onto 50a9fdef (97132259, resolving the lower_dxil::tests EOF conflict with #2074). Re-verified split_wave64_spin_exchange_updates_block_tails (1/0), lower_dxil::tests excluding #2074 (21/0), and paired 60 s RTX 4060 smoke (1544 -> 1606, 0 device removals/crashes).

<!-- greyfinch-sync:ivall/xcl:comment:7169204294 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7169204294). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-25T17:14:06Z. --- Rebased onto `50a9fdef` (`97132259`, resolving the `lower_dxil::tests` EOF conflict with `#2074`). Re-verified `split_wave64_spin_exchange_updates_block_tails` (`1/0`), `lower_dxil::tests` excluding `#2074` (`21/0`), and paired 60 s RTX 4060 smoke (`1544 -> 1606`, `0` device removals/crashes).
DavidM1911 commented 2026-11-26 07:03:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:41:21Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7184682247 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7184682247). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T06:41:21Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Foniass commented 2026-12-01 07:06:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:06:17Z.


Triage (#1607) – head 9713225

Test-only follow-up for #1889. The fix it covers (self.tails[self.cur] = self.lw.cur() in DxilIr::ballot / read_lane) is on main from #2203 (283068c8). Main's tests from that commit (split_wave64_wave_branches_on_the_gpu, split_wave64_dead_scc_skips_exchange_barrier) test wave branches and the SCC elision. None of them is a ballot / readlane / readfirstlane result that feeds a join or loop phi, which is what this test covers. No other open PR adds this test.
One gap: without a GPU the test only calls compute_split and returns. Main's neighbouring tests call validate::validate when validator_supported(). Doing the same here would catch the malformed phi predecessors on a machine with no GPU.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303649708 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1928#issuecomment-7303649708). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:06:17Z. --- **Triage (#1607)** – head 9713225 Test-only follow-up for #1889. The fix it covers (`self.tails[self.cur] = self.lw.cur()` in `DxilIr::ballot` / `read_lane`) is on main from #2203 (283068c8). Main's tests from that commit (`split_wave64_wave_branches_on_the_gpu`, `split_wave64_dead_scc_skips_exchange_barrier`) test wave branches and the SCC elision. None of them is a ballot / readlane / readfirstlane result that feeds a join or loop phi, which is what this test covers. No other open PR adds this test. One gap: without a GPU the test only calls `compute_split` and returns. Main's neighbouring tests call `validate::validate` when `validator_supported()`. Doing the same here would catch the malformed phi predecessors on a machine with no GPU. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1928:upstream-pr/1928'
git switch 'upstream-pr/1928'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1928'
git switch 'upstream-pr/1928'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1928'
git switch 'upstream-pr/1928'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1928'
git switch 'main'
git merge --squash 'upstream-pr/1928'
git switch 'main'
git merge --ff-only 'upstream-pr/1928'
git switch 'main'
git merge 'upstream-pr/1928'
git push origin 'main'
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
xcl-dev/xcl!1918
No description provided.