recomp: cap per-lane compute size so giant shaders use compact DXIL (#2203) #2331

Merged
zondy1i merged 1 commit from upstream-pr/2341 into main 2026-11-29 22:51:05 +00:00
zondy1i commented 2026-11-25 15:48:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zondy1i on 2026-11-25T15:48:07Z.


What is in it
Follow-up to #2203 addressing @tiagonleal's XCL_PER_LANE=1 memory-spike report on giant compute programs (such as 56c0cd3b82a00c6e):

  • After #2203 enabled whole-wave branches in split-wave64, 56c0cd3b82a00c6e (488,744 B guest code, 14,377 blocks) became accepted by recomp::lower_dxil::compute_with. Because the per-lane form has no compact loop-switch lowering, it emitted 4,563,088 B of plain DXIL (9.5× larger than #1426's 478,764 B compact form), causing the NVIDIA driver compiler to spike +18 GiB RAM and OOM.
  • Adds two caps in crates/xcl/src/gpu/recomp/lower_dxil.rs:
    • MAX_INSTS = 20_000 (matching dxil::compact::large's 20,000-instruction threshold): checked right after decode before spawning the 256 MB worker thread or constructing IR, so giant programs immediately fall back to #1426's compact form.
    • MAX_DXIL_BYTES = 1 << 20 (1 MiB): post-lowering safety cap in compute_with (all 39 normal per-lane compute shaders in the 2,000-program sample are <= 197 KB).
    • Modifying lower_dxil.rs advances XCL_PER_LANE_SOURCE_ID automatically so any cached multi-megabyte per-lane entries are invalidated on disk.
  • Adds unit test compute_with_refuses_giant_programs_for_compact_fallback covering both caps.

Impact:

  • 56c0cd3b82a00c6e with --direct --lanes --split 1: immediately refused ("program too large for the per-lane form") and translated via #1426 compact form (478 KB DXIL instead of 4.56 MB DXIL; total sweep time 0.7 s vs 3.2 s).
  • 2,000-program sample (--direct --lanes --split 1 --sample 2000 --max-bytes 0): all 39 / 205 normal per-lane compute shaders continue to translate (0 regressions); 4 giant compute programs (>= 20,000 instructions) are routed to #1426's compact form.

Tested

  • Hardware: NVIDIA GeForce RTX 3060 Ti (driver 621.01), AMD Ryzen 5 7500F, rustc 1.100.0, DXC / dxil.dll 1.9.2602.17, debug & release builds.
  • cargo test --workspace -- --test-threads=4 on 45dbd47: 1436 passed, 0 failed, 47 ignored across 37 test binaries (29 runtime SKIPPED notices from adapter-gated tests); the new compute_with_refuses_giant_programs_for_compact_fallback passes.
  • The translation runs below (--hash, --sample 2000) were done on the pre-rebase head 92437bd; the rebase only merged this PR's test next to a new test in lower_dxil.rs (no code overlap).
  • xcl shaders <pack> --direct --hash 56c0cd3b82a00c6e --lanes --split 1: refused by per-lane (program too large for the per-lane form), compact form 478 KB DXIL, 0 errors.
  • xcl shaders <pack> --direct --lanes --split 1 --sample 2000 --max-bytes 0: 39/205 per-lane compute programs unchanged, 4 giant compute programs capped, 0 validator/panic errors.

Regression run
Baseline (main 568e7db):

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 3060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1580 (PresentX 1580)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15495 MB

PR (45dbd47, run with XCL_PER_LANE=1):

xcl-smoke v1
commit: 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef
gpu: NVIDIA GeForce RTX 3060 Ti
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1619 (PresentX 1620)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15805 MB

Not tested

  • AMD / Intel Arc GPUs; 300-second extended menu soak with XCL_PER_LANE=1 (verified via single-hash 56c0cd3b82a00c6e routing to compact form + 60-second XCL_PER_LANE=1 smoke run).

AI use

  • Antigravity (Gemini 4 Neon) assisted with measuring 56c0cd3b82a00c6e and the 2,000-program per-lane size distribution, implementing MAX_INSTS / MAX_DXIL_BYTES and the unit test in lower_dxil.rs, and running the test and smoke suites.
<!-- greyfinch-sync:ivall/xcl:issue:5494577052 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-25T15:48:07Z. --- **What is in it** Follow-up to #2203 addressing @tiagonleal's `XCL_PER_LANE=1` memory-spike report on giant compute programs (such as `56c0cd3b82a00c6e`): - After #2203 enabled whole-wave branches in split-wave64, `56c0cd3b82a00c6e` (488,744 B guest code, 14,377 blocks) became accepted by `recomp::lower_dxil::compute_with`. Because the per-lane form has no compact loop-switch lowering, it emitted **4,563,088 B** of plain DXIL (**9.5×** larger than #1426's 478,764 B compact form), causing the NVIDIA driver compiler to spike +18 GiB RAM and OOM. - Adds two caps in `crates/xcl/src/gpu/recomp/lower_dxil.rs`: - `MAX_INSTS = 20_000` (matching `dxil::compact::large`'s 20,000-instruction threshold): checked right after decode before spawning the 256 MB worker thread or constructing IR, so giant programs immediately fall back to #1426's compact form. - `MAX_DXIL_BYTES = 1 << 20` (1 MiB): post-lowering safety cap in `compute_with` (all 39 normal per-lane compute shaders in the 2,000-program sample are `<= 197 KB`). - Modifying `lower_dxil.rs` advances `XCL_PER_LANE_SOURCE_ID` automatically so any cached multi-megabyte per-lane entries are invalidated on disk. - Adds unit test `compute_with_refuses_giant_programs_for_compact_fallback` covering both caps. Impact: - `56c0cd3b82a00c6e` with `--direct --lanes --split 1`: immediately refused (`"program too large for the per-lane form"`) and translated via #1426 compact form (478 KB DXIL instead of 4.56 MB DXIL; total sweep time 0.7 s vs 3.2 s). - 2,000-program sample (`--direct --lanes --split 1 --sample 2000 --max-bytes 0`): all **39 / 205** normal per-lane compute shaders continue to translate (0 regressions); 4 giant compute programs (`>= 20,000` instructions) are routed to #1426's compact form. **Tested** - Hardware: NVIDIA GeForce RTX 3060 Ti (driver 621.01), AMD Ryzen 5 7500F, `rustc 1.100.0`, DXC / `dxil.dll` 1.9.2602.17, debug & release builds. - `cargo test --workspace -- --test-threads=4` on `45dbd47`: 1436 passed, 0 failed, 47 ignored across 37 test binaries (29 runtime `SKIPPED` notices from adapter-gated tests); the new `compute_with_refuses_giant_programs_for_compact_fallback` passes. - The translation runs below (`--hash`, `--sample 2000`) were done on the pre-rebase head `92437bd`; the rebase only merged this PR's test next to a new test in `lower_dxil.rs` (no code overlap). - `xcl shaders <pack> --direct --hash 56c0cd3b82a00c6e --lanes --split 1`: refused by per-lane (`program too large for the per-lane form`), compact form 478 KB DXIL, 0 errors. - `xcl shaders <pack> --direct --lanes --split 1 --sample 2000 --max-bytes 0`: 39/205 per-lane compute programs unchanged, 4 giant compute programs capped, 0 validator/panic errors. **Regression run** Baseline (`main` `568e7db`): ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 3060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1580 (PresentX 1580) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15495 MB ``` PR (`45dbd47`, run with `XCL_PER_LANE=1`): ``` xcl-smoke v1 commit: 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef gpu: NVIDIA GeForce RTX 3060 Ti title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1619 (PresentX 1620) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15805 MB ``` **Not tested** - AMD / Intel Arc GPUs; 300-second extended menu soak with `XCL_PER_LANE=1` (verified via single-hash `56c0cd3b82a00c6e` routing to compact form + 60-second `XCL_PER_LANE=1` smoke run). **AI use** - Antigravity (Gemini 4 Neon) assisted with measuring `56c0cd3b82a00c6e` and the 2,000-program per-lane size distribution, implementing `MAX_INSTS` / `MAX_DXIL_BYTES` and the unit test in `lower_dxil.rs`, and running the test and smoke suites.
SlopTart commented 2026-11-25 17:07:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T16:22:30Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

No Linux/Wine report in the thread yet; adding one.

  • gpu_ suite (--release --locked, --test-threads=2): 144 passed / 3 failed / 1 ignored, same three baseline failures as plain origin/main on this rig (rig's known baseline: fuzz seed 1003 of #2115, gpu_nonfused_mad_and_mac_prevent_fma_contraction, gpu_depth_buffer_created_for_unordered_access_is_placed).
  • New test gpu::recomp::lower_dxil::tests::compute_with_refuses_giant_programs_for_compact_fallback (outside the gpu_ suite filter): passes on this lane, targeted run.

Not tested: retail titles (no title data on this lane, counts only).

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

<!-- greyfinch-sync:ivall/xcl:comment:7167874071 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7167874071). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T16:22:30Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). No Linux/Wine report in the thread yet; adding one. - `gpu_` suite (`--release --locked`, `--test-threads=2`): 144 passed / 3 failed / 1 ignored, same three baseline failures as plain `origin/main` on this rig (rig's known baseline: fuzz seed 1003 of #2115, `gpu_nonfused_mad_and_mac_prevent_fma_contraction`, `gpu_depth_buffer_created_for_unordered_access_is_placed`). - New test `gpu::recomp::lower_dxil::tests::compute_with_refuses_giant_programs_for_compact_fallback` (outside the `gpu_` suite filter): passes on this lane, targeted run. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
razormontana commented 2026-11-25 18:04:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by razormontana on 2026-11-25T17:23:22Z.


Independent RTX 3070 check of clean PR head 92437bd3ebc7df5504604247055acd93e57fc46f.

Windows 11 Pro build 22631, Core i7-10700K, GeForce RTX 3070 (driver 617.42), Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17, release build.

The workspace suite reported 1,273 passed, 0 failed, 46 ignored. Its pass count includes 26 runtime SKIPPED markers (21 native wave64, 3 unsupported per-lane forms, 1 heap-window capability, and 1 reserved cube with mip levels). compute_with_refuses_giant_programs_for_compact_fallback passed, including the 20,000-instruction cutoff and the 1 MiB DXIL size boundary. Coverage here was the synthetic workspace suite with external samples unset.

cargo build --release --offline --locked --workspace
cargo test --release --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output

Codex (GPT-6.2) ran the tests and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7169431749 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7169431749). Originally posted by [razormontana](https://github.com/razormontana) on 2026-11-25T17:23:22Z. --- Independent RTX 3070 check of clean PR head `92437bd3ebc7df5504604247055acd93e57fc46f`. Windows 11 Pro build 22631, Core i7-10700K, GeForce RTX 3070 (driver 617.42), Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17, release build. The workspace suite reported **1,273 passed, 0 failed, 46 ignored**. Its pass count includes 26 runtime `SKIPPED` markers (21 native wave64, 3 unsupported per-lane forms, 1 heap-window capability, and 1 reserved cube with mip levels). `compute_with_refuses_giant_programs_for_compact_fallback` passed, including the 20,000-instruction cutoff and the 1 MiB DXIL size boundary. Coverage here was the synthetic workspace suite with external samples unset. ```powershell cargo build --release --offline --locked --workspace cargo test --release --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output ``` Codex (GPT-6.2) ran the tests and drafted this report.
tiagonleal commented 2026-11-25 19:09:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T18:21:15Z.


Test report for #2341 on RTX 5070 Ti (Windows 11): the cap works at translation level and its test passes; I could not reproduce the memory spike on the base today, so the in-game effect is not shown

I reported the XCL_PER_LANE=1 memory jump on #2203; this checks the cap you added in answer.

Tested

  • PR head 92437bd3ebc7df5504604247055acd93e57fc46f (clean worktree, no local changes; merge-base with main 082944135cd2b96288470a595861fa608eee08dc, the base compared below). PR open, head unchanged when I started.
  • Windows 11 Pro 10.0.26300 (Developer Mode on), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42, 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0, release.
  • cargo test --release -p xcl --lib, test executable: compute_with_refuses_giant_programs_for_compact_fallback: 1 passed, 0 failed. gpu::recomp::lower_dxil: 21 passed, 0 failed, 0 ignored, 17 SKIPPED lines (no wave64, and an f16 case already refused in per-lane form). gpu::recomp: 371 passed, 0 failed, 19 ignored, 23 SKIPPED lines.
  • Translation only (xcl shaders <pack> --direct --hash 56c0cd3b82a00c6e --lanes --split 1): on the base the program is accepted in per-lane form, 4 563 088 B of DXIL against 478 764 B in the split form. On the PR head it is refused: program too large for the per-lane form (0 of 1 compute programs in per-lane form), so it falls to the compact form. Translation 0.26 s both ways.
  • In the title, same way as my #2203 report (XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_GPU_PROFILE=1 XCL_PER_LANE=1, A pressed at 30 s, 300 s, fresh executable name, own copy of the compute cache per run, memory guard on and unchanged): PR head and base both ran the full 300 s at 30 fps in the menus, process commit peak 16.3 GB (PR) and 16.1 GB (base), no guard cut, no device removal. The 4.27 MB driver compile of 56c0cd3b82a00c6e did not start in either run today, so this run does not show the spike on the base, and says nothing about the cap. (Two earlier runs with XCL_PSO_PRELOAD=0: 14.7 GB both, same.)
  • The driver compile alone (xcl shaders <pack> --measure-pso 56c0cd3b82a00c6e, guarded, per-lane and heap windows on, 300 s budget each): PR head and base looked the same, working set 2.2-3.9 GB through the whole 300 s, still compiling at the budget in both, no spike in that window.
  • Sample of the pack, --lanes --split 1 (200 sampled records, 14 compute programs): per-lane form 3 of 14 on both the PR head and the base, same DXIL size per instruction, so the new caps change nothing in that sample.

Not tested

  • That the memory spike is gone with the cap: I could not reproduce it on the base today (the giant is no longer compiled in my menu runs), so a before/after in the title is missing. My earlier spike was measured on 5478c4a7.
  • The 2,000-program claim (only the 200-record sample above), world runs, AMD, runs longer than 300 s.

Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7170791682 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7170791682). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T18:21:15Z. --- Test report for #2341 on RTX 5070 Ti (Windows 11): the cap works at translation level and its test passes; I could not reproduce the memory spike on the base today, so the in-game effect is not shown I reported the `XCL_PER_LANE=1` memory jump on #2203; this checks the cap you added in answer. **Tested** - PR head `92437bd3ebc7df5504604247055acd93e57fc46f` (clean worktree, no local changes; merge-base with `main` `082944135cd2b96288470a595861fa608eee08dc`, the base compared below). PR open, head unchanged when I started. - Windows 11 Pro 10.0.26300 (Developer Mode on), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 617.42, 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0, release. - `cargo test --release -p xcl --lib`, test executable: `compute_with_refuses_giant_programs_for_compact_fallback`: 1 passed, 0 failed. `gpu::recomp::lower_dxil`: 21 passed, 0 failed, 0 ignored, 17 SKIPPED lines (`no wave64`, and an f16 case already refused in per-lane form). `gpu::recomp`: 371 passed, 0 failed, 19 ignored, 23 SKIPPED lines. - Translation only (`xcl shaders <pack> --direct --hash 56c0cd3b82a00c6e --lanes --split 1`): on the base the program is accepted in per-lane form, 4 563 088 B of DXIL against 478 764 B in the split form. On the PR head it is refused: `program too large for the per-lane form` (0 of 1 compute programs in per-lane form), so it falls to the compact form. Translation 0.26 s both ways. - In the title, same way as my #2203 report (`XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_GPU_PROFILE=1 XCL_PER_LANE=1`, A pressed at 30 s, 300 s, fresh executable name, own copy of the compute cache per run, memory guard on and unchanged): PR head and base both ran the full 300 s at 30 fps in the menus, process commit peak 16.3 GB (PR) and 16.1 GB (base), no guard cut, no device removal. The 4.27 MB driver compile of `56c0cd3b82a00c6e` did not start in either run today, so this run does not show the spike on the base, and says nothing about the cap. (Two earlier runs with `XCL_PSO_PRELOAD=0`: 14.7 GB both, same.) - The driver compile alone (`xcl shaders <pack> --measure-pso 56c0cd3b82a00c6e`, guarded, per-lane and heap windows on, 300 s budget each): PR head and base looked the same, working set 2.2-3.9 GB through the whole 300 s, still compiling at the budget in both, no spike in that window. - Sample of the pack, `--lanes --split 1` (200 sampled records, 14 compute programs): per-lane form 3 of 14 on both the PR head and the base, same DXIL size per instruction, so the new caps change nothing in that sample. **Not tested** - That the memory spike is gone with the cap: I could not reproduce it on the base today (the giant is no longer compiled in my menu runs), so a before/after in the title is missing. My earlier spike was measured on `5478c4a7`. - The 2,000-program claim (only the 200-record sample above), world runs, AMD, runs longer than 300 s. Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
DavidM1911 commented 2026-11-25 19:09:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:25:23Z.


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:7170886152 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7170886152). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T18:25:23Z. --- 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!
emirduran707 commented 2026-11-25 19:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T18:34:44Z.


