Recompiler: preserve wave32 graphics v_writelane spill slots in partial waves #3380

Merged
Kalmarv merged 1 commit from upstream-pr/3380 into main 2026-12-01 07:22:31 +00:00
Kalmarv commented 2026-11-29 11:30:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T11:30:55Z.


What changed

  • crates/xcl/src/gpu/recomp/upper_lanes.rs: added wave-size-aware analyze_for(insts, wave64) and slot_for(d, wave64) so wave32 programs track constant-lane v_writelane_b32 / v_readlane_b32 SGPR spill slots (masking lane selectors modulo 32 for wave32 and modulo 64 for wave64, invalidating tracked slots on any VGPR overwrite, dynamic-lane v_writelane_b32, v_movrel/v_swaprel, or non-uniform CFG joins).
  • crates/xcl/src/gpu/recomp/mod.rs: enabled upper_lanes::analyze_for(&insts, opt.wave64) spill-slot shadowing for wave32 vertex and pixel shaders in addition to wave64.
  • crates/xcl/src/gpu/recomp/emit.rs: resolved v_readlane_b32 and v_writelane_b32 shadow slots with upper_lanes::slot_for(d, self.opt.wave64), and gated xcl_hw32 emission on upper_const() so shadow-only (and wave32) graphics shaders do not emit unused xcl_hw32 state.
  • crates/xcl/src/gpu/dxil/kernel.rs: checked upper_lanes::analyze_for(&cfg.insts, o.wave64) for all graphics stages (both wave32 and wave64) so direct DXIL falls back to HLSL when a graphics shader reads a v_writelane_b32 spill slot.
  • crates/xcl/src/gpu/recomp/upper_lanes.rs, crates/xcl/src/gpu/recomp/tests.rs: added unit tests for wave32 lane masking and invalidation, structural HLSL + direct-DXIL fallback tests, and a real-GPU partial-wave test covering both a wave32 pixel shader (6-pixel partial triangle, 3 quads) and a wave32 vertex shader (3-vertex triangle).

Why

  • Commit 4d647491 preserved constant-lane v_writelane_b32 SGPR spill slots in partial graphics waves via scalar shadows (xcl_sh{v}_{l}), but gated both the HLSL analysis and direct-DXIL fallback on wave64.
  • Console wave32 vertex and pixel shaders also spill SGPRs into VGPR lanes 0..31 with v_writelane_b32 / v_readlane_b32. On PC hardware, partial graphics waves (such as a 3-vertex triangle VS with only lanes 0..2 launched, or a primitive-edge PS with only 1–3 quads launched) never launch the higher lanes, so v_writelane_b32 drops the write and v_readlane_b32 reads undefined data in both HLSL and direct DXIL.

Tested

  • Hardware: NVIDIA GeForce RTX 5070 Ti (Windows 11 Pro, DXC 1.9.2609.5).
  • cargo check --workspace --all-targets: passed, 0 errors, 0 new warnings.
  • Targeted CPU + GPU tests (cargo test -p xcl --lib -- upper_lanes spill_slots wave64_graphics_spill wave32_graphics_spill --nocapture): 16 passed, 0 failed (including gpu_wave32_ps_and_vs_spill_slots_in_partial_waves, gpu_wave64_ps_spill_slots, and gpu_wave64_vs_spill_slots_and_identity on RTX 5070 Ti).
  • Full workspace GPU test suite (cargo test --workspace -- --test-threads=4): passed (exit code 0, 0 failed).
  • 150 s real-title xcl-smoke on RTX 5070 Ti (XCL_DIRECT_DXIL=all, XCL_HEAP_WINDOWS=1, XCL_DRED=1, DXC 1.9.2609.5) — 1708 frames, 0 device removals, 0 crashes, 0 minidumps, 0 display driver events:
xcl-smoke v1
commit: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1708 (PresentX 1708)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 34245 MB

Main-ancestor baseline on the same machine:

