Shaders: test first-active-lane isolation in wave32 #846

Open
thatirishguyyy wants to merge 1 commit from upstream-pr/852 into main
thatirishguyyy commented 2026-11-24 06:48:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thatirishguyyy on 2026-11-24T06:48:58Z.


What is in it

  • Extend the compute regression to check v_readfirstlane with different EXEC masks and lane values in the two halves of one hardware wave.
  • Check vertex and pixel code generation, then run synthetic draws and verify the first-active-lane values in render-target readback. The draw tests report a skip for upper-half coverage if the driver runs only 32-lane waves for that shader stage.
  • Related to #573, which covers detecting the wave size from the shader header. These tests exercise lane isolation after the wave size has been selected. VIctory PR #599 prompted the check.

Tested

  • Windows, Radeon RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 7800X3D, Rust 1.100.0, release build at c8b26b4 on beaa245.
  • cargo test --workspace --release --locked --offline -- --test-threads=4 — 716 passed, 0 failed, 41 ignored. Both graphics draws exercised both halves, and no GPU tests reported a skip.
  • As a negative control, I temporarily removed the half offset from the generated lane read. Both graphics draws returned 5/64 instead of 37/64 for the upper half and failed as expected.

Not tested

  • Other GPU vendors and drivers. Coverage uses synthetic shaders and draws.

AI use

  • Codex wrote and ran the tests