Independent AMD RDNA4 (native wave64) test report on exact head 92437bd3ebc7df5504604247055acd93e57fc46f (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1271 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record). All native wave64 GPU tests ran and passed.
    • The PR's test passed: gpu::recomp::lower_dxil::tests::compute_with_refuses_giant_programs_for_compact_fallback.
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 seed 722 and fuzz_validate_and_gpu_3 seed 1599) are pre-existing on unmodified main on this GPU.

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: 92437bd3ebc7df5504604247055acd93e57fc46f
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1604 (PresentX 1604)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14365 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7171101734 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7171101734). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T18:34:44Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `92437bd3ebc7df5504604247055acd93e57fc46f` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1271 passed, 2 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). All native wave64 GPU tests ran and passed. - The PR's test passed: `gpu::recomp::lower_dxil::tests::compute_with_refuses_giant_programs_for_compact_fallback`. - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` seed 722 and `fuzz_validate_and_gpu_3` seed 1599) are pre-existing on unmodified `main` on this GPU. **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: 92437bd3ebc7df5504604247055acd93e57fc46f gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1604 (PresentX 1604) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14365 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
bmjask commented 2026-11-25 20:47:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:47:09Z.

Review: COMMENTED


No concrete source-level defect found. Giant-program refusal occurs before per-lane lowering and falls through to the existing direct_compute translator/auto-compact path; cache identity invalidates stale per-lane results. Current Windows CI and AMD smoke evidence are green. Nonblocking coverage gap: unit tests stop at refusal rather than proving end-to-end direct_compute fallback accepts the giant program, though external translation evidence covers it. I found no blocker.