xcl-smoke v1
commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1695 (PresentX 1695)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 31546 MB

Not tested

  • Native 64-lane wave hardware (AMD RDNA/GCN) and Intel GPUs.
  • Direct DXIL native spill-shadow lowering (graphics shaders with v_writelane_b32 spill slots continue to fall back to HLSL, matching wave64).
  • Dynamic-lane (SRC1 from an SGPR) v_writelane_b32 / v_readlane_b32 in partial graphics waves.

AI use

  • Investigated, implemented, and tested with AI assistance (Antigravity); all code changes, unit/GPU tests, and real-hardware smoke runs were verified locally.
<!-- greyfinch-sync:ivall/xcl:issue:5550276047 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T11:30:55Z. --- **What changed** - `crates/xcl/src/gpu/recomp/upper_lanes.rs`: added wave-size-aware `analyze_for(insts, wave64)` and `slot_for(d, wave64)` so wave32 programs track constant-lane `v_writelane_b32` / `v_readlane_b32` SGPR spill slots (masking lane selectors modulo 32 for wave32 and modulo 64 for wave64, invalidating tracked slots on any VGPR overwrite, dynamic-lane `v_writelane_b32`, `v_movrel`/`v_swaprel`, or non-uniform CFG joins). - `crates/xcl/src/gpu/recomp/mod.rs`: enabled `upper_lanes::analyze_for(&insts, opt.wave64)` spill-slot shadowing for wave32 vertex and pixel shaders in addition to wave64. - `crates/xcl/src/gpu/recomp/emit.rs`: resolved `v_readlane_b32` and `v_writelane_b32` shadow slots with `upper_lanes::slot_for(d, self.opt.wave64)`, and gated `xcl_hw32` emission on `upper_const()` so shadow-only (and wave32) graphics shaders do not emit unused `xcl_hw32` state. - `crates/xcl/src/gpu/dxil/kernel.rs`: checked `upper_lanes::analyze_for(&cfg.insts, o.wave64)` for all graphics stages (both wave32 and wave64) so direct DXIL falls back to HLSL when a graphics shader reads a `v_writelane_b32` spill slot. - `crates/xcl/src/gpu/recomp/upper_lanes.rs`, `crates/xcl/src/gpu/recomp/tests.rs`: added unit tests for wave32 lane masking and invalidation, structural HLSL + direct-DXIL fallback tests, and a real-GPU partial-wave test covering both a wave32 pixel shader (6-pixel partial triangle, 3 quads) and a wave32 vertex shader (3-vertex triangle). **Why** - Commit `4d647491` preserved constant-lane `v_writelane_b32` SGPR spill slots in partial graphics waves via scalar shadows (`xcl_sh{v}_{l}`), but gated both the HLSL analysis and direct-DXIL fallback on `wave64`. - Console wave32 vertex and pixel shaders also spill SGPRs into VGPR lanes `0..31` with `v_writelane_b32` / `v_readlane_b32`. On PC hardware, partial graphics waves (such as a 3-vertex triangle VS with only lanes `0..2` launched, or a primitive-edge PS with only 1–3 quads launched) never launch the higher lanes, so `v_writelane_b32` drops the write and `v_readlane_b32` reads undefined data in both HLSL and direct DXIL. **Tested** - Hardware: NVIDIA GeForce RTX 5070 Ti (Windows 11 Pro, DXC 1.9.2609.5). - `cargo check --workspace --all-targets`: passed, 0 errors, 0 new warnings. - Targeted CPU + GPU tests (`cargo test -p xcl --lib -- upper_lanes spill_slots wave64_graphics_spill wave32_graphics_spill --nocapture`): 16 passed, 0 failed (including `gpu_wave32_ps_and_vs_spill_slots_in_partial_waves`, `gpu_wave64_ps_spill_slots`, and `gpu_wave64_vs_spill_slots_and_identity` on RTX 5070 Ti). - Full workspace GPU test suite (`cargo test --workspace -- --test-threads=4`): passed (exit code 0, 0 failed). - 150 s real-title `xcl-smoke` on RTX 5070 Ti (`XCL_DIRECT_DXIL=all`, `XCL_HEAP_WINDOWS=1`, `XCL_DRED=1`, DXC 1.9.2609.5) — 1708 frames, 0 device removals, 0 crashes, 0 minidumps, 0 display driver events: ``` xcl-smoke v1 commit: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1708 (PresentX 1708) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 34245 MB ``` Main-ancestor baseline on the same machine: ``` xcl-smoke v1 commit: f0e8fdd5c3942ddd399d5ee11384c8595c5aacff gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1695 (PresentX 1695) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 31546 MB ``` **Not tested** - Native 64-lane wave hardware (AMD RDNA/GCN) and Intel GPUs. - Direct DXIL native spill-shadow lowering (graphics shaders with `v_writelane_b32` spill slots continue to fall back to HLSL, matching wave64). - Dynamic-lane (`SRC1` from an SGPR) `v_writelane_b32` / `v_readlane_b32` in partial graphics waves. **AI use** - Investigated, implemented, and tested with AI assistance (Antigravity); all code changes, unit/GPU tests, and real-hardware smoke runs were verified locally.
Aniseto commented 2026-11-29 12:35:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-29T12:35:54Z.