<!-- greyfinch-sync:ivall/xcl:issue:5467503958 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852). Originally posted by [thatirishguyyy](https://github.com/thatirishguyyy) on 2026-11-24T06:48:58Z. --- **What is in it** - Extend the compute regression to check `v_readfirstlane` with different EXEC masks and lane values in the two halves of one hardware wave. - Check vertex and pixel code generation, then run synthetic draws and verify the first-active-lane values in render-target readback. The draw tests report a skip for upper-half coverage if the driver runs only 32-lane waves for that shader stage. - Related to #573, which covers detecting the wave size from the shader header. These tests exercise lane isolation after the wave size has been selected. [VIctory PR #599](https://github.com/Marvisak/VIctory/pull/599) prompted the check. **Tested** - Windows, Radeon RX 9070 XT (driver `32.0.32029.2010`), Ryzen 7 7800X3D, Rust `1.100.0`, release build at `c8b26b4` on `beaa245`. - `cargo test --workspace --release --locked --offline -- --test-threads=4` — 716 passed, 0 failed, 41 ignored. Both graphics draws exercised both halves, and no GPU tests reported a skip. - As a negative control, I temporarily removed the half offset from the generated lane read. Both graphics draws returned `5/64` instead of `37/64` for the upper half and failed as expected. **Not tested** - Other GPU vendors and drivers. Coverage uses synthetic shaders and draws. **AI use** - Codex wrote and ran the tests
milas6669 commented 2026-11-24 07:06:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T07:02:34Z.


Test report on c8b26b4 (PR head; its base is main beaa245, which is still main; no merge conflict).

Tested

  • NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0 x86_64-pc-windows-msvc, debug
  • cargo test --workspace --no-fail-fast -- --test-threads=4; the same command on main beaa245 (this PR's base): 713 passed, 0 failed, 41 ignored
  • on this head: 713 passed, 3 failed, 41 ignored. The 3 failures are the D3D12.X tests placed_title_textures_share_vram_and_preserve_pixels (the cubemap extra_pages must be reused at same va assert), transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory (both PoisonError after the first panic). They are the flaky tests of #718 / #447 and fail on main in some of my runs (on this exact main run they passed), so they are not from this PR.
  • the 3 new tests are gpu_pixel_wave32_first_lane_uses_its_own_half, gpu_vertex_wave32_first_lane_uses_its_own_half and graphics_wave32_first_lane_uses_its_own_half: all three are counted as passed, but the first two print SKIPPED ... no wave64 here, so on this GPU they ran no check; only the third did
  • SKIPPED (no wave64) on this GPU: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Not tested

  • the two SKIPPED new tests need wave64 hardware, which I do not have; the first-lane behaviour they test on wave64 is untested here
  • AMD, scripts/smoke.ps1 (test-only diff)

AI use

  • Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
<!-- greyfinch-sync:ivall/xcl:comment:7124552533 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/852#issuecomment-7124552533). Originally posted by [milas6669](https://github.com/milas6669) on 2026-11-24T07:02:34Z. --- Test report on `c8b26b4` (PR head; its base is `main` beaa245, which is still `main`; no merge conflict). **Tested** - NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0 `x86_64-pc-windows-msvc`, debug - `cargo test --workspace --no-fail-fast -- --test-threads=4`; the same command on `main` beaa245 (this PR's base): **713 passed, 0 failed, 41 ignored** - on this head: **713 passed, **3 failed**, 41 ignored. The 3 failures are the D3D12.X tests `placed_title_textures_share_vram_and_preserve_pixels` (the `cubemap extra_pages must be reused at same va` assert), `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory` (both `PoisonError` after the first panic). They are the flaky tests of #718 / #447 and fail on `main` in some of my runs (on this exact main run they passed), so they are not from this PR.** - the 3 new tests are `gpu_pixel_wave32_first_lane_uses_its_own_half`, `gpu_vertex_wave32_first_lane_uses_its_own_half` and `graphics_wave32_first_lane_uses_its_own_half`: all three are counted as passed, but the first two print `SKIPPED ... no wave64` here, so on this GPU they ran no check; only the third did - SKIPPED (no wave64) on this GPU: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Not tested** - the two SKIPPED new tests need wave64 hardware, which I do not have; the first-lane behaviour they test on wave64 is untested here - AMD, `scripts/smoke.ps1` (test-only diff) **AI use** - Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
SlopTart commented 2026-11-24 09:07:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T08:09:32Z.


Linux / AMD RDNA3 datapoint.

Merged state: head c8b26b4 onto main 1ec4c98, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 711 passed, 7 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows - zero flakes in this lane. wave32 first-active-lane isolation tests green (711 passed, zero flakes in this lane).

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7125794559 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/852#issuecomment-7125794559). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-24T08:09:32Z. --- Linux / AMD RDNA3 datapoint. **Merged state:** head `c8b26b4` onto main `1ec4c98`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **711 passed, 7 failed, 41 ignored**. Failures = the known Wine-lane set from my #42 rows - zero flakes in this lane. wave32 first-active-lane isolation tests green (711 passed, zero flakes in this lane). **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
iggyvilla commented 2026-11-24 14:06:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by iggyvilla on 2026-11-24T13:04:36Z.


Test report for c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf (current head of #852, base 1ec4c98; only crates/xcl/src/gpu/recomp/tests.rs changes; not merged with main) on an AMD RDNA2 card. The commands were run, and the output captured, by an agent (omp, DeepSeek V4.1 Flash); the text below was checked against the PR head's source and written by Claude Code (Claude Sonnet 5.5).

Tested

  • AMD Radeon RX 6650 XT 8 GB (RDNA2, native wave64), Ryzen 7 5700X, Windows 11; DXC 1.8.2502.11 from Windows SDK 10.0.26100.0; release profile, clean worktree at the head commit.
  • cargo test -p xcl --lib --release -- wave32_first_lane: 3 passed, 0 failed, but two of them skipped themselves:
test gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half ... ok
SKIPPED gpu::recomp::tests::gpu_vertex_wave32_first_lane_uses_its_own_half: the draw did not expose a second 32-lane half for this shader stage
test gpu::recomp::tests::gpu_vertex_wave32_first_lane_uses_its_own_half ... ok
SKIPPED gpu::recomp::tests::gpu_pixel_wave32_first_lane_uses_its_own_half: the draw did not expose a second 32-lane half for this shader stage
test gpu::recomp::tests::gpu_pixel_wave32_first_lane_uses_its_own_half ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 693 filtered out; finished in 0.30s
  • cargo test -p xcl --lib --release -- gpu_wave32_program_in_wave64_hardware: 1 passed, 0 failed (695 filtered out, 0.40 s), not skipped.

What this shows

  • The compute test, which forces [WaveSize(64)] and checks all 64 lanes, passes: V_READFIRSTLANE_B32 returns 10 for lanes in the first half and 37 for the second. This is the PR's first execution on native wave64 hardware.
  • The two graphics draws ran and every pixel they wrote matched, but none came from the second half, so the test's own guard (tests.rs:4237, runner::skip_test) fired. A skip is not coverage: the vertex/pixel half of this PR is unverified on this card. The probable reason is that the emitted VS/PS carry no [WaveSize] and this driver ran them as 32-lane waves (every pixel reported half 0), but the test cannot tell that apart from a 64-lane wave whose upper half was never active.
  • graphics_wave32_first_lane_uses_its_own_half only checks the generated HLSL text, so it passes without touching the GPU.

Not tested

  • The graphics execution path (needs a GPU that packs a wave32 VS/PS into a 64-lane wave, or a harness that forces [WaveSize(64)] for graphics); no full cargo test --workspace. Test-only diff, so no smoke pair is needed.
  • Not merged with current main. The raw output was not kept as a file; the blocks above are the agent's capture.

AI use
Claude Code, Claude Sonnet 5.5: checked the report against the PR head's tests.rs and wrote this text; it ran nothing. The build and test runs were done by omp with DeepSeek V4.1 Flash, which changed no code.

<!-- greyfinch-sync:ivall/xcl:comment:7132314747 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/852#issuecomment-7132314747). Originally posted by [iggyvilla](https://github.com/iggyvilla) on 2026-11-24T13:04:36Z. --- Test report for `c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf` (current head of #852, base `1ec4c98`; only `crates/xcl/src/gpu/recomp/tests.rs` changes; not merged with `main`) on an AMD RDNA2 card. The commands were run, and the output captured, by an agent (omp, DeepSeek V4.1 Flash); the text below was checked against the PR head's source and written by Claude Code (Claude Sonnet 5.5). **Tested** - AMD Radeon RX 6650 XT 8 GB (RDNA2, native wave64), Ryzen 7 5700X, Windows 11; DXC 1.8.2502.11 from Windows SDK 10.0.26100.0; release profile, clean worktree at the head commit. - `cargo test -p xcl --lib --release -- wave32_first_lane`: 3 passed, 0 failed, but two of them skipped themselves: ``` test gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half ... ok SKIPPED gpu::recomp::tests::gpu_vertex_wave32_first_lane_uses_its_own_half: the draw did not expose a second 32-lane half for this shader stage test gpu::recomp::tests::gpu_vertex_wave32_first_lane_uses_its_own_half ... ok SKIPPED gpu::recomp::tests::gpu_pixel_wave32_first_lane_uses_its_own_half: the draw did not expose a second 32-lane half for this shader stage test gpu::recomp::tests::gpu_pixel_wave32_first_lane_uses_its_own_half ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 693 filtered out; finished in 0.30s ``` - `cargo test -p xcl --lib --release -- gpu_wave32_program_in_wave64_hardware`: 1 passed, 0 failed (695 filtered out, 0.40 s), not skipped. **What this shows** - The compute test, which forces `[WaveSize(64)]` and checks all 64 lanes, passes: `V_READFIRSTLANE_B32` returns 10 for lanes in the first half and 37 for the second. This is the PR's first execution on native wave64 hardware. - The two graphics draws ran and every pixel they wrote matched, but none came from the second half, so the test's own guard (`tests.rs:4237`, `runner::skip_test`) fired. A skip is not coverage: **the vertex/pixel half of this PR is unverified on this card.** The probable reason is that the emitted VS/PS carry no `[WaveSize]` and this driver ran them as 32-lane waves (every pixel reported half 0), but the test cannot tell that apart from a 64-lane wave whose upper half was never active. - `graphics_wave32_first_lane_uses_its_own_half` only checks the generated HLSL text, so it passes without touching the GPU. **Not tested** - The graphics execution path (needs a GPU that packs a wave32 VS/PS into a 64-lane wave, or a harness that forces `[WaveSize(64)]` for graphics); no full `cargo test --workspace`. Test-only diff, so no smoke pair is needed. - Not merged with current `main`. The raw output was not kept as a file; the blocks above are the agent's capture. **AI use** Claude Code, Claude Sonnet 5.5: checked the report against the PR head's `tests.rs` and wrote this text; it ran nothing. The build and test runs were done by omp with DeepSeek V4.1 Flash, which changed no code.
JJAutoCompare commented 2026-11-25 05:08:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:54:07Z.


Tested

Clean detached PR head c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf. STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5, unoptimized test profile.

Both GPU fixtures skipped on Arc A770 with no wave64 before shader compilation or draw. Zero graphics assertions executed. Libtest counted 2 passed, 0 failed, 0 ignored, with 2 explicit skips within that passing count.

cargo test --locked -p xcl --lib --no-run exited 0 outside the mutex. With XCL_ADAPTER=A770, these prebuilt commands ran inside Invoke-ArcTest.ps1 -Test. Both children and wrapper exited 0, and each filter excluded 695 tests.

xcl-77aca8ccb20e299f.exe --exact gpu::recomp::tests::gpu_pixel_wave32_first_lane_uses_its_own_half --nocapture --test-threads=1
xcl-77aca8ccb20e299f.exe --exact gpu::recomp::tests::gpu_vertex_wave32_first_lane_uses_its_own_half --nocapture --test-threads=1

The fixtures require one hardware wave64 to exercise two guest wave32 halves. Arc reached the adapter capability check and returned before the isolation readback.

Not tested

Pixel or vertex lane isolation on Arc, shader-stage wave width, the compute or HLSL-text fixtures, the workspace suite, and retail smoke.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixtures and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7153266944 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7153266944). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:54:07Z. --- **Tested** Clean detached PR head `c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf`. STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5, unoptimized test profile. **Both GPU fixtures skipped on Arc A770 with `no wave64` before shader compilation or draw. Zero graphics assertions executed.** Libtest counted 2 passed, 0 failed, 0 ignored, with 2 explicit skips within that passing count. `cargo test --locked -p xcl --lib --no-run` exited 0 outside the mutex. With `XCL_ADAPTER=A770`, these prebuilt commands ran inside `Invoke-ArcTest.ps1 -Test`. Both children and wrapper exited 0, and each filter excluded 695 tests. ```text xcl-77aca8ccb20e299f.exe --exact gpu::recomp::tests::gpu_pixel_wave32_first_lane_uses_its_own_half --nocapture --test-threads=1 xcl-77aca8ccb20e299f.exe --exact gpu::recomp::tests::gpu_vertex_wave32_first_lane_uses_its_own_half --nocapture --test-threads=1 ``` The fixtures require one hardware wave64 to exercise two guest wave32 halves. Arc reached the adapter capability check and returned before the isolation readback. **Not tested** Pixel or vertex lane isolation on Arc, shader-stage wave width, the compute or HLSL-text fixtures, the workspace suite, and retail smoke. **AI use** T3 Code / Codex (`gpt-6.2-sol`) ran the checked-in fixtures and prepared this report.
DavidM1911 commented 2026-11-25 11:08:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:15:45Z.


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:7159453417 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7159453417). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T10:15:45Z. --- 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!
github-actions[bot] commented 2026-11-29 20:40:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:40:43Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262271122 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7262271122). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:40:43Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
BBareth commented 2026-11-30 09:39:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:39:43Z.