<!-- greyfinch-sync:ivall/xcl:review:6064764980 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#pullrequestreview-6064764980). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:47:09Z. **Review:** COMMENTED --- No concrete source-level defect found. Giant-program refusal occurs before per-lane lowering and falls through to the existing direct_compute translator/auto-compact path; cache identity invalidates stale per-lane results. Current Windows CI and AMD smoke evidence are green. Nonblocking coverage gap: unit tests stop at refusal rather than proving end-to-end direct_compute fallback accepts the giant program, though external translation evidence covers it. I found no blocker.
zondy1i commented 2026-11-26 03:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by zondy1i on 2026-11-26T02:52:42Z.


Rebased onto current main (b49be183); the only conflict was in the test module of lower_dxil.rs (both sides appended a test at the end, kept both). Re-ran the full workspace suite (1436 passed, 0 failed) and a 60 s XCL_PER_LANE=1 smoke on the new head 45dbd47; description updated with the new smoke block.

<!-- greyfinch-sync:ivall/xcl:comment:7181197976 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7181197976). Originally posted by [zondy1i](https://github.com/zondy1i) on 2026-11-26T02:52:42Z. --- Rebased onto current `main` (`b49be183`); the only conflict was in the test module of `lower_dxil.rs` (both sides appended a test at the end, kept both). Re-ran the full workspace suite (1436 passed, 0 failed) and a 60 s `XCL_PER_LANE=1` smoke on the new head `45dbd47`; description updated with the new smoke block.
Decodere commented 2026-11-27 07:32:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T07:32:41Z.


Independent desktop NVIDIA verification of PR #2341 at head 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef (1 commit; exact parent & merge-base: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (45dbd47c)

Command Result
cargo test --release -p xcl --lib compute_with_refuses_giant_programs_for_compact_fallback -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 1336 filtered out × 3 (0.01s, 0.00s, 0.01s, 0 skipped)
cargo test --release -p xcl --lib gpu::recomp::lower_dxil:: -- --test-threads=4 (3 consecutive runs) 22 passed; 0 failed; 0 ignored; 1315 filtered out × 3 (0.56s × 3; 17 SKIPPED notices across 7 distinct tests — 14 no wave64 on Wave32-only Ada and 3 pre-existing #1426 per-lane refusals)
cargo build --release -p xcl Clean build (1m 36s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):

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

PR #2341 (45dbd47ccdfc6cc7daf14e30700b440c07cb77ef):

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

Runtime log observations (xcl.log)

  • 9224 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 460 hits, 0 misses, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19495 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 13972 MB committed by the process; video memory 6115 MB local, 4654 MB non-local.

Limits of coverage

  • The per-lane compute DXIL size cap (refusing oversized per-lane modules so giant shaders fall back to compact DXIL) was verified via compute_with_refuses_giant_programs_for_compact_fallback (3/3, 0 skipped) and gpu::recomp::lower_dxil:: (22/22 × 3).
  • The 60 s retail smoke confirms default-path non-regression on title: 29640639 (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR); cold NVIDIA driver compile time on giant XCL_PER_LANE=1 retail shaders was not separately benchmarked here.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7212575865 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7212575865). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T07:32:41Z. --- Independent desktop NVIDIA verification of **PR #2341** at head `45dbd47ccdfc6cc7daf14e30700b440c07cb77ef` (`1` commit; exact parent & merge-base: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`45dbd47c`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib compute_with_refuses_giant_programs_for_compact_fallback -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 1336 filtered out` × 3 (`0.01s`, `0.00s`, `0.01s`, `0` skipped) | | `cargo test --release -p xcl --lib gpu::recomp::lower_dxil:: -- --test-threads=4` (3 consecutive runs) | `22 passed; 0 failed; 0 ignored; 1315 filtered out` × 3 (`0.56s` × 3; `17` `SKIPPED` notices across `7` distinct tests — `14` `no wave64` on Wave32-only Ada and `3` pre-existing `#1426` per-lane refusals) | | `cargo build --release -p xcl` | Clean build (`1m 36s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, cached baseline on the same machine): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2341 (`45dbd47ccdfc6cc7daf14e30700b440c07cb77ef`): ``` xcl-smoke v1 commit: 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1578 (PresentX 1578) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13972 MB ``` ### Runtime log observations (`xcl.log`) - `9224` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `460` hits, `0` misses, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19495 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `13972 MB committed by the process; video memory 6115 MB local, 4654 MB non-local`. ### Limits of coverage - The per-lane compute DXIL size cap (refusing oversized per-lane modules so giant shaders fall back to compact DXIL) was verified via `compute_with_refuses_giant_programs_for_compact_fallback` (`3/3`, `0` skipped) and `gpu::recomp::lower_dxil::` (`22/22` × 3). - The 60 s retail smoke confirms default-path non-regression on `title: 29640639` (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR); cold NVIDIA driver compile time on giant `XCL_PER_LANE=1` retail shaders was not separately benchmarked here. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
thehollowedone commented 2026-11-27 09:56:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T09:56:26Z.


Independent Windows / RTX 3080 Ti check on #2341 head 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef, whose exact parent is b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.

Windows 11 build 26300, Ryzen 7 9800X3D, NVIDIA GeForce RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug. XCL_REQUIRE_GPU=1 and a writable local XCL_DXIL_CACHE were set.

  • cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --quiet --test-threads=4: 1,436 passed, 0 failed, 47 ignored across 37 test targets; exit 0. There were 25 explicit SKIPPED notices, included in Cargo's pass counts: 21 no-wave64 cases, three unsupported per-lane forms, and one heap-window case. These are not GPU coverage.
  • cargo test --offline --locked -j 4 -p xcl --lib compute_with_refuses_giant_programs_for_compact_fallback -- --test-threads=1: 1 passed, 0 failed, 0 ignored, no skip.

This verifies the synthetic suite and threshold test on another NVIDIA adapter. It does not measure driver compile memory or prove that the post-emission >1 MiB fallback chooses a smaller container: the focused test calls the size helper directly. #2796 uses a different, conditional fallback policy on amd-dev, so its AMD driver measurements should not be transferred to this PR. I did not run a title or a paired smoke for this independent report.

AI use: Codex (GPT-6.2 Sol) ran and checked the tests and drafted this report; Codex (GPT-6.2 Astra) independently reviewed the fallback paths and cross-PR distinction.

<!-- greyfinch-sync:ivall/xcl:comment:7215279449 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7215279449). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-27T09:56:26Z. --- Independent Windows / RTX 3080 Ti check on [#2341 head `45dbd47ccdfc6cc7daf14e30700b440c07cb77ef`](https://github.com/xcl-dev/xcl/commit/45dbd47ccdfc6cc7daf14e30700b440c07cb77ef), whose exact parent is [`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`](https://github.com/xcl-dev/xcl/commit/b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). Windows 11 build 26300, Ryzen 7 9800X3D, NVIDIA GeForce RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug. `XCL_REQUIRE_GPU=1` and a writable local `XCL_DXIL_CACHE` were set. - `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --quiet --test-threads=4`: **1,436 passed, 0 failed, 47 ignored** across 37 test targets; exit 0. There were **25 explicit `SKIPPED` notices**, included in Cargo's pass counts: 21 no-wave64 cases, three unsupported per-lane forms, and one heap-window case. These are not GPU coverage. - `cargo test --offline --locked -j 4 -p xcl --lib compute_with_refuses_giant_programs_for_compact_fallback -- --test-threads=1`: **1 passed, 0 failed, 0 ignored**, no skip. This verifies the synthetic suite and threshold test on another NVIDIA adapter. It does not measure driver compile memory or prove that the post-emission `>1 MiB` fallback chooses a smaller container: the focused test calls the size helper directly. [#2796](https://github.com/xcl-dev/xcl/pull/2796) uses a different, conditional fallback policy on `amd-dev`, so its AMD driver measurements should not be transferred to this PR. I did not run a title or a paired smoke for this independent report. AI use: Codex (GPT-6.2 Sol) ran and checked the tests and drafted this report; Codex (GPT-6.2 Astra) independently reviewed the fallback paths and cross-PR distinction.
throny commented 2026-11-28 23:26:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:26:27Z.


merge-check claim
head: 45dbd47ccd

<!-- greyfinch-sync:ivall/xcl:comment:7247432109 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7247432109). Originally posted by [throny](https://github.com/throny) on 2026-11-28T23:26:27Z. --- merge-check claim head: 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef
throny commented 2026-11-29 00:11:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:11:40Z.


merge-check
base: 851bf7f9
head: 45dbd47ccd
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2597 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at 851bf7f9: 2596 passed, 0 failed, 49 ignored. The three-way merge into main is clean (a plain patch apply is not: main added code next to it).
review: no blocking finding; all hunks read. A compute program over 20,000 decoded instructions (checked before lowering) or over 1 MiB of per-lane DXIL (checked after) is refused by the per-lane form, and the caller falls back to the compact form that is already there. Not redundant with #1809: that one chooses between the HLSL and the direct path; inside the direct path the per-lane form is still tried first. It only acts with XCL_PER_LANE=1 (off by default). Minor: the instruction count includes data after the program's end; there is no end-to-end test of the fallback; the title's prefix is not one of the listed areas.
performance: with the switch on, giant programs take the compact form (a tester in the thread measured 4.56 MB of per-lane DXIL avoided). It changes per-lane sources only: only per-lane cache entries are re-translated.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7247941018 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7247941018). Originally posted by [throny](https://github.com/throny) on 2026-11-29T00:11:40Z. --- merge-check base: 851bf7f9 head: 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2597 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at 851bf7f9: 2596 passed, 0 failed, 49 ignored. The three-way merge into main is clean (a plain patch apply is not: main added code next to it). review: no blocking finding; all hunks read. A compute program over 20,000 decoded instructions (checked before lowering) or over 1 MiB of per-lane DXIL (checked after) is refused by the per-lane form, and the caller falls back to the compact form that is already there. Not redundant with #1809: that one chooses between the HLSL and the direct path; inside the direct path the per-lane form is still tried first. It only acts with XCL_PER_LANE=1 (off by default). Minor: the instruction count includes data after the program's end; there is no end-to-end test of the fallback; the title's prefix is not one of the listed areas. performance: with the switch on, giant programs take the compact form (a tester in the thread measured 4.56 MB of per-lane DXIL avoided). It changes per-lane sources only: only per-lane cache entries are re-translated. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
throny commented 2026-11-29 00:47:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:47:02Z.


Note on my check above: #2796 (rewritten onto main, re-checked today) aims at the same thing and touches the same spot. If both land, this PR's refusals make most of #2796's routing unreachable, and the second to merge conflicts. So "safe to merge" here means safe on its own; one of the two should be chosen, not both (details).

AI use: Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7248347353 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7248347353). Originally posted by [throny](https://github.com/throny) on 2026-11-29T00:47:02Z. --- Note on my check above: #2796 (rewritten onto main, re-checked today) aims at the same thing and touches the same spot. If both land, this PR's refusals make most of #2796's routing unreachable, and the second to merge conflicts. So "safe to merge" here means safe on its own; one of the two should be chosen, not both ([details](https://github.com/xcl-dev/xcl/pull/2796)). AI use: Claude Code (Claude Fable 5.2).
tiagonleal commented 2026-11-29 11:15:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-29T11:15:10Z.


merge-check
base: d2ec83de14
head: 45dbd47ccd
merge: clean (trial merge bba9ad70, local, not pushed; git diff --check clean). main added 91 lines to lower_dxil.rs between d8bd9a38 and d2ec83de; the PR still merges without conflict.
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4 -> 2664 passed, 4 failed, 49 ignored; SKIPPED: 26 (21 "no wave64" on this GPU, 3 per-lane f16 forms refused, 2 "no heap windows"); failing: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 to _3, which fail on the base too (base alone: 2663 passed, 4 failed, 49 ignored). compute_with_refuses_giant_programs_for_compact_fallback passed.
review: whole diff read (+44/-2, lower_dxil.rs).

  1. #2796 (open) puts the same fallback in the same place with a different policy. If both land, this PR's refusals make most of #2796's routing unreachable, and the second one to merge conflicts. @throny said so above and I agree: this check is for the PR on its own.
  2. The instruction count is taken over the whole code buffer, so data after S_ENDPGM counts too. A program just under 20,000 instructions with trailing data falls back to the compact form. That costs speed for that program and nothing else.
  3. The test covers the instruction cap end to end (20,000 S_NOPs would lower fine without the change). The size cap is tested through check_dxil_size alone; no test reaches it after a real lowering.
  4. The refusal strings carry the measured numbers into coverage::record_fallback. I did not check whether that groups by the whole string.
  5. The title prefix recomp: is not one of the listed areas (Recompiler:).
    performance: the two refusals run only with XCL_PER_LANE=1, which is off by default; otherwise one length compare per compute program. A 60 s scripts/smoke.ps1 of the merged tree without that switch shows 1699 frames against 1623 and 1699 for two runs of the base, so the default path is unchanged. I did not run with XCL_PER_LANE=1.
    verdict: safe to merge
    hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (617.42), AMD Ryzen 7 9800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug suite and release smoke / Claude Code: Claude Fable 5.2 ran the merge, build, suite and smoke; Claude Opus 5.5 read the diff.
  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7254983996 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2341#issuecomment-7254983996). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-29T11:15:10Z. --- merge-check base: d2ec83de146a41c3e5a6b6aab3829f7f9395f01f head: 45dbd47ccdfc6cc7daf14e30700b440c07cb77ef merge: clean (trial merge bba9ad70, local, not pushed; `git diff --check` clean). `main` added 91 lines to `lower_dxil.rs` between `d8bd9a38` and `d2ec83de`; the PR still merges without conflict. build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4 -> 2664 passed, 4 failed, 49 ignored; SKIPPED: 26 (21 "no wave64" on this GPU, 3 per-lane f16 forms refused, 2 "no heap windows"); failing: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0` to `_3`, which fail on the base too (base alone: 2663 passed, 4 failed, 49 ignored). `compute_with_refuses_giant_programs_for_compact_fallback` passed. review: whole diff read (+44/-2, `lower_dxil.rs`). 1. #2796 (open) puts the same fallback in the same place with a different policy. If both land, this PR's refusals make most of #2796's routing unreachable, and the second one to merge conflicts. @throny said so above and I agree: this check is for the PR on its own. 2. The instruction count is taken over the whole code buffer, so data after `S_ENDPGM` counts too. A program just under 20,000 instructions with trailing data falls back to the compact form. That costs speed for that program and nothing else. 3. The test covers the instruction cap end to end (20,000 `S_NOP`s would lower fine without the change). The size cap is tested through `check_dxil_size` alone; no test reaches it after a real lowering. 4. The refusal strings carry the measured numbers into `coverage::record_fallback`. I did not check whether that groups by the whole string. 5. The title prefix `recomp:` is not one of the listed areas (`Recompiler:`). performance: the two refusals run only with `XCL_PER_LANE=1`, which is off by default; otherwise one length compare per compute program. A 60 s `scripts/smoke.ps1` of the merged tree without that switch shows 1699 frames against 1623 and 1699 for two runs of the base, so the default path is unchanged. I did not run with `XCL_PER_LANE=1`. verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 5070 Ti 16 GB (617.42), AMD Ryzen 7 9800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug suite and release smoke / Claude Code: Claude Fable 5.2 ran the merge, build, suite and smoke; Claude Opus 5.5 read the diff. - Tiago
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!2331
No description provided.