Recompiler: nest the compact dispatch of big programs by default #2015

Closed
Pipodi wants to merge 9 commits from upstream-pr/2025 into main
Pipodi commented 2026-11-25 01:08:56 +00:00 (Migrated from github.com)

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


Stacked on #2018 (f141b9d5, on #1692 5d9d3209, #1448 51f9a05a and #1316's commits rebased as b662d124..7c52d4f6, rebased onto main d52ff48c); only the top commit (30aaa283) belongs here. The stack now carries rebased and edited versions of #1316's commits: b662d124 (prepare() split), efc54bda (compact form), 6a3c753a (A/B tests) and 7c52d4f6 (compact backend). The edits: the conflicts against main's dispatch_remap / no_remap are resolved, efc54bda adds the test the_compact_form_keeps_the_dispatch_remap, and translate_as opens one ShaderTranslation span for the compact attempt and the normal form. #1316 itself still sits on an older main.

This revision: rebased onto main d52ff48c. In #1316's rebased backend commit (7c52d4f6) the conflicts with main are resolved: build.rs's translator sources (main's mod.rs in place of dxc.rs, with compact.rs), and in pso.rs the compact refusal tag now wraps main's compile_cached_in / compile_cached choice. main's semantic_pipeline_setting (shaders.rs) now lists XCL_COMPACT_CS (in 7c52d4f6) and XCL_COMPACT_NEST (in #1692's 421109bb), each with a test (warm_settings_keep_compact_cs_switch, warm_settings_keep_compact_nest_switch), so both change the warm-settings key. An earlier rebase (onto 0fe06eb0) threaded main's rt32_mask through #1316's rebased commits. In an earlier rebase, this PR's own commit had one conflict, in README.md, resolved by keeping both bullets. #1448's rebase (with #1316's commits) resolved conflicts in gpu/recomp/pso.rs (main's XCL_DEBUG_CS_SUB and rodata changes kept together with the compact routing; XCL_DEBUG_CS_SUB forces CompactCs::Never) and in shaders.rs, and fixed two places that no longer built after it: the super::translate path and the console_translation call in targets.rs.

With XCL_COMPACT_NEST unset, the compact form now uses auto from #2018: groups of 32 cases for a program of 512 cases or more, the flat switch below. XCL_COMPACT_NEST=0 keeps the flat form, and a power of two nests every program. An invalid value warns and keeps auto, the way XCL_COMPACT_CS keeps its default. Part of #1269.

Why: the flat switch over ActivateRays' 2,516 cases took 168 s and 8.1 GB in a cold NVIDIA driver build, against 36 s and 1.5 GB nested (RTX 4090, measurements). Testers measured the same programs with a fixed group size:

  • AMD Windows (RX 9060 XT, RX 9070): all three built in 9–60 s nested, where the flat form took minutes or did not finish.
  • RADV (RX 9070 XT): the flat form ran out of memory, the nested one built in 202 s. The ~700-case programs built 9 % faster and 28 % slower nested; the README says so.

What is in it

  • crates/xcl/src/gpu/recomp/compact.rs: nest_of reads the value (unset or invalid: Auto), nest_from_env keeps it once; test an_unset_nest_is_auto.
  • crates/xcl/src/gpu/recomp/pso.rs: comment only. Unset now names compact cache entries _c_na, as auto does. The translator sources change, so the cache's identity changes anyway.
  • crates/xcl/src/gpu/recomp/tests_compact.rs: a doc line. With XCL_SAMPLE_BIG_CS set, gpu_compact_sample_big_cs now runs the default (nested) form of a big sample.
  • README.md: what the default does, and XCL_COMPACT_NEST.

Tested

  • RTX 4090, driver 621.40, i9-13900K, Windows 11 Pro 10.0.26300, stable MSVC Rust (rustc 1.100.0 (0ef1bc386 2026-11-09)), debug build for the suite, release builds for the smoke runs.

  • Rebased onto main d52ff48c. The whole suite, cargo test --workspace --no-fail-fast -- --test-threads=4 (debug, RTX 4090), run on this head (30aaa283): 2916 passed, 1 failed, 51 ignored, 26 SKIPPED. 1 failed: gpu_direct_image_get_resinfo_d16, which fails on main d52ff48c too (broken by 43c56dce; fixed by test-only #3513).

  • SKIPPED lines of the workspace run, deduplicated (29):

    SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64
    SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu: bridged_dpp, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64
    SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
    SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
    SKIPPED gpu::recomp::tests_compact::gpu_compact_native_wave64_form: no wave64
    SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
    SKIPPED hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1)
    SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)
    
  • Fails without the change: with unset read as flat again, an_unset_nest_is_auto fails.

Regression run

The same retail title for 60 s on both sides, scripts/smoke.ps1 on clean trees, release builds, XCL_PREPARE=0 and XCL_PRESS_AT=16:A on both sides, RTX 4090 (driver 621.40).

main (6bfb5c51):

xcl-smoke v1
commit: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c
gpu: NVIDIA GeForce RTX 4090
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1611 (PresentX 1611)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 17826 MB

This PR's head (30aaa283, rebased onto main d52ff48c):

xcl-smoke v1
commit: 30aaa283a1a60cf0b8ffead18b160c02eb4149fd
gpu: NVIDIA GeForce RTX 4090
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 20681 MB

The PR's run got 99.7 % of main's frames and 116.0 % of its peak commit, higher than main's but within 125 %.

Not tested

  • A title run that reaches the compact form: in 60 s the title does not reach ActivateRays, so the smoke pair checks only that the rest still works. In a 300 s run of #1692 with groups of 32, the title built ActivateRays nested in 36 s; with the flat form it had not finished the build by the end of the run.
  • auto itself (as opposed to a fixed group size) on AMD, RADV and Intel; programs under 698 cases in the driver. @philip-roy-jones is measuring the threshold on an RX 580 (claim).
  • AMD / RDNA4 and wave64-only paths on this head: the suite and the smoke pair ran on the RTX 4090 only, where the 23 wave64 tests are SKIPPED.

AI use

  • Claude Code with Claude Opus 5.5 (the main session): wrote the change, ran the suite, did the rebases onto #2018's earlier heads, wrote this description. A second Opus 5.5 agent reviewed the diff. A Claude Sonnet 5.5 subagent ran the smoke pair on the previous head.
  • An earlier revision: Claude Code, Claude Opus 5.5 rebased the stack (with #1316's commits) onto an earlier main, resolved the conflicts against dispatch_remap / no_remap, added the test the_compact_form_keeps_the_dispatch_remap and the span in translate_as, and ran the suite and the smoke pair on that head.
  • A later rebase onto main, the conflict resolution, the test runs and that description update were done with Claude Code (Claude Opus 5.5 orchestrating, Claude Sonnet 5.5 subagents).
  • The revision two before this one: Claude Code with Claude Opus 5.5 (the main session) did a rebase onto main and the conflict resolution, ran the suite and the smoke pair through subagents, and updated this description. A Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolutions).
  • The revision before this one: Claude Code, Claude Opus 5.5: rebased the branch, resolved the conflicts, updated this description; Claude Sonnet 5.5 subagents ran the tests and the smoke runs; a Claude Opus 5.5 reviewer agent checked the rebase (range-diff).
  • The rebase onto main 0fe06eb0: Claude Code, Claude Opus 5.5 (with subagents): the rebase, the suite and smoke runs, and this description update.
  • Rebase onto d52ff48c, counts and description update: Claude Code, Claude Opus 5.5
  • This revision: Claude Code, Claude Opus 5.5 (main session) rebased this commit onto #2018's f141b9d5 (no change of its own) and updated this description; subagents ran the suite and the smoke pair.