merge-check claim
head: c8b26b4aac

<!-- greyfinch-sync:ivall/xcl:comment:7274513693 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7274513693). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T09:39:43Z. --- merge-check claim head: c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf
BBareth commented 2026-11-30 09:45:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:45:54Z.


merge-check
base: 9dfbe3ea66
head: c8b26b4aac
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2887 passed, 2 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines); and this PR's own gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half, which is new here. It panics at assert!(t.hlsl.contains("rla(v0, first_lane(exec_lo, 0u))")): on current main the generated HLSL of the vertex / pixel form no longer contains that exact text. 30 SKIPPED lines, two more than the base: gpu_pixel_wave32_first_lane_uses_its_own_half and gpu_vertex_wave32_first_lane_uses_its_own_half skip with no wave64 on this card, so the draw tests did not run here.
review: test-only, one file, read in full; nothing unsafe. The blocking point is the failing test above: the codegen test pins four exact HLSL substrings, and at least one has changed on main since the PR's base. It needs a rebase and the assertions brought up to date (or made less dependent on exact text), then a rerun; the two GPU draw tests need a wave64 adapter to say anything.
performance: none; tests only.
verdict: not yet: the PR's own test graphics_wave32_first_lane_uses_its_own_half fails when merged into current main
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7274653342 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7274653342). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T09:45:54Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2887 passed, 2 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines); and this PR's own `gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half`, which is new here. It panics at `assert!(t.hlsl.contains("rla(v0, first_lane(exec_lo, 0u))"))`: on current main the generated HLSL of the vertex / pixel form no longer contains that exact text. 30 SKIPPED lines, two more than the base: `gpu_pixel_wave32_first_lane_uses_its_own_half` and `gpu_vertex_wave32_first_lane_uses_its_own_half` skip with `no wave64` on this card, so the draw tests did not run here. review: test-only, one file, read in full; nothing unsafe. The blocking point is the failing test above: the codegen test pins four exact HLSL substrings, and at least one has changed on main since the PR's base. It needs a rebase and the assertions brought up to date (or made less dependent on exact text), then a rerun; the two GPU draw tests need a wave64 adapter to say anything. performance: none; tests only. verdict: not yet: the PR's own test `graphics_wave32_first_lane_uses_its_own_half` fails when merged into current main hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
saintwolf commented 2026-11-30 11:37:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T11:37:02Z.