Ran the wave-size-aware spill-slot tests at 3ba7da0f on an NVIDIA Blackwell desktop part.

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders), driver 32.0.16.2140 (621.40)
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib upper_lanes -- --test-threads=1: 11 passed, 0 failed, 0 ignored.
  • XCL_ADAPTER=NVIDIA cargo test -p xcl --lib spill_slots -- --test-threads=1: 5 passed, 0 failed, 0 ignored.

What this adds
Both groups pass, including the real-GPU partial-wave tests for wave32 pixel and vertex shaders. The thread already reports an RTX 5070 Ti run from the author; this adds an independent run on driver 32.0.16.2140. It is a synthetic GPU test, not a title run.

Not tested
A retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - ran the commands above on this machine and wrote this report; no game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7255927220 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7255927220). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-29T12:35:54Z. --- Ran the wave-size-aware spill-slot tests at `3ba7da0f` on an NVIDIA Blackwell desktop part. **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, mesh shaders), driver 32.0.16.2140 (621.40) - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib upper_lanes -- --test-threads=1`: 11 passed, 0 failed, 0 ignored. - `XCL_ADAPTER=NVIDIA cargo test -p xcl --lib spill_slots -- --test-threads=1`: 5 passed, 0 failed, 0 ignored. **What this adds** Both groups pass, including the real-GPU partial-wave tests for wave32 pixel and vertex shaders. The thread already reports an RTX 5070 Ti run from the author; this adds an independent run on driver 32.0.16.2140. It is a synthetic GPU test, not a title run. **Not tested** A retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - ran the commands above on this machine and wrote this report; no game data was used.
Foniass commented 2026-12-01 05:04:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:04:52Z.


merge-check
base: d0832e614f
head: 3ba7da0f6d
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2893 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (dxil/kernel.rs, recomp/emit.rs, mod.rs, upper_lanes.rs, tests). It changes the default path: on main only wave64 VS/PS with a spill-slot read left direct DXIL for HLSL; now wave32 VS/PS with one do too (kernel.rs ~295-298, if gfx && o.wave64 became if gfx), and their HLSL gains one per-thread xcl_sh{v}_{l} static per slot. Findings: (1) the size of that change isn't given (no XCL_DIRECT_DXIL_STATS fallback count), and Not tested says these shaders "continue to fall back to HLSL, matching wave64", which isn't so for wave32 on main. The PR's own smoke peak commit is +8.6 % (31546 -> 34245 MB), unexplained; see the run above for the default settings. (2) Both of the PR's smoke runs used non-default XCL_DIRECT_DXIL=all, XCL_HEAP_WINDOWS=1 and XCL_DRED=1. (3) AI use says only "Antigravity"; the full-suite result has no counts; no run shows the new GPU test failing on main. (4) Minor scope: upper_const() also drops the unused xcl_hw32 from wave64 HLSL (harmless), and upper_lanes::slot() no longer has a non-test caller. Not covered: wave32 GS / mesh / compute partial waves, and writelane with a lane picked from an SGPR at run time. Fine: wave64 analysis and emission are unchanged (analyze / slot wrap the _for(..., true) versions), wave32 lane numbers are masked to bits [4:0], every writelane of a shadowed slot also writes the shadow, paths join by intersection, VGPR writes / movrel / swaprel / SGPR-lane writelane clear the slot, and an indirect jump yields no shadows (the safe direction).
performance: 60 s smoke of a retail title, main d0832e61 vs this merge (86703058): 1516 -> 1678 frames shown (110 %; last presents per 2 s: 60 61 60), peak commit 18133 -> 17071 MB, 0 device removals, 0 crashes. On this title the extra HLSL fallbacks cost nothing visible at default settings.
verdict: safe to merge (the Not tested line should say wave32 VS/PS with spill reads now leave direct DXIL, and a fallback count would size it)
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7301401454 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7301401454). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:04:52Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2893 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff (dxil/kernel.rs, recomp/emit.rs, mod.rs, upper_lanes.rs, tests). It changes the default path: on main only wave64 VS/PS with a spill-slot read left direct DXIL for HLSL; now wave32 VS/PS with one do too (kernel.rs ~295-298, `if gfx && o.wave64` became `if gfx`), and their HLSL gains one per-thread `xcl_sh{v}_{l}` static per slot. Findings: (1) the size of that change isn't given (no `XCL_DIRECT_DXIL_STATS` fallback count), and **Not tested** says these shaders "continue to fall back to HLSL, matching wave64", which isn't so for wave32 on main. The PR's own smoke peak commit is +8.6 % (31546 -> 34245 MB), unexplained; see the run above for the default settings. (2) Both of the PR's smoke runs used non-default `XCL_DIRECT_DXIL=all`, `XCL_HEAP_WINDOWS=1` and `XCL_DRED=1`. (3) AI use says only "Antigravity"; the full-suite result has no counts; no run shows the new GPU test failing on main. (4) Minor scope: `upper_const()` also drops the unused `xcl_hw32` from wave64 HLSL (harmless), and `upper_lanes::slot()` no longer has a non-test caller. Not covered: wave32 GS / mesh / compute partial waves, and writelane with a lane picked from an SGPR at run time. Fine: wave64 analysis and emission are unchanged (`analyze` / `slot` wrap the `_for(..., true)` versions), wave32 lane numbers are masked to bits [4:0], every writelane of a shadowed slot also writes the shadow, paths join by intersection, VGPR writes / movrel / swaprel / SGPR-lane writelane clear the slot, and an indirect jump yields no shadows (the safe direction). performance: 60 s smoke of a retail title, main d0832e61 vs this merge (86703058): 1516 -> 1678 frames shown (110 %; last presents per 2 s: 60 61 60), peak commit 18133 -> 17071 MB, 0 device removals, 0 crashes. On this title the extra HLSL fallbacks cost nothing visible at default settings. verdict: safe to merge (the Not tested line should say wave32 VS/PS with spill reads now leave direct DXIL, and a fallback count would size it) hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
brainhay5 commented 2026-12-01 06:57:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T06:57:01Z.


merge-check claim
head: 3ba7da0f6d

<!-- greyfinch-sync:ivall/xcl:comment:7303469928 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7303469928). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T06:57:01Z. --- merge-check claim head: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9
brainhay5 commented 2026-12-01 07:03:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T07:03:52Z.


merge-check
base: d0832e614f
head: 3ba7da0f6d
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 1 failed, 51 ignored; 29 SKIPPED lines
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

<!-- greyfinch-sync:ivall/xcl:comment:7303602602 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7303602602). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T07:03:52Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2892 passed, 1 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
throny commented 2026-12-01 07:04:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:04:32Z.


merge-check claim
head: 3ba7da0f6d

<!-- greyfinch-sync:ivall/xcl:comment:7303615647 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7303615647). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:04:32Z. --- merge-check claim head: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9
throny commented 2026-12-01 07:18:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:18:44Z.


merge-check
base: 7d86c5d2b7
head: 3ba7da0f6d (unchanged since the claim)
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2899 passed, 0 failed, 51 ignored; failing: none; base alone: 2896 passed, 0 failed, 51 ignored (the three new tests ran and passed, no SKIPPED for them)
review: Read the whole diff (nothing flagged by the diff scan). The upper_lanes analysis now also runs for wave32 VS / PS, with lane selectors masked to 31, tracking constant-lane v_writelane slots as shadows so partial graphics waves keep spilled SGPRs; wave64 paths are unchanged (analyze/slot keep their wave64 behaviour). The direct DXIL translator now refuses wave32 shaders with a spill read, so those go to the HLSL path; xcl_hw32 is emitted only when a Const read needs it. Tests cover the analysis, the emitted HLSL, the direct refusal and a GPU run in 6-pixel and 3-vertex partial waves. Caveat: this changes translator output (HLSL for wave32 VS / PS shaders with spill reads), so testers re-translate; CONTRIBUTING asks for a smoke run on a real title, which I did not do.
performance: no cost for shaders without constant-lane spill reads; shaders that now fall back from direct DXIL to HLSL may compile slower and could differ in speed (not measured).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report (the diff review is Sonnet's)

<!-- greyfinch-sync:ivall/xcl:comment:7303903853 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7303903853). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:18:44Z. --- merge-check base: 7d86c5d2b7845695031eeea1327aa81b6c439323 head: 3ba7da0f6d5991b6193e4c4203a10e6ba9b2e8e9 (unchanged since the claim) merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2899 passed, 0 failed, 51 ignored; failing: none; base alone: 2896 passed, 0 failed, 51 ignored (the three new tests ran and passed, no SKIPPED for them) review: Read the whole diff (nothing flagged by the diff scan). The upper_lanes analysis now also runs for wave32 VS / PS, with lane selectors masked to 31, tracking constant-lane v_writelane slots as shadows so partial graphics waves keep spilled SGPRs; wave64 paths are unchanged (analyze/slot keep their wave64 behaviour). The direct DXIL translator now refuses wave32 shaders with a spill read, so those go to the HLSL path; xcl_hw32 is emitted only when a Const read needs it. Tests cover the analysis, the emitted HLSL, the direct refusal and a GPU run in 6-pixel and 3-vertex partial waves. Caveat: this changes translator output (HLSL for wave32 VS / PS shaders with spill reads), so testers re-translate; CONTRIBUTING asks for a smoke run on a real title, which I did not do. performance: no cost for shaders without constant-lane spill reads; shaders that now fall back from direct DXIL to HLSL may compile slower and could differ in speed (not measured). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report (the diff review is Sonnet's)
throny commented 2026-12-01 07:22:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:22:39Z.


Merged at the checked head after a combined trial of #1362 and #3380 on main 7d86c5d2 (RTX 4080 16 GB, cargo test --workspace --no-fail-fast -- --test-threads=4: 2900 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks plus ours.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7303982676 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3380#issuecomment-7303982676). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:22:39Z. --- Merged at the checked head after a combined trial of #1362 and #3380 on `main` `7d86c5d2` (RTX 4080 16 GB, `cargo test --workspace --no-fail-fast -- --test-threads=4`: 2900 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks plus ours. AI use: Claude Code (Claude Opus 5.5).
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!3380
No description provided.