<!-- greyfinch-sync:ivall/xcl:issue:5483142821 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-25T01:08:56Z. --- Stacked on #2018 (`f141b9d5`, on #1692 `5d9d3209`, #1448 `51f9a05a` and #1316's commits rebased as `b662d124`..`7c52d4f6`, rebased onto main d52ff48c); only the top commit (`30aaa283`) belongs here. The stack now carries rebased and edited versions of #1316's commits: `b662d124` (prepare() split), `efc54bda` (compact form), `6a3c753a` (A/B tests) and `7c52d4f6` (compact backend). The edits: the conflicts against `main`'s `dispatch_remap` / `no_remap` are resolved, `efc54bda` adds the test `the_compact_form_keeps_the_dispatch_remap`, and `translate_as` opens one `ShaderTranslation` span for the compact attempt and the normal form. #1316 itself still sits on an older `main`. This revision: rebased onto main d52ff48c. In #1316's rebased backend commit (`7c52d4f6`) the conflicts with `main` are resolved: `build.rs`'s translator sources (`main`'s `mod.rs` in place of `dxc.rs`, with `compact.rs`), and in `pso.rs` the compact refusal tag now wraps `main`'s `compile_cached_in` / `compile_cached` choice. `main`'s `semantic_pipeline_setting` (`shaders.rs`) now lists `XCL_COMPACT_CS` (in `7c52d4f6`) and `XCL_COMPACT_NEST` (in #1692's `421109bb`), each with a test (`warm_settings_keep_compact_cs_switch`, `warm_settings_keep_compact_nest_switch`), so both change the warm-settings key. An earlier rebase (onto 0fe06eb0) threaded `main`'s `rt32_mask` through #1316's rebased commits. In an earlier rebase, this PR's own commit had one conflict, in `README.md`, resolved by keeping both bullets. #1448's rebase (with #1316's commits) resolved conflicts in `gpu/recomp/pso.rs` (`main`'s `XCL_DEBUG_CS_SUB` and rodata changes kept together with the compact routing; `XCL_DEBUG_CS_SUB` forces `CompactCs::Never`) and in `shaders.rs`, and fixed two places that no longer built after it: the `super::translate` path and the `console_translation` call in `targets.rs`. With `XCL_COMPACT_NEST` unset, the compact form now uses `auto` from #2018: groups of 32 cases for a program of 512 cases or more, the flat switch below. `XCL_COMPACT_NEST=0` keeps the flat form, and a power of two nests every program. An invalid value warns and keeps `auto`, the way `XCL_COMPACT_CS` keeps its default. Part of #1269. Why: the flat switch over ActivateRays' 2,516 cases took 168 s and 8.1 GB in a cold NVIDIA driver build, against 36 s and 1.5 GB nested (RTX 4090, [measurements](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7147839747)). Testers measured the same programs with a fixed group size: - AMD Windows ([RX 9060 XT](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7147677753), [RX 9070](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7148759631)): all three built in 9–60 s nested, where the flat form took minutes or did not finish. - RADV ([RX 9070 XT](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7148602265)): the flat form ran out of memory, the nested one built in 202 s. The [~700-case programs](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7148795610) built 9 % faster and 28 % slower nested; the README says so. **What is in it** - `crates/xcl/src/gpu/recomp/compact.rs`: `nest_of` reads the value (unset or invalid: `Auto`), `nest_from_env` keeps it once; test `an_unset_nest_is_auto`. - `crates/xcl/src/gpu/recomp/pso.rs`: comment only. Unset now names compact cache entries `_c_na`, as `auto` does. The translator sources change, so the cache's identity changes anyway. - `crates/xcl/src/gpu/recomp/tests_compact.rs`: a doc line. With `XCL_SAMPLE_BIG_CS` set, `gpu_compact_sample_big_cs` now runs the default (nested) form of a big sample. - `README.md`: what the default does, and `XCL_COMPACT_NEST`. **Tested** - RTX 4090, driver 621.40, i9-13900K, Windows 11 Pro 10.0.26300, stable MSVC Rust (`rustc 1.100.0 (0ef1bc386 2026-11-09)`), debug build for the suite, release builds for the smoke runs. - Rebased onto main d52ff48c. The whole suite, `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug, RTX 4090), run on this head (`30aaa283`): **2916 passed, 1 failed, 51 ignored, 26 SKIPPED**. 1 failed: `gpu_direct_image_get_resinfo_d16`, which fails on main d52ff48c too (broken by 43c56dce; fixed by test-only #3513). - SKIPPED lines of the workspace run, deduplicated (29): ``` SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64 SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu: bridged_dpp, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED gpu::recomp::tests_compact::gpu_compact_native_wave64_form: no wave64 SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap: no heap windows (opt-in: XCL_HEAP_WINDOWS=1) SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D) ``` - Fails without the change: with unset read as flat again, `an_unset_nest_is_auto` fails. **Regression run** The same retail title for 60 s on both sides, `scripts/smoke.ps1` on clean trees, release builds, `XCL_PREPARE=0` and `XCL_PRESS_AT=16:A` on both sides, RTX 4090 (driver 621.40). main (`6bfb5c51`): ``` xcl-smoke v1 commit: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c gpu: NVIDIA GeForce RTX 4090 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1611 (PresentX 1611) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 17826 MB ``` This PR's head (`30aaa283`, rebased onto main d52ff48c): ``` xcl-smoke v1 commit: 30aaa283a1a60cf0b8ffead18b160c02eb4149fd gpu: NVIDIA GeForce RTX 4090 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1606 (PresentX 1606) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 20681 MB ``` The PR's run got 99.7 % of `main`'s frames and 116.0 % of its peak commit, higher than `main`'s but within 125 %. **Not tested** - A title run that reaches the compact form: in 60 s the title does not reach `ActivateRays`, so the smoke pair checks only that the rest still works. In a 300 s run of #1692 with groups of 32, the title built ActivateRays nested in 36 s; with the flat form it had not finished the build by the end of the run. - `auto` itself (as opposed to a fixed group size) on AMD, RADV and Intel; programs under 698 cases in the driver. @philip-roy-jones is measuring the threshold on an RX 580 ([claim](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7149073398)). - AMD / RDNA4 and wave64-only paths on this head: the suite and the smoke pair ran on the RTX 4090 only, where the 23 wave64 tests are SKIPPED. **AI use** - Claude Code with Claude Opus 5.5 (the main session): wrote the change, ran the suite, did the rebases onto #2018's earlier heads, wrote this description. A second Opus 5.5 agent reviewed the diff. A Claude Sonnet 5.5 subagent ran the smoke pair on the previous head. - An earlier revision: Claude Code, Claude Opus 5.5 rebased the stack (with #1316's commits) onto an earlier `main`, resolved the conflicts against `dispatch_remap` / `no_remap`, added the test `the_compact_form_keeps_the_dispatch_remap` and the span in `translate_as`, and ran the suite and the smoke pair on that head. - A later rebase onto `main`, the conflict resolution, the test runs and that description update were done with Claude Code (Claude Opus 5.5 orchestrating, Claude Sonnet 5.5 subagents). - The revision two before this one: Claude Code with Claude Opus 5.5 (the main session) did a rebase onto `main` and the conflict resolution, ran the suite and the smoke pair through subagents, and updated this description. A Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolutions). - The revision before this one: Claude Code, Claude Opus 5.5: rebased the branch, resolved the conflicts, updated this description; Claude Sonnet 5.5 subagents ran the tests and the smoke runs; a Claude Opus 5.5 reviewer agent checked the rebase (range-diff). - The rebase onto main 0fe06eb0: Claude Code, Claude Opus 5.5 (with subagents): the rebase, the suite and smoke runs, and this description update. - Rebase onto d52ff48c, counts and description update: Claude Code, Claude Opus 5.5 - This revision: Claude Code, Claude Opus 5.5 (main session) rebased this commit onto #2018's `f141b9d5` (no change of its own) and updated this description; subagents ran the suite and the smoke pair.
nnonno91 commented 2026-11-25 02:08:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T01:13:42Z.


Tested

Independent GPU and translated-cache check on 06489ea27c0f657263a948f244ca80373bd0f8fa. Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64), and GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 x64 MSVC, DXC/DXIL 1.8.2502.11, unoptimized dev/test profiles with debug info off.

  • cargo build --workspace --locked passed.
  • cargo test --locked -p xcl --lib gpu::recomp::compact::tests -- --test-threads=1 --nocapture passed 7 tests on AMD, and the same command with the filter shader_cache_tests passed 16. Zero failed, ignored, or skipped.
  • cargo test --locked -p xcl --test compact_default_gpu_probe -- --exact default_compact_mode_and_cache_on_gpu --test-threads=1 --nocapture passed in all five settings on each adapter (1 passed, 0 failed, 0 ignored, 0 skipped per process). The temporary probe used synthetic 511- and 512-case FSPX compute shaders through console_hlsl, console_to_dxil_in, and D3D12 dispatch. XCL_COMPACT_CS=1 forced these fixtures onto the compact backend. All 64 output words for each shader matched the CPU sum in every setting on both GPUs.
XCL_COMPACT_NEST 511 cases 512 cases Translated-cache suffix
Unset, auto, or invalid Flat 16 groups of 32 _c_na
0 Flat Flat _c
32 16 groups 16 groups _c_n32

On each adapter, the unset run populated a fresh cache. Explicit auto and an invalid string both reused those entries in separate cached-only processes, with one hit and zero compiler calls per shader. The invalid string emitted the fallback warning. The flat and fixed modes created their own translated-cache entries without replacing the automatic ones. HLSL and DXIL matched byte for byte between the default and the corresponding explicit control at each boundary.

Not tested

Real titles, automatic selection of the compact backend, controlled compile timings, gameplay performance, RADV, or the full workspace test suite.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) prepared and ran the temporary probe, checked the output, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7149334500 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7149334500). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T01:13:42Z. --- **Tested** Independent GPU and translated-cache check on `06489ea27c0f657263a948f244ca80373bd0f8fa`. Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, AMD Radeon(TM) Graphics (32.0.21042.62, native wave64), and GeForce RTX 5090 (32.0.16.1742, split wave64). Rust 1.100.0 x64 MSVC, DXC/DXIL 1.8.2502.11, unoptimized dev/test profiles with debug info off. - `cargo build --workspace --locked` passed. - `cargo test --locked -p xcl --lib gpu::recomp::compact::tests -- --test-threads=1 --nocapture` passed 7 tests on AMD, and the same command with the filter `shader_cache_tests` passed 16. Zero failed, ignored, or skipped. - `cargo test --locked -p xcl --test compact_default_gpu_probe -- --exact default_compact_mode_and_cache_on_gpu --test-threads=1 --nocapture` passed in all five settings on each adapter (1 passed, 0 failed, 0 ignored, 0 skipped per process). The temporary probe used synthetic 511- and 512-case FSPX compute shaders through `console_hlsl`, `console_to_dxil_in`, and D3D12 dispatch. `XCL_COMPACT_CS=1` forced these fixtures onto the compact backend. All 64 output words for each shader matched the CPU sum in every setting on both GPUs. | `XCL_COMPACT_NEST` | 511 cases | 512 cases | Translated-cache suffix | | --- | --- | --- | --- | | Unset, `auto`, or invalid | Flat | 16 groups of 32 | `_c_na` | | `0` | Flat | Flat | `_c` | | `32` | 16 groups | 16 groups | `_c_n32` | On each adapter, the unset run populated a fresh cache. Explicit `auto` and an invalid string both reused those entries in separate cached-only processes, with one hit and zero compiler calls per shader. The invalid string emitted the fallback warning. The flat and fixed modes created their own translated-cache entries without replacing the automatic ones. HLSL and DXIL matched byte for byte between the default and the corresponding explicit control at each boundary. **Not tested** Real titles, automatic selection of the compact backend, controlled compile timings, gameplay performance, RADV, or the full workspace test suite. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) prepared and ran the temporary probe, checked the output, and drafted this report.
raylitebull commented 2026-11-25 02:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T02:06:10Z.