merge-check claim
head: c8b26b4aac

<!-- greyfinch-sync:ivall/xcl:comment:7277276335 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7277276335). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T11:37:02Z. --- merge-check claim head: c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf
saintwolf commented 2026-11-30 11:47:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T11:47:12Z.


merge-check
base: 9dfbe3ea66
head: c8b26b4aac
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2883 passed, 6 failed, 51 ignored; SKIPPED: 29 (24 no wave64, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half (new in this PR; panics at assertion failed: t.hlsl.contains("rla(v0, first_lane(exec_lo, 0u))")), gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on base 9dfbe3ea alone), and 4 hle::d3d12x::title_textures::tests::* (parallel flake; all 65 title_textures tests pass with --test-threads=1)
review: read the full +87/-0 diff in crates/xcl/src/gpu/recomp/tests.rs (test-only). Blocking issue: graphics_wave32_first_lane_uses_its_own_half fails against current main because it pins the exact HLSL substring "rla(v0, first_lane(exec_lo, 0u))", which no longer matches generated HLSL. Not tested: gpu_pixel_wave32_first_lane_uses_its_own_half and gpu_vertex_wave32_first_lane_uses_its_own_half (skipped with no wave64 on RTX 4070 SUPER).
performance: none (test-only PR)
verdict: not yet: graphics_wave32_first_lane_uses_its_own_half fails on current main; update the HLSL assertion and re-verify
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)

<!-- greyfinch-sync:ivall/xcl:comment:7277523646 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7277523646). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T11:47:12Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2883 passed, 6 failed, 51 ignored; SKIPPED: 29 (24 no wave64, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half (new in this PR; panics at assertion failed: t.hlsl.contains("rla(v0, first_lane(exec_lo, 0u))")), gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on base 9dfbe3ea alone), and 4 hle::d3d12x::title_textures::tests::* (parallel flake; all 65 title_textures tests pass with --test-threads=1) review: read the full +87/-0 diff in crates/xcl/src/gpu/recomp/tests.rs (test-only). Blocking issue: graphics_wave32_first_lane_uses_its_own_half fails against current main because it pins the exact HLSL substring "rla(v0, first_lane(exec_lo, 0u))", which no longer matches generated HLSL. Not tested: gpu_pixel_wave32_first_lane_uses_its_own_half and gpu_vertex_wave32_first_lane_uses_its_own_half (skipped with no wave64 on RTX 4070 SUPER). performance: none (test-only PR) verdict: not yet: graphics_wave32_first_lane_uses_its_own_half fails on current main; update the HLSL assertion and re-verify hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Foniass commented 2026-12-01 04:19:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:19:07Z.


Triage (#1607) – head c8b26b4

No open or merged PR adds the same tests. It extends gpu_wave32_program_in_wave64_hardware with a v_readfirstlane_b32 under a half-local EXEC, and adds an HLSL-shape check plus VS/PS GPU draws that wave32 first-lane reads stay in their own 32-lane half. The HLSL strings it asserts (xcl_half, the select(and(xcl_w32, ...)) mask pick, WaveReadLaneAt(v, l + 32u * xcl_half)) are in main's emit.rs. Test-only. The GPU parts skip without wave64 hardware, so CI does not run them.
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:7300609656 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/852#issuecomment-7300609656). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:19:07Z. --- **Triage (#1607)** – head c8b26b4 No open or merged PR adds the same tests. It extends gpu_wave32_program_in_wave64_hardware with a v_readfirstlane_b32 under a half-local EXEC, and adds an HLSL-shape check plus VS/PS GPU draws that wave32 first-lane reads stay in their own 32-lane half. The HLSL strings it asserts (xcl_half, the select(and(xcl_w32, ...)) mask pick, WaveReadLaneAt(v, l + 32u * xcl_half)) are in main's emit.rs. Test-only. The GPU parts skip without wave64 hardware, so CI does not run them. 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/852:upstream-pr/852'
git switch 'upstream-pr/852'

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/852'
git switch 'upstream-pr/852'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/852'
git switch 'upstream-pr/852'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/852'
git switch 'main'
git merge --squash 'upstream-pr/852'
git switch 'main'
git merge --ff-only 'upstream-pr/852'
git switch 'main'
git merge 'upstream-pr/852'
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!846
No description provided.