Independent AMD RDNA2 + NVIDIA RTX 5090 checks on \

<!-- greyfinch-sync:ivall/xcl:comment:7150319060 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7150319060). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T02:06:10Z. --- Independent AMD RDNA2 + NVIDIA RTX 5090 checks on \
ettehn commented 2026-11-25 04:10:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T03:10:12Z.


Independent cold-compile timings on RTX 5070 Ti Laptop

Tested 06489ea27c0f657263a948f244ca80373bd0f8fa in release on Windows 11 26200.9974, RTX 5070 Ti Laptop (driver 621.24), Ryzen 9 8945HX, DXC 1.8.2502.11 and Rust 1.97.1. Used xcl shaders <pack> --measure-pso <record> --repeat 1 --windows 4, with XCL_COMPACT_CS=1, XCL_HEAP_WINDOWS=1 and XCL_PSO_DISK_CACHE=0. Each run used a fresh process and the tool disabled the implicit driver caches. Reversed the order for the flat, 32 and 64 repeats. All 21 PSO builds succeeded.

Seconds for DXC plus D3D12 PSO creation, excluding archive lookup and HLSL emission:

Record Flat Groups of 16 Groups of 32 Groups of 64
ActivateProbes 56c0cd3b82a00c6e 14.07–14.31 13.68 12.33–12.37 10.94–11.23
ActivateProbesTarget 958400d2caf07244 22.22–22.51 20.82 19.71–19.88 17.88–18.02
ActivateRays 95cc13288a27a96e 42.12–42.70 28.68 27.23–27.25 26.10–26.82

For ActivateRays, flat → 32 reduced DXC from 20.29–20.95 s to 7.78–7.81 s and driver creation from 21.75–21.83 s to 19.42–19.47 s. For ActivateProbes, 32 improved the combined time even though driver creation alone rose from 6.48–6.56 s to 7.40–7.42 s. Groups of 64 were slightly faster overall on this adapter and emitted 6–7% larger DXIL than groups of 32. This is one adapter and one driver version.

The compact unit-test filter and gpu_compact_nested_dispatch passed (8 total, zero failed, ignored or skipped). The retail PSOs were created but never dispatched. Retail output parity and title behavior remain untested in this run.

AI use: OpenAI Codex (GPT-6.2 Sol) assisted with benchmark setup and verification.

<!-- greyfinch-sync:ivall/xcl:comment:7151657249 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7151657249). Originally posted by [ettehn](https://github.com/ettehn) on 2026-11-25T03:10:12Z. --- **Independent cold-compile timings on RTX 5070 Ti Laptop** Tested `06489ea27c0f657263a948f244ca80373bd0f8fa` in release on Windows 11 26200.9974, RTX 5070 Ti Laptop (driver 621.24), Ryzen 9 8945HX, DXC 1.8.2502.11 and Rust 1.97.1. Used `xcl shaders <pack> --measure-pso <record> --repeat 1 --windows 4`, with `XCL_COMPACT_CS=1`, `XCL_HEAP_WINDOWS=1` and `XCL_PSO_DISK_CACHE=0`. Each run used a fresh process and the tool disabled the implicit driver caches. Reversed the order for the flat, 32 and 64 repeats. All 21 PSO builds succeeded. Seconds for DXC plus D3D12 PSO creation, excluding archive lookup and HLSL emission: | Record | Flat | Groups of 16 | Groups of 32 | Groups of 64 | |---|---:|---:|---:|---:| | ActivateProbes `56c0cd3b82a00c6e` | 14.07–14.31 | 13.68 | 12.33–12.37 | 10.94–11.23 | | ActivateProbesTarget `958400d2caf07244` | 22.22–22.51 | 20.82 | 19.71–19.88 | 17.88–18.02 | | ActivateRays `95cc13288a27a96e` | 42.12–42.70 | 28.68 | 27.23–27.25 | 26.10–26.82 | For ActivateRays, flat → 32 reduced DXC from 20.29–20.95 s to 7.78–7.81 s and driver creation from 21.75–21.83 s to 19.42–19.47 s. For ActivateProbes, 32 improved the combined time even though driver creation alone rose from 6.48–6.56 s to 7.40–7.42 s. Groups of 64 were slightly faster overall on this adapter and emitted 6–7% larger DXIL than groups of 32. This is one adapter and one driver version. The compact unit-test filter and `gpu_compact_nested_dispatch` passed (8 total, zero failed, ignored or skipped). The retail PSOs were created but never dispatched. Retail output parity and title behavior remain untested in this run. AI use: OpenAI Codex (GPT-6.2 Sol) assisted with benchmark setup and verification.
ettehn commented 2026-11-25 04:10:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ettehn on 2026-11-25T03:26:52Z.


Follow-up experiment: group nested cases by similar register writes

On the same 06489ea Windows / RTX 5070 Ti Laptop setup as above, I kept groups of 32 and prototyped a stable sort of compact cases by the set of directly assigned SGPRs/VGPRs. The block-to-case table was remapped; block order and branch targets were kept. This was a local experiment using emitted assignments as a heuristic.

  • ActivateRays (95cc13288a27a96e), -O1, two independent cache-off runs per arm in original/reordered/reordered/original order. Driver PSO time 19.17–19.45 → 15.44–15.48 s, DXC 7.71–7.73 → 7.18–7.22 s. DXIL 919,948 → 827,732 B; the SDK DXC disassembly has 79,432 → 58,442 phi incoming operands.
  • ActivateProbes (56c0cd3b82a00c6e), one build per arm at each level. At -O3, driver time 7.54 → 5.78 s, but DXC 5.00 → 18.53 s. At -O1, DXC still grew 4.79 → 18.36 s. This is an end-to-end compile regression for this record.
  • ActivateProbesTarget (958400d2caf07244), one build per arm per level. At -O3, DXC + driver 19.53 → 20.41 s. At -O1, 19.35 → 20.21 s.

The existing synthetic GPU test gpu_compact_nested_dispatch passed with the reordered cases (1 passed, no skip). Retail PSOs were only built. This is evidence for investigating a targeted optimization for the largest switches; I would keep the current default grouping while the reason for the DXC regression and retail output parity are unresolved.

AI use: OpenAI Codex (GPT-6.2 Sol) assisted with prototyping and verification.

<!-- greyfinch-sync:ivall/xcl:comment:7151922642 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7151922642). Originally posted by [ettehn](https://github.com/ettehn) on 2026-11-25T03:26:52Z. --- **Follow-up experiment: group nested cases by similar register writes** On the same `06489ea` Windows / RTX 5070 Ti Laptop setup as above, I kept groups of 32 and prototyped a stable sort of compact cases by the set of directly assigned SGPRs/VGPRs. The block-to-case table was remapped; block order and branch targets were kept. This was a local experiment using emitted assignments as a heuristic. - **ActivateRays** (`95cc13288a27a96e`), `-O1`, two independent cache-off runs per arm in original/reordered/reordered/original order. Driver PSO time **19.17–19.45 → 15.44–15.48 s**, DXC **7.71–7.73 → 7.18–7.22 s**. DXIL **919,948 → 827,732 B**; the SDK DXC disassembly has **79,432 → 58,442 phi incoming operands**. - **ActivateProbes** (`56c0cd3b82a00c6e`), one build per arm at each level. At `-O3`, driver time **7.54 → 5.78 s**, but DXC **5.00 → 18.53 s**. At `-O1`, DXC still grew **4.79 → 18.36 s**. This is an end-to-end compile regression for this record. - **ActivateProbesTarget** (`958400d2caf07244`), one build per arm per level. At `-O3`, DXC + driver **19.53 → 20.41 s**. At `-O1`, **19.35 → 20.21 s**. The existing synthetic GPU test `gpu_compact_nested_dispatch` passed with the reordered cases (1 passed, no skip). Retail PSOs were only built. This is evidence for investigating a targeted optimization for the largest switches; I would keep the current default grouping while the reason for the DXC regression and retail output parity are unresolved. AI use: OpenAI Codex (GPT-6.2 Sol) assisted with prototyping and verification.
DavidM1911 commented 2026-11-25 05:08:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:12:20Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main (crates/xcl/src/gpu/recomp/pso.rs) — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7152627412 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7152627412). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:12:20Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** (`crates/xcl/src/gpu/recomp/pso.rs`) — needs a rebase before it can be tested.
Diskuss commented 2026-11-25 09:08:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Diskuss on 2026-11-25T08:25:21Z.


Tested on AMD Radeon RX 9070 XT (RDNA4) at f698c22623c5ef846da3d0449679921c39a1d7a9 (bare head, not merged with main; it is 3 commits behind main 568e7db). Covers the whole compact stack (#1448, #1692, #2018) per the #1269 request.

Windows 11 Pro 26300.9974, Ryzen 7 5700X3D, 32 GB, driver 32.0.32015.7029, Rust 1.100.0 msvc, DXC 1.9.2602.17, debug build, D3D12 debug layer installed.

Tested

  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1189 passed, 2 failed, 46 ignored. No DXGI_ERROR_DEVICE_REMOVED.
  • Failures: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 and _3 (panic at fuzz_tests.rs:1171, e.g. seed 722 res[30] = 0x1, CPU 0x7fffffff). These are the same two failures as on main 568e7db (1152 passed / 2 failed / 46 ignored, known AMD issue #2115); nothing new fails. Passed count is +37 vs main from the stack's added tests; ignored is unchanged.
  • SKIPPED lines (8):
    • f16_programs_on_the_gpu x4 (f16 arithmetic and f16 packed, wave32 and wave64, per-lane form): refused, unsupported V_MUL_F16 / V_PK_MUL_F16 VOP3 modifiers (#1426 semantics)
    • f32_programs_on_the_gpu x2 (f32 conversions, wave32 and wave64): refused, unsupported V_CVT_F16_F32
    • shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode required, 0x887A002D)
    • heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows

Not tested: no smoke: our only title (The Matrix Awakens) stops before shader compile on main at CreateCommandSignature E_INVALIDARG (#1887), so a smoke on this stack alone would only show that crash. Release build not tested.

Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.

<!-- greyfinch-sync:ivall/xcl:comment:7157005219 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7157005219). Originally posted by [Diskuss](https://github.com/Diskuss) on 2026-11-25T08:25:21Z. --- **Tested on AMD Radeon RX 9070 XT (RDNA4) at `f698c22623c5ef846da3d0449679921c39a1d7a9`** (bare head, not merged with main; it is 3 commits behind main 568e7db). Covers the whole compact stack (#1448, #1692, #2018) per the #1269 request. Windows 11 Pro 26300.9974, Ryzen 7 5700X3D, 32 GB, driver 32.0.32015.7029, Rust 1.100.0 msvc, DXC 1.9.2602.17, debug build, D3D12 debug layer installed. **Tested** - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **1189 passed, 2 failed, 46 ignored**. No DXGI_ERROR_DEVICE_REMOVED. - Failures: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` and `_3` (panic at fuzz_tests.rs:1171, e.g. seed 722 `res[30] = 0x1, CPU 0x7fffffff`). These are the same two failures as on main 568e7db (1152 passed / 2 failed / 46 ignored, known AMD issue #2115); nothing new fails. Passed count is +37 vs main from the stack's added tests; ignored is unchanged. - SKIPPED lines (8): - `f16_programs_on_the_gpu` x4 (f16 arithmetic and f16 packed, wave32 and wave64, per-lane form): refused, unsupported V_MUL_F16 / V_PK_MUL_F16 VOP3 modifiers (#1426 semantics) - `f32_programs_on_the_gpu` x2 (f32 conversions, wave32 and wave64): refused, unsupported V_CVT_F16_F32 - `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record`: cannot disable the driver cache (Windows Developer Mode required, 0x887A002D) - `heap_window_out_of_memory_falls_back_to_the_switch_form`: no heap windows **Not tested**: no smoke: our only title (The Matrix Awakens) stops before shader compile on main at CreateCommandSignature E_INVALIDARG (#1887), so a smoke on this stack alone would only show that crash. Release build not tested. Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.
itsSio commented 2026-11-25 09:08:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T08:41:50Z.


Tested

Independent Windows GPU check at clean PR head f698c22623c5ef846da3d0449679921c39a1d7a9 (no local merge or patches), following the #1269 request. Both machines ran cargo build --workspace --locked (exit 0) and cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture (exit 0). Unoptimized MSVC dev/test profiles, debug info off, default XCL shader options, no XCL_SAMPLE_* variables.

GPU and driver System and toolchain Passed / failed / ignored SKIPPED events
GeForce RTX 5080, 32.0.16.1088 Windows 11 Pro 26200, Ryzen 7 9800X3D, 32 GiB, Rust 1.97.0, DXC 1.9.2609.5 1191 / 0 / 46 26
GeForce RTX 2080 SUPER, 32.0.16.1088 Windows 11 Pro 26200, Ryzen 5 5600X, 16 GiB, Rust 1.99.1, DXC 1.8.2502.11 1191 / 0 / 46 28

Both NVIDIA runs logged 21 native-wave64 skips (including gpu_compact_native_wave64_form), three per-lane cases refused (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32), no heap windows (heap_window_out_of_memory_falls_back_to_the_switch_form), and no driver-cache disable support (pso_measurement_compiles_an_exact_synthetic_record, 0x887A002D). The RTX 2080 SUPER also lacked the D3D12 debug layer for test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state. Runtime skips are reported separately from Rust's ignored count.

On the 9800X3D's Radeon RDNA2 iGPU (driver 32.0.21043.5001), XCL_ADAPTER=radeon cargo test -p xcl --lib --locked gpu::recomp::tests_compact -- --test-threads=1 --nocapture gave 25 passed / 0 failed / 0 ignored, no runtime skips, including native-wave64 compact and nested-vs-flat dispatch coverage.

Not tested: Full workspace on AMD, retail smoke, game shader samples, or compile-time performance. No speedup is inferred from suite duration.

AI use

Ran via Samaritan:

  • OpenCode with OpenAI GPT-6.2 Sol: scoped the check, ran both Windows builds and GPU tests, checked counts and skips, and drafted the report.
  • OpenCode with Claude Opus 5.5: independently checked campaign overlap, the current PR-head request, and maintainer feedback.
<!-- greyfinch-sync:ivall/xcl:comment:7157357816 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7157357816). Originally posted by [itsSio](https://github.com/itsSio) on 2026-11-25T08:41:50Z. --- **Tested** Independent Windows GPU check at clean PR head `f698c22623c5ef846da3d0449679921c39a1d7a9` (no local merge or patches), following the [#1269 request](https://github.com/xcl-dev/xcl/issues/1269#issuecomment-7156734608). Both machines ran `cargo build --workspace --locked` (exit 0) and `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture` (exit 0). Unoptimized MSVC dev/test profiles, debug info off, default XCL shader options, no `XCL_SAMPLE_*` variables. | GPU and driver | System and toolchain | Passed / failed / ignored | `SKIPPED` events | | --- | --- | ---: | ---: | | GeForce RTX 5080, `32.0.16.1088` | Windows 11 Pro 26200, Ryzen 7 9800X3D, 32 GiB, Rust 1.97.0, DXC 1.9.2609.5 | 1191 / 0 / 46 | 26 | | GeForce RTX 2080 SUPER, `32.0.16.1088` | Windows 11 Pro 26200, Ryzen 5 5600X, 16 GiB, Rust 1.99.1, DXC 1.8.2502.11 | 1191 / 0 / 46 | 28 | Both NVIDIA runs logged 21 native-wave64 skips (including `gpu_compact_native_wave64_form`), three per-lane cases refused (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32`), no heap windows (`heap_window_out_of_memory_falls_back_to_the_switch_form`), and no driver-cache disable support (`pso_measurement_compiles_an_exact_synthetic_record`, `0x887A002D`). The RTX 2080 SUPER also lacked the D3D12 debug layer for `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state`. Runtime skips are reported separately from Rust's ignored count. On the 9800X3D's Radeon RDNA2 iGPU (driver `32.0.21043.5001`), `XCL_ADAPTER=radeon cargo test -p xcl --lib --locked gpu::recomp::tests_compact -- --test-threads=1 --nocapture` gave **25 passed / 0 failed / 0 ignored, no runtime skips**, including native-wave64 compact and nested-vs-flat dispatch coverage. **Not tested:** Full workspace on AMD, retail smoke, game shader samples, or compile-time performance. No speedup is inferred from suite duration. **AI use** Ran via Samaritan: - OpenCode with OpenAI GPT-6.2 Sol: scoped the check, ran both Windows builds and GPU tests, checked counts and skips, and drafted the report. - OpenCode with Claude Opus 5.5: independently checked campaign overlap, the current PR-head request, and maintainer feedback.
moombathepilot commented 2026-11-25 09:08:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by moombathepilot on 2026-11-25T09:02:29Z.


Tested — RX 7800 XT on Windows

Clean PR head f698c22623c5ef846da3d0449679921c39a1d7a9. Ryzen 7 5700X3D, RX 7800 XT (driver 32.0.32029.2010), Windows 11, Rust 1.100.0 MSVC, DXC 1.9.2602.17.

  • cargo build --locked --workspace passed. cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output: 1,190 passed, 1 failed, 46 ignored across 21 result blocks.
  • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 failed on seed 722 (res[30] = 0x1, CPU 0x7fffffff). The same mismatch reproduced on parent 5040ea1ef4807af4732dcbfaed1789226c39c4e0 (#2018), consistent with #2115. The first run also hit console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (DXIL not compiled yet). That test passed on the full rerun and in isolation on the parent.
  • Runtime skips (10): four per-lane f16 arithmetic/packed cases (V_MUL_F16, V_PK_MUL_F16), two per-lane f32 conversion cases (V_CVT_F16_F32), pso_measurement_compiles_an_exact_synthetic_record (driver-cache disable unavailable, 0x887A002D), test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state (D3D12 debug layer unavailable), and heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows). The PLS junction subcase also logged mklink /J unavailable.

Retail startup smoke

Release build, scripts/smoke.ps1 -Seconds 60 with a fresh XCL data root and DXIL cache, networking off, no injected input.

xcl-smoke v1
commit: f698c22623c5ef846da3d0449679921c39a1d7a9
gpu: AMD Radeon RX 7800 XT
title: 817b32af
seconds: 60
exit: 0x0
frames shown: 918 (PresentX 918)
presents per 2 s (last 3): 49 60 60
device removals: 0
crashes: 0
peak commit: 15757 MB

Not tested

World loading, retail shader compile-time performance, or a paired startup comparison.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) ran the builds, tests and smoke, compared the failing tests against the parent, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7157794629 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7157794629). Originally posted by [moombathepilot](https://github.com/moombathepilot) on 2026-11-25T09:02:29Z. --- **Tested — RX 7800 XT on Windows** Clean PR head `f698c22623c5ef846da3d0449679921c39a1d7a9`. Ryzen 7 5700X3D, RX 7800 XT (driver `32.0.32029.2010`), Windows 11, Rust 1.100.0 MSVC, DXC 1.9.2602.17. - `cargo build --locked --workspace` passed. `cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output`: **1,190 passed, 1 failed, 46 ignored** across 21 result blocks. - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` failed on seed 722 (`res[30] = 0x1`, CPU `0x7fffffff`). The same mismatch reproduced on parent `5040ea1ef4807af4732dcbfaed1789226c39c4e0` (#2018), consistent with #2115. The first run also hit `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (`DXIL not compiled yet`). That test passed on the full rerun and in isolation on the parent. - **Runtime skips (10):** four per-lane f16 arithmetic/packed cases (`V_MUL_F16`, `V_PK_MUL_F16`), two per-lane f32 conversion cases (`V_CVT_F16_F32`), `pso_measurement_compiles_an_exact_synthetic_record` (driver-cache disable unavailable, `0x887A002D`), `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state` (D3D12 debug layer unavailable), and `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). The PLS junction subcase also logged `mklink /J` unavailable. **Retail startup smoke** Release build, `scripts/smoke.ps1 -Seconds 60` with a fresh XCL data root and DXIL cache, networking off, no injected input. ``` xcl-smoke v1 commit: f698c22623c5ef846da3d0449679921c39a1d7a9 gpu: AMD Radeon RX 7800 XT title: 817b32af seconds: 60 exit: 0x0 frames shown: 918 (PresentX 918) presents per 2 s (last 3): 49 60 60 device removals: 0 crashes: 0 peak commit: 15757 MB ``` **Not tested** World loading, retail shader compile-time performance, or a paired startup comparison. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) ran the builds, tests and smoke, compared the failing tests against the parent, and drafted this report.
upipibi commented 2026-11-25 09:08:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T08:40:57Z.


NVIDIA test report for f698c22 (base 6e1e2be), as asked in #1269; it covers the stack from #1316 through #2018. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, the PR head as it is.

  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1190 passed, 1 failed, 46 ignored.
    • The one failure is test_title_runs_and_game_folder_is_untouched, because my build step ran only cargo build --workspace --tests, so xcl_testtitle.exe and testgame_mw.dll, built from the repository's tests/testtitle, were missing (the panic says "build first: cargo build --workspace"). So the end-to-end test did not run here. With a full build (cargo build --workspace && cargo build --workspace --tests), cargo test -p xcl --test e2e gives 3 passed, 0 failed at f698c22, and 3 passed, 0 failed on main 568e7db. So nothing failed on this head here.
    • SKIPPED: 26, mostly no wave64 (the wave64 parity and lower_dxil GPU cases). The others are per-lane form: refused, no heap windows, cannot disable the driver cache, and Developer Mode off (0x887A002D).
  • No xcl-smoke block: I have no title.

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

<!-- greyfinch-sync:ivall/xcl:comment:7157339623 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7157339623). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T08:40:57Z. --- NVIDIA test report for `f698c22` (base `6e1e2be`), as asked in #1269; it covers the stack from #1316 through #2018. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, the PR head as it is. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: **1190 passed, 1 failed, 46 ignored**. - The one failure is `test_title_runs_and_game_folder_is_untouched`, because my build step ran only `cargo build --workspace --tests`, so `xcl_testtitle.exe` and `testgame_mw.dll`, built from the repository's `tests/testtitle`, were missing (the panic says "build first: cargo build --workspace"). So the end-to-end test did not run here. With a full build (`cargo build --workspace && cargo build --workspace --tests`), `cargo test -p xcl --test e2e` gives 3 passed, 0 failed at `f698c22`, and 3 passed, 0 failed on `main` `568e7db`. So nothing failed on this head here. - SKIPPED: 26, mostly `no wave64` (the wave64 parity and `lower_dxil` GPU cases). The others are `per-lane form: refused`, `no heap windows`, `cannot disable the driver cache`, and Developer Mode off (`0x887A002D`). - No `xcl-smoke` block: I have no title. AI-assisted (Claude Code). Synthetic tests only.
Rednaxeh commented 2026-11-25 11:09:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Rednaxeh on 2026-11-25T10:38:36Z.


RX 7800 XT (RDNA3, wave64), in the title: the compact nested form builds ActivateRays on the AMD driver in 57 s where main cannot build it at all. The title still does not render its world within 900 s on this card: it keeps asking for new 1 MB compute programs that the driver builds at 30–40 s each.

Covers the in-title part that @moombathepilot's report on this card leaves out (world loading, compile times). Head f698c22 merged locally onto main 568e7db (clean merge, 7573f49), release. Ryzen 7 7800X3D, 32 GB RAM, driver 32.0.32029.2010, Windows 11 26300, Rust 1.100.0, DXC 1.9.2602.17. The newer retail title of #505, offline, defaults (HLSL path), XCL_PSO_TRACE=1 XCL_ACTIVITY=1, A at the start screen.

ActivateRays and ActivateProbes (the two programs compact_wanted takes here)

  • 95cc13288a27a96e (ActivateRays, 88 863 instructions, 752 KB of compact HLSL): 1 068 976 B of DXIL, built by the driver in 57.5 s on the title's thread (start 101.2 s, done 158.7 s), commit 31–33 GB around it (one spike to 39.9 GB). On main the same record is 13.8 MB of HLSL-path DXIL that the driver refuses with E_OUTOFMEMORY after 15–33 s and ~15 GB (#1310, #1918), and 3.35 MB of plain direct DXIL (XCL_DIRECT_DXIL=1) that the driver had not finished after 215 s while the process climbed to 54 GB of commit (#2057, my report there).
  • 56c0cd3b82a00c6e (ActivateProbes, 76 699 instructions, 2.39 MB of compact HLSL): 467 648 B, 9.4 s. (main HLSL path: 17–22 MB, refused.)
  • Both come back from the driver-blob cache in the next run (1–5 ms).

Three runs: 300 s cold, 300 s warm, 900 s warm

  • No device removal, no crash, no refused program, 0 draws / 0 dispatches skipped. Frames: 1445 / 1483 / 1513 (menus at 30 fps, loading, then a black window from ~82 s to the end in each run).
  • Warm runs get every big program of the earlier runs from the blob cache (418 supplied in the 900 s run), but each run asks for programs no earlier run created: 82 new records in the second run, 25 of them over 256 KB (19 MB of DXIL). In the 900 s run, after 120 s, the driver builds 1.0–1.4 MB compute programs at 30–41 s each, 3–4 a minute through the single huge-compile slot (gated (waited 54–197 s)), 155 compiles over 256 KB in all (111 MB); at 600 s a title thread waits in resolve_wait for one of them at SetPipelineState. Commit 32–35 GB, spikes to 49.8 GB at 782 s.
  • 168 distinct compute records over 256 KB seen across today's runs on this card; the comment in real.rs expects ~600 of the ~1 MB ray-tracing resolve programs.

So on RDNA3 this stack removes the one program that main could never build, and the remaining cost is the AMD driver's 30–40 s per 1 MB program times the number of programs the title asks for, one slot at a time. A world picture would need several more warm runs, more huge-compile slots (XCL_HUGE_PSO_CONCURRENCY, 3 GB of commit headroom each on a 32 GB machine), or a way to fill the blob cache ahead that works on AMD (xcl shaders --pipelines does not: AMD keys its driver cache by application).

Not tested

  • The suite on this head (moombathepilot's run above is on the same card), XCL_COMPACT_NEST=0, the direct backend with this stack, NVIDIA.

AI use: Claude Code (Claude Fable 5.1) read the logs and wrote this; the runs were mine.

<!-- greyfinch-sync:ivall/xcl:comment:7159975801 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7159975801). Originally posted by [Rednaxeh](https://github.com/Rednaxeh) on 2026-11-25T10:38:36Z. --- **RX 7800 XT (RDNA3, wave64), in the title: the compact nested form builds `ActivateRays` on the AMD driver in 57 s where `main` cannot build it at all. The title still does not render its world within 900 s on this card: it keeps asking for new 1 MB compute programs that the driver builds at 30–40 s each.** Covers the in-title part that @moombathepilot's report on this card leaves out (world loading, compile times). Head `f698c22` merged locally onto `main` `568e7db` (clean merge, `7573f49`), release. Ryzen 7 7800X3D, 32 GB RAM, driver 32.0.32029.2010, Windows 11 26300, Rust 1.100.0, DXC 1.9.2602.17. The newer retail title of #505, offline, defaults (HLSL path), `XCL_PSO_TRACE=1 XCL_ACTIVITY=1`, A at the start screen. **`ActivateRays` and `ActivateProbes` (the two programs `compact_wanted` takes here)** - `95cc13288a27a96e` (`ActivateRays`, 88 863 instructions, 752 KB of compact HLSL): 1 068 976 B of DXIL, built by the driver in **57.5 s** on the title's thread (start 101.2 s, done 158.7 s), commit 31–33 GB around it (one spike to 39.9 GB). On `main` the same record is 13.8 MB of HLSL-path DXIL that the driver refuses with E_OUTOFMEMORY after 15–33 s and ~15 GB (#1310, #1918), and 3.35 MB of plain direct DXIL (`XCL_DIRECT_DXIL=1`) that the driver had not finished after 215 s while the process climbed to 54 GB of commit (#2057, my report there). - `56c0cd3b82a00c6e` (`ActivateProbes`, 76 699 instructions, 2.39 MB of compact HLSL): 467 648 B, **9.4 s**. (`main` HLSL path: 17–22 MB, refused.) - Both come back from the driver-blob cache in the next run (1–5 ms). **Three runs: 300 s cold, 300 s warm, 900 s warm** - No device removal, no crash, no refused program, 0 draws / 0 dispatches skipped. Frames: 1445 / 1483 / 1513 (menus at 30 fps, loading, then a black window from ~82 s to the end in each run). - Warm runs get every big program of the earlier runs from the blob cache (418 supplied in the 900 s run), but each run asks for programs no earlier run created: 82 new records in the second run, 25 of them over 256 KB (19 MB of DXIL). In the 900 s run, after 120 s, the driver builds 1.0–1.4 MB compute programs at 30–41 s each, 3–4 a minute through the single huge-compile slot (`gated (waited 54–197 s)`), 155 compiles over 256 KB in all (111 MB); at 600 s a title thread waits in `resolve_wait` for one of them at `SetPipelineState`. Commit 32–35 GB, spikes to 49.8 GB at 782 s. - 168 distinct compute records over 256 KB seen across today's runs on this card; the comment in `real.rs` expects ~600 of the ~1 MB ray-tracing resolve programs. So on RDNA3 this stack removes the one program that `main` could never build, and the remaining cost is the AMD driver's 30–40 s per 1 MB program times the number of programs the title asks for, one slot at a time. A world picture would need several more warm runs, more huge-compile slots (`XCL_HUGE_PSO_CONCURRENCY`, 3 GB of commit headroom each on a 32 GB machine), or a way to fill the blob cache ahead that works on AMD (`xcl shaders --pipelines` does not: AMD keys its driver cache by application). **Not tested** - The suite on this head (moombathepilot's run above is on the same card), `XCL_COMPACT_NEST=0`, the direct backend with this stack, NVIDIA. AI use: Claude Code (Claude Fable 5.1) read the logs and wrote this; the runs were mine.
ClosetPie107 commented 2026-11-25 11:09:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-25T10:53:21Z.


Linux / AMD RDNA4 (RADV) test report on exact head f698c22 (clean detached worktree), covering XCL_COMPACT_NEST unset (auto) on RADV from Not tested.

Environment

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS
  • Proton Experimental (experimental-11.0-20261112), vkd3d-proton v3.1 (#257 + dxil-spirv 53aac418), DXVK v3.1.1-209, DXC 1.9.2609.5, x86_64-pc-windows-gnu cross-compile

Unit & GPU tests (debug test binary, XCL_ADAPTER=9070 XCL_REQUIRE_GPU=wave64, --test-threads=1 --nocapture, capped at MemoryMax=14G, MemorySwapMax=0)

  • gpu::recomp::compact: 9 passed, 0 failed, 0 ignored, 0 skipped (0.36 s).
  • gpu::recomp::tests_compact: gpu_compact_against_the_pc_block_fallback hit the 14 GiB cgroup OOM cap on RADV/dxil-spirv (killed cleanly; previously triggered an uncapped OOM).
  • gpu::recomp::tests_compact --skip gpu_compact_against_the_pc_block_fallback: 24 passed, 0 failed, 0 ignored, 0 skipped (8.00 s).

Cold RADV PSO builds with XCL_COMPACT_NEST unset (auto) (release xcl.exe shaders <dir> --precompile --only cs --pipelines, MESA_SHADER_CACHE_DISABLE=true, VKD3D_SHADER_CACHE_PATH=0, fresh XCL_DXIL_CACHE, MemoryMax=14G, MemorySwapMax=0):

  • ActivateProbes (9083c094, 88,863 insts, 752 KB HLSL): 21.2 s compile (22.0 s wall), 4.23 GiB peak (pipelines made on the GPU 1, refused 0, driver cache 0) — down from 252 s flat on #1316.
  • ActivateProbesTarget (534f271f, 88,445 insts, 692 KB HLSL): 15.4 s compile (15.5 s wall), 2.90 GiB peak (pipelines made on the GPU 1, refused 0, driver cache 0) — down from 176 s flat on #1316.

Not tested: full workspace suite, retail title run, ActivateRays, programs under 512 cases.

AI use: T3 Code / Antigravity (Gemini 4 Neon) built and ran these tests on this machine and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7160307308 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7160307308). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-25T10:53:21Z. --- Linux / AMD RDNA4 (RADV) test report on exact head `f698c22` (clean detached worktree), covering `XCL_COMPACT_NEST` unset (`auto`) on RADV from **Not tested**. **Environment** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1, native wave64), Ryzen 5 9600X, 30 GiB RAM, CachyOS - Proton Experimental (`experimental-11.0-20261112`), vkd3d-proton v3.1 (`#257` + `dxil-spirv` `53aac418`), DXVK `v3.1.1-209`, DXC `1.9.2609.5`, `x86_64-pc-windows-gnu` cross-compile **Unit & GPU tests** (debug test binary, `XCL_ADAPTER=9070 XCL_REQUIRE_GPU=wave64`, `--test-threads=1 --nocapture`, capped at `MemoryMax=14G`, `MemorySwapMax=0`) - `gpu::recomp::compact`: **9 passed, 0 failed, 0 ignored, 0 skipped** (0.36 s). - `gpu::recomp::tests_compact`: **`gpu_compact_against_the_pc_block_fallback` hit the 14 GiB cgroup OOM cap** on RADV/`dxil-spirv` (killed cleanly; previously triggered an uncapped OOM). - `gpu::recomp::tests_compact --skip gpu_compact_against_the_pc_block_fallback`: **24 passed, 0 failed, 0 ignored, 0 skipped** (8.00 s). **Cold RADV PSO builds with `XCL_COMPACT_NEST` unset (`auto`)** (release `xcl.exe shaders <dir> --precompile --only cs --pipelines`, `MESA_SHADER_CACHE_DISABLE=true`, `VKD3D_SHADER_CACHE_PATH=0`, fresh `XCL_DXIL_CACHE`, `MemoryMax=14G`, `MemorySwapMax=0`): - `ActivateProbes` (`9083c094`, 88,863 insts, 752 KB HLSL): **21.2 s** compile (22.0 s wall), **4.23 GiB** peak (`pipelines made on the GPU 1, refused 0`, `driver cache 0`) — down from 252 s flat on `#1316`. - `ActivateProbesTarget` (`534f271f`, 88,445 insts, 692 KB HLSL): **15.4 s** compile (15.5 s wall), **2.90 GiB** peak (`pipelines made on the GPU 1, refused 0`, `driver cache 0`) — down from 176 s flat on `#1316`. **Not tested:** full workspace suite, retail title run, `ActivateRays`, programs under 512 cases. **AI use:** T3 Code / Antigravity (Gemini 4 Neon) built and ran these tests on this machine and drafted this report.
DavidM1911 commented 2026-11-26 01:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:49:47Z.


Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7179154936 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7179154936). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T00:49:47Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
Pipodi commented 2026-11-27 15:43:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T15:43:01Z.


Rebased onto current main (623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.

<!-- greyfinch-sync:ivall/xcl:comment:7222395577 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7222395577). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-27T15:43:01Z. --- Rebased onto current main (623d02e4); the suite rerun and the smoke pair on the new head are updated in the description.
Pipodi commented 2026-11-27 19:11:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-27T19:11:36Z.


@DavidM1911 rebased onto current main (6089122a); new head 7044c3ed. The whole suite and a smoke pair were rerun, see the description. Ready for a retest when you have time.

AI use: Claude Code (Claude Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:comment:7226281925 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7226281925). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-27T19:11:36Z. --- @DavidM1911 rebased onto current main (6089122a); new head `7044c3ed`. The whole suite and a smoke pair were rerun, see the description. Ready for a retest when you have time. AI use: Claude Code (Claude Opus 5.5)
upipibi commented 2026-11-28 06:48:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-28T06:48:25Z.


NVIDIA re-run on the new head db3ab56d (my earlier report was on f698c22). Its merge-base is current main e429936c, and I ran that too, to compare.

Tested

  • RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11 Pro 10.0.26100, debug. The PR head as it is, and main e429936c. Both had cargo build --workspace and cargo build --workspace --tests first.
  • cargo test --workspace --no-fail-fast -- --test-threads=4:
    • head db3ab56d: 2164 passed, 9 failed, 48 ignored, 27 SKIPPED lines.
    • main e429936c: 2126 passed, 9 failed, 48 ignored, 26 SKIPPED lines.
  • The 9 failures are the same on both: the 6 split-wave64 GPU tests and 3 e2e title tests already listed in #3093 for main e429936 on NVIDIA. So none is new on this head.
  • All 57 tests named nest or compact pass on the head, including compact_sample_big_cs_nested_runs_the_flat_cases, an_unset_nest_is_auto and auto_nest_starts_at_the_case_threshold. The one extra SKIPPED line is gpu_compact_native_wave64_form (no wave64), which this card can't run.

Not tested: no xcl-smoke block, because I have no title.

AI use: Claude Code (Claude Opus 5.5) ran the tests above on the hardware named and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7235529380 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7235529380). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T06:48:25Z. --- NVIDIA re-run on the new head `db3ab56d` (my earlier report was on `f698c22`). Its merge-base is current `main` `e429936c`, and I ran that too, to compare. **Tested** - RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11 Pro 10.0.26100, debug. The PR head as it is, and `main` `e429936c`. Both had `cargo build --workspace` and `cargo build --workspace --tests` first. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: - head `db3ab56d`: **2164 passed, 9 failed, 48 ignored**, 27 SKIPPED lines. - `main` `e429936c`: **2126 passed, 9 failed, 48 ignored**, 26 SKIPPED lines. - The 9 failures are the same on both: the 6 split-wave64 GPU tests and 3 e2e title tests already listed in #3093 for `main` `e429936` on NVIDIA. So none is new on this head. - All 57 tests named `nest` or `compact` pass on the head, including `compact_sample_big_cs_nested_runs_the_flat_cases`, `an_unset_nest_is_auto` and `auto_nest_starts_at_the_case_threshold`. The one extra SKIPPED line is `gpu_compact_native_wave64_form` (`no wave64`), which this card can't run. **Not tested:** no `xcl-smoke` block, because I have no title. AI use: Claude Code (Claude Opus 5.5) ran the tests above on the hardware named and wrote this report.
thehollowedone commented 2026-11-28 16:54:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T16:54:36Z.


Independent Windows/NVIDIA test of #2025 head 769d5aba against its clean main base b937fbab.

RTX 3080 Ti (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11. XCL_ADAPTER=3080; debug tests.

  • cargo test --offline --locked -j 4 -p xcl --lib compact::tests -- --test-threads=1 --quiet: 8 passed, 0 failed, 0 ignored, no GPU skip notices.
  • cargo test --offline --locked -j 4 -p xcl --lib gpu_compact_ -- --test-threads=1 --nocapture: 25 passed, 0 failed, 0 ignored. One test printed SKIPPED because this card has no native wave64, so it does not add GPU coverage.
  • cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 with --skip for the three uma_driver tests that terminate the library binary on this setup and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, which did not finish in the initial run: head 2,175 passed, 2 failed, 48 ignored, 26 GPU skip notices; clean base with the same command and environment 2,137 passed, 2 failed, 48 ignored, 25 skip notices. The same two tests failed on both trees: direct_msaa_loads_precede_get_dimensions (Invalid bitcode signature) and console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk (DXIL not compiled yet). The extra skip on the head is gpu_compact_native_wave64_form.

This verifies the focused compact cases and the bounded workspace comparison at the exact head. I did not measure cold driver compile time, run a retail title, or complete the excluded two-pass cache test, so this is a test report rather than a merge check.

AI use: Codex (GPT-6.2 Sol) ran the tests, checked the base/head comparison, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7242606791 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7242606791). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T16:54:36Z. --- Independent Windows/NVIDIA test of [#2025 head `769d5aba`](https://github.com/xcl-dev/xcl/commit/769d5aba10404c8215488b67386e2792e514441c) against its clean [`main` base `b937fbab`](https://github.com/xcl-dev/xcl/commit/b937fbab2964b2c142f5d13662b91b00f99b9848). RTX 3080 Ti (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC, DXC 1.8.2502.11. `XCL_ADAPTER=3080`; debug tests. - `cargo test --offline --locked -j 4 -p xcl --lib compact::tests -- --test-threads=1 --quiet`: **8 passed, 0 failed, 0 ignored**, no GPU skip notices. - `cargo test --offline --locked -j 4 -p xcl --lib gpu_compact_ -- --test-threads=1 --nocapture`: **25 passed, 0 failed, 0 ignored**. One test printed `SKIPPED` because this card has no native wave64, so it does not add GPU coverage. - `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` with `--skip` for the three `uma_driver` tests that terminate the library binary on this setup and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`, which did not finish in the initial run: head **2,175 passed, 2 failed, 48 ignored, 26 GPU skip notices**; clean base with the same command and environment **2,137 passed, 2 failed, 48 ignored, 25 skip notices**. The same two tests failed on both trees: `direct_msaa_loads_precede_get_dimensions` (`Invalid bitcode signature`) and `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` (`DXIL not compiled yet`). The extra skip on the head is `gpu_compact_native_wave64_form`. This verifies the focused compact cases and the bounded workspace comparison at the exact head. I did not measure cold driver compile time, run a retail title, or complete the excluded two-pass cache test, so this is a test report rather than a merge check. AI use: Codex (GPT-6.2 Sol) ran the tests, checked the base/head comparison, and wrote this report.
moombathepilot commented 2026-11-28 18:49:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by moombathepilot on 2026-11-28T18:49:19Z.


Tested current PR head 769d5aba10404c8215488b67386e2792e514441c against merge base b937fbab2964b2c142f5d13662b91b00f99b9848 on an AMD Radeon RX 7800 XT, driver 32.0.32029.2010, Windows build 26300.9974.

Both revisions built successfully in release mode. On the PR head, the focused compact tests passed (33 passed, 0 failed), including gpu_compact_native_wave64_form. This provides AMD coverage for a test skipped in the current-head NVIDIA report.

I also ran the full workspace suite on both revisions. The PR head had 2,175 passes, 5 failures, and 48 ignored; the base had 2,137 passes, 5 failures, and 48 ignored. The same five test failures occurred on both revisions. I observed no new failures in this paired run.

With XCL_NETWORK=0, XCL_PREPARE=0, XCL_ACTIVITY=1, and XCL_RUN_SECONDS=60, separate game startup smokes exited normally: base showed 1,262 frames; PR head showed 1,266. Neither reported a crash or device removal.

This checks the AMD native wave64 path and short startup behavior. It does not establish a performance improvement or test later gameplay.

AI use: OpenAI Codex assisted with checkout, building, running tests, comparing logs, and drafting this report.

<!-- greyfinch-sync:ivall/xcl:comment:7244079208 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7244079208). Originally posted by [moombathepilot](https://github.com/moombathepilot) on 2026-11-28T18:49:19Z. --- Tested current PR head `769d5aba10404c8215488b67386e2792e514441c` against merge base `b937fbab2964b2c142f5d13662b91b00f99b9848` on an AMD Radeon RX 7800 XT, driver `32.0.32029.2010`, Windows build `26300.9974`. Both revisions built successfully in release mode. On the PR head, the focused compact tests passed (33 passed, 0 failed), including `gpu_compact_native_wave64_form`. This provides AMD coverage for a test skipped in the current-head NVIDIA report. I also ran the full workspace suite on both revisions. The PR head had 2,175 passes, 5 failures, and 48 ignored; the base had 2,137 passes, 5 failures, and 48 ignored. **The same five test failures occurred on both revisions.** I observed no new failures in this paired run. With `XCL_NETWORK=0`, `XCL_PREPARE=0`, `XCL_ACTIVITY=1`, and `XCL_RUN_SECONDS=60`, separate game startup smokes exited normally: base showed 1,262 frames; PR head showed 1,266. Neither reported a crash or device removal. This checks the AMD native wave64 path and short startup behavior. It does not establish a performance improvement or test later gameplay. AI use: OpenAI Codex assisted with checkout, building, running tests, comparing logs, and drafting this report.
JJAutoCompare commented 2026-11-28 19:55:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T19:55:52Z.


Tested

Independently reran the pinned standalone CPU executable for 769d5aba10404c8215488b67386e2792e514441c and its immediate parent 0e98784d4de0130e47200ac5bf09536e7acee503 on Windows 11 x64 build 26200.9974 with a Ryzen 7 3800X. The harness used byte-identical configuration code from both revisions, a capture-only logger, and Rust 1.100.1 (x86_64 MSVC).

Ran compact_nest_ab.exe --exact env_to_config_ab --test-threads=1 --nocapture in eight fresh processes, one per raw XCL_COMPACT_NEST value. All eight exited 0. Total was 8 passed, 0 failed, 0 ignored, 0 skipped. Win32 enumeration, Win32 lookup, and Rust lookup agreed, including explicit empty and the spaces around AuTo.

Value Parent PR head
Unset Flat Auto
Empty, 48, 131072 Flat with one warning ending in off Auto with one warning ending in auto
0 Flat Flat
" AuTo " Auto Auto
32, 65536 Fixed group size Same fixed group size

For 511, 512, and 513 synthetic cases, Flat resolved to [0, 0, 0] and Auto to [0, 32, 32]. Both fixed sizes stayed constant. All three observations per revision matched, with one captured warning per invalid input and no repeated warnings.

Not tested

Shader emission, translation, DXC, GPU or driver execution, caches, performance, retail titles, and the workspace suite.

AI use

T3 Code through Codex (gpt-6.2-sol, high) prepared the standalone harness, verified the source and executable, independently reran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7244909360 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7244909360). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T19:55:52Z. --- **Tested** Independently reran the pinned standalone CPU executable for `769d5aba10404c8215488b67386e2792e514441c` and its immediate parent `0e98784d4de0130e47200ac5bf09536e7acee503` on Windows 11 x64 build 26200.9974 with a Ryzen 7 3800X. The harness used byte-identical configuration code from both revisions, a capture-only logger, and Rust 1.100.1 (x86_64 MSVC). Ran `compact_nest_ab.exe --exact env_to_config_ab --test-threads=1 --nocapture` in eight fresh processes, one per raw `XCL_COMPACT_NEST` value. All eight exited 0. Total was 8 passed, 0 failed, 0 ignored, 0 skipped. Win32 enumeration, Win32 lookup, and Rust lookup agreed, including explicit empty and the spaces around `AuTo`. | Value | Parent | PR head | | --- | --- | --- | | Unset | Flat | Auto | | Empty, `48`, `131072` | Flat with one warning ending in `off` | Auto with one warning ending in `auto` | | `0` | Flat | Flat | | `" AuTo "` | Auto | Auto | | `32`, `65536` | Fixed group size | Same fixed group size | For 511, 512, and 513 synthetic cases, Flat resolved to `[0, 0, 0]` and Auto to `[0, 32, 32]`. Both fixed sizes stayed constant. All three observations per revision matched, with one captured warning per invalid input and no repeated warnings. **Not tested** Shader emission, translation, DXC, GPU or driver execution, caches, performance, retail titles, and the workspace suite. **AI use** T3 Code through Codex (`gpt-6.2-sol`, high) prepared the standalone harness, verified the source and executable, independently reran the tests, and drafted this report.
Pipodi commented 2026-11-29 04:18:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-29T04:18:21Z.


The failing "Build and test (Windows, no GPU)" job here is the known pipeline_library race, not this change: builder_deduplicates_names_and_atomically_replaces_output sees 4 entries instead of 2 (a concurrent split_compute_program_prebuilds_and_caches_chain_pieces stores into the shared builder), and the three tests after it fail on the poisoned BUILD_TEST lock. This PR does not touch those files; #3183 and #3221 fix the race. The same head passed locally (whole suite, 0 failed), and the same tests pass in the CI run of #1692 on the same stack. I cannot rerun the job myself; a rerun should pass.

(Claude Code, Claude Opus 5.5, wrote this comment.)

<!-- greyfinch-sync:ivall/xcl:comment:7250572586 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7250572586). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-29T04:18:21Z. --- The failing "Build and test (Windows, no GPU)" job here is the known `pipeline_library` race, not this change: `builder_deduplicates_names_and_atomically_replaces_output` sees 4 entries instead of 2 (a concurrent `split_compute_program_prebuilds_and_caches_chain_pieces` stores into the shared builder), and the three tests after it fail on the poisoned `BUILD_TEST` lock. This PR does not touch those files; #3183 and #3221 fix the race. The same head passed locally (whole suite, 0 failed), and the same tests pass in the CI run of #1692 on the same stack. I cannot rerun the job myself; a rerun should pass. (Claude Code, Claude Opus 5.5, wrote this comment.)
thehollowedone commented 2026-11-30 19:00:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-30T19:00:55Z.


merge-check
base: ff0c364b3d
head: a86c5f4c52
merge: clean (local merge commit cd0530d9f28fe6d4a35d846683188bc7a92cf86d)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2,927 passed, 2 failed, 51 ignored; SKIPPED: 25 (23 require wave64; 2 require heap windows); failing: console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. Both were reproduced in focused runs on base ff0c364b.
review: Full merged diff checked; no source-level blocker found in the compact-nesting change. Compact GPU tests passed, but the retail smoke does not reach the compact shader. PR base remains d52ff48c and should be rebased.
performance: No current-base paired retail smoke or direct in-game performance measurement. The existing smoke pair used an older base and did not reach the changed shader path.
verdict: not yet: rebase onto current main and rerun the paired smoke; the workspace suite has two failures that also reproduce on the base.
hardware / tool and model: RTX 3080 Ti, driver 621.35; Ryzen 7 9800X3D; Windows 11 build 26300; rustc 1.99.1 MSVC; DXC 1.8.2502.11 / Codex (GPT-6.2 Sol), source review by GPT-6.2 Astra.

<!-- greyfinch-sync:ivall/xcl:comment:7288710401 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7288710401). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-30T19:00:55Z. --- merge-check base: ff0c364b3de011c13ed45865480c21918a79ec89 head: a86c5f4c52f8d0adfeb3515b92c86e84794683f1 merge: clean (local merge commit cd0530d9f28fe6d4a35d846683188bc7a92cf86d) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2,927 passed, 2 failed, 51 ignored; SKIPPED: 25 (23 require wave64; 2 require heap windows); failing: console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. Both were reproduced in focused runs on base ff0c364b. review: Full merged diff checked; no source-level blocker found in the compact-nesting change. Compact GPU tests passed, but the retail smoke does not reach the compact shader. PR base remains d52ff48c and should be rebased. performance: No current-base paired retail smoke or direct in-game performance measurement. The existing smoke pair used an older base and did not reach the changed shader path. verdict: not yet: rebase onto current main and rerun the paired smoke; the workspace suite has two failures that also reproduce on the base. hardware / tool and model: RTX 3080 Ti, driver 621.35; Ryzen 7 9800X3D; Windows 11 build 26300; rustc 1.99.1 MSVC; DXC 1.8.2502.11 / Codex (GPT-6.2 Sol), source review by GPT-6.2 Astra.
Foniass commented 2026-12-01 07:12:59 +00:00 (Migrated from github.com)

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


Triage (#1607) – head a86c5f4

Stacked on #2018 (itself on #1692, #1448 and #1316's rebased commits); only a86c5f4 belongs here. The shared added lines with #2018, #1692, #1448, #1316, #1315 and #1548 are the stack's base commits, not the same change: this commit makes auto the default when XCL_COMPACT_NEST is unset (nest_of), with README text and a test. #3479 (XCL_DIRECT_COMPACT_MIN) is about the direct DXIL path, a different switch.
No problems found in the diff.
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:7303782813 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7303782813). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:12:59Z. --- **Triage (#1607)** – head a86c5f4 Stacked on #2018 (itself on #1692, #1448 and #1316's rebased commits); only `a86c5f4` belongs here. The shared added lines with #2018, #1692, #1448, #1316, #1315 and #1548 are the stack's base commits, not the same change: this commit makes `auto` the default when `XCL_COMPACT_NEST` is unset (`nest_of`), with README text and a test. #3479 (`XCL_DIRECT_COMPACT_MIN`) is about the direct DXIL path, a different switch. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-01 21:09:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T21:09:53Z.


Follow-up review (head 30aaa283, since a86c5f4, diff read, not a merge-check):

  • Triage (stacked on #2018, no problems found, keep open): still holds. The push only rebases the stack onto main d52ff48c; this PR's commit 30aaa283 (+25/-11) is unchanged. With #1316 closed the stack is #1448 ← #1692 ← #2018 ← this PR, and the description's "#1316 itself still sits on an older main" is out of date.

New: none.

Fine: nest_of (gpu/recomp/compact.rs ~191) maps an unset value to Nest::Auto and an invalid one to auto with a warning, covered by an_unset_nest_is_auto; compact_tag gives unset the same _c_na entry as auto; the default matches main's XCL_DIRECT_COMPACT_NEST (512 cases or more, groups of 32); the README bullet matches the code.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7325840966 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7325840966). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T21:09:53Z. --- Follow-up review (head 30aaa283, since a86c5f4, diff read, not a merge-check): - **Triage (stacked on #2018, no problems found, keep open):** still holds. The push only rebases the stack onto `main` `d52ff48c`; this PR's commit `30aaa283` (+25/-11) is unchanged. With #1316 closed the stack is #1448 ← #1692 ← #2018 ← this PR, and the description's "#1316 itself still sits on an older main" is out of date. New: none. Fine: `nest_of` (`gpu/recomp/compact.rs` ~191) maps an unset value to `Nest::Auto` and an invalid one to `auto` with a warning, covered by `an_unset_nest_is_auto`; `compact_tag` gives unset the same `_c_na` entry as `auto`; the default matches main's `XCL_DIRECT_COMPACT_NEST` (512 cases or more, groups of 32); the README bullet matches the code. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Pipodi commented 2026-12-02 07:00:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T07:00:27Z.


Thank you. Done since this check: the stack is rebased onto main 6bfb5c51 (this PR's head is now 30aaa283), and the description has a new smoke pair for that head: 1606 frames against main's 1611 (99.7 %), with peak commit at 116.0 % of main's.

The two failing tests, console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, also failed on the base ff0c364b in your focused runs. This PR does not touch them. As you note, the retail smoke run does not reach the compact shader, and the description says so under Not tested.

AI use: Claude Code with Claude Opus 5.5 (checked the thread, wrote this reply).

<!-- greyfinch-sync:ivall/xcl:comment:7337662295 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7337662295). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-12-02T07:00:27Z. --- Thank you. Done since this check: the stack is rebased onto main `6bfb5c51` (this PR's head is now `30aaa283`), and the description has a new smoke pair for that head: 1606 frames against main's 1611 (99.7 %), with peak commit at 116.0 % of main's. The two failing tests, `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`, also failed on the base `ff0c364b` in your focused runs. This PR does not touch them. As you note, the retail smoke run does not reach the compact shader, and the description says so under **Not tested**. AI use: Claude Code with Claude Opus 5.5 (checked the thread, wrote this reply).
Pipodi commented 2026-12-02 15:59:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-12-02T15:59:14Z.


Closing: main's direct DXIL path now has its own compact dispatch and nesting (dxil/kernel.rs, #2034, #2174), and with the defaults this stack's goes_direct(direct_on, compact_routed) (pso.rs) takes the programs compact_wanted picks away from it and sends them back through HLSL and DXC, the form that never finished compiling on AMD (ActivateRays, @Nmopqr333). Foniass's #1316 triage reached the same conclusion. If the packing across words in pick_targets still pays off, it can come back as a small PR against the direct translator.

AI use: Claude Code, Claude Opus 5.5 audited the stack; closed by the author.

<!-- greyfinch-sync:ivall/xcl:comment:7351260629 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2025#issuecomment-7351260629). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-12-02T15:59:14Z. --- Closing: main's direct DXIL path now has its own compact dispatch and nesting (`dxil/kernel.rs`, #2034, #2174), and with the defaults this stack's `goes_direct(direct_on, compact_routed)` (`pso.rs`) takes the programs `compact_wanted` picks away from it and sends them back through HLSL and DXC, the form that never finished compiling on AMD (ActivateRays, @Nmopqr333). Foniass's #1316 triage reached the same conclusion. If the packing across words in `pick_targets` still pays off, it can come back as a small PR against the direct translator. AI use: Claude Code, Claude Opus 5.5 audited the stack; closed by the author.

Pull request closed

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!2015
No description provided.