Recompiler: share scalar operands in compact compute cases #1538

Open
t4l03 wants to merge 8 commits from upstream-pr/1548 into main
t4l03 commented 2026-11-24 17:30:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by t4l03 on 2026-11-24T17:30:17Z.


Stacked on #1448 (through #1315 and #1316). Only the three commits after 57d7574 belong to this PR.

Part of #1269. Compact compute shaders can have repeated bodies with different scalar literals or embedded program-counter values. With XCL_COMPACT_IMMEDIATES=1, eligible bodies can share a case while preserving their original operands and branch targets.

What is in it

  • Share eligible decoded scalar operands and program-counter values under the existing 8,192-word limit for dispatch and operand tables together.
  • Add an opt-in compute route and separate translated cache entries. Keep the existing default and standard compact fallback.
  • Test literal and PC equivalence on the GPU, the routing-data budget, and translated-cache separation.

Tested

  • Windows 11 build 26300, Ryzen 7 7800X3D, RTX 4070 Ti driver 617.14, integrated Radeon driver 32.0.21042.62, Rust 1.100.0, DXC 1.9.2609.5.

  • cargo test --workspace --locked --offline -j 4 --no-fail-fast -- --test-threads=4 --show-output on the RTX 4070 Ti, debug: Cargo reported 988 passed, 0 failed, 42 ignored. The harness logged 24 skipped tests or subcases: 19 without native wave64, three per-lane opcode refusals, one with heap windows unavailable, and one PSO measurement requiring Windows Developer Mode.

  • cargo test --locked --offline -p xcl --lib -j 4 gpu_compact -- --nocapture on the integrated Radeon: 21 passed, 0 failed, 0 ignored, zero skips. This includes GPU readback comparisons for operand sharing and the upstream many-target case.

  • Before the metadata-only rewrite, the release CLI exported and precompiled ActivateRays in both modes with compact compute, Direct DXIL and four descriptor-heap windows enabled (--split 0). Both selected compact HLSL and produced separate _ci.bin and _c.bin entries in the same cache. The case count fell from 2,516 to 2,281; the 7,482-word block table plus the 708-word literal table stayed under the 8,192-word limit. The longest target-select leaf was 32 in both forms, preserving #1448's bound.

  • Earlier standalone ActivateRays PSO from the first immediate-sharing revision on this 4070 Ti with #680's heap accessors: 64.76 / 63.26 s and 3.509 / 3.492 GiB. The matching #1448 heap control took 81.49 / 78.11 s and 4.340 / 4.338 GiB. The switch-window experiment hit the 6 GiB process cap. Separate XCL caches, NVIDIA global DXCache enabled.

  • Independent RTX 4090 (617.42) testing completed both forms on the first immediate-sharing revision with #680 applied locally. Switch windows used 6.81 GB versus about 8.2 GB in the earlier control. The 194.6 s result was inside the earlier range. The heap arm used 3.55 GB and took 113.5 s, one run with historical controls. Report.

Regression run

scripts/smoke.ps1 -Game <title folder> -Seconds 60, release, default routing.

main:

xcl-smoke v1
commit: 689f2db477c3c062cf162649781640ef8a977c18
gpu: NVIDIA GeForce RTX 4070 Ti
title: 6ca5cab7
seconds: 60
exit: 0x0
frames shown: 660 (PresentX 660)
presents per 2 s (last 3): 46 49 47
device removals: 0
crashes: 0
peak commit: 15614 MB

this PR:

xcl-smoke v1
commit: b391e9cca9af3d095e61d998bee7003581724010
gpu: NVIDIA GeForce RTX 4070 Ti
title: 6ca5cab7
seconds: 60
exit: 0x0
frames shown: 564 (PresentX 565)
presents per 2 s (last 3): 31 28 22
device removals: 0
crashes: 0
peak commit: 15985 MB

Not tested

  • Retail dispatch output and execution cost with immediate sharing enabled, and fresh driver pipeline timings after #1448's target split. The smoke pair exercises default routing.
  • Full-pack performance, other discrete GPUs, and Wine.

AI use

Codex (gpt-6.2-sol) wrote the Rust implementation and tests, rebased onto 57d7574, ran validation, and drafted this report. GLM-5.3 wrote a separate local HLSL research prototype that motivated this implementation. That prototype and its generated shader artifacts are outside this PR.

<!-- greyfinch-sync:ivall/xcl:issue:5477137636 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548). Originally posted by [t4l03](https://github.com/t4l03) on 2026-11-24T17:30:17Z. --- Stacked on #1448 (through #1315 and #1316). Only the three commits after `57d7574` belong to this PR. Part of #1269. Compact compute shaders can have repeated bodies with different scalar literals or embedded program-counter values. With `XCL_COMPACT_IMMEDIATES=1`, eligible bodies can share a case while preserving their original operands and branch targets. **What is in it** - Share eligible decoded scalar operands and program-counter values under the existing 8,192-word limit for dispatch and operand tables together. - Add an opt-in compute route and separate translated cache entries. Keep the existing default and standard compact fallback. - Test literal and PC equivalence on the GPU, the routing-data budget, and translated-cache separation. **Tested** - Windows 11 build 26300, Ryzen 7 7800X3D, RTX 4070 Ti driver 617.14, integrated Radeon driver 32.0.21042.62, Rust 1.100.0, DXC 1.9.2609.5. - `cargo test --workspace --locked --offline -j 4 --no-fail-fast -- --test-threads=4 --show-output` on the RTX 4070 Ti, debug: Cargo reported 988 passed, 0 failed, 42 ignored. The harness logged 24 skipped tests or subcases: 19 without native wave64, three per-lane opcode refusals, one with heap windows unavailable, and one PSO measurement requiring Windows Developer Mode. - `cargo test --locked --offline -p xcl --lib -j 4 gpu_compact -- --nocapture` on the integrated Radeon: 21 passed, 0 failed, 0 ignored, zero skips. This includes GPU readback comparisons for operand sharing and the upstream many-target case. - Before the metadata-only rewrite, the release CLI exported and precompiled ActivateRays in both modes with compact compute, Direct DXIL and four descriptor-heap windows enabled (`--split 0`). Both selected compact HLSL and produced separate `_ci.bin` and `_c.bin` entries in the same cache. The case count fell from 2,516 to 2,281; the 7,482-word block table plus the 708-word literal table stayed under the 8,192-word limit. The longest target-select leaf was 32 in both forms, preserving #1448's bound. - Earlier standalone `ActivateRays` PSO from the first immediate-sharing revision on this 4070 Ti with #680's heap accessors: 64.76 / 63.26 s and 3.509 / 3.492 GiB. The matching #1448 heap control took 81.49 / 78.11 s and 4.340 / 4.338 GiB. The switch-window experiment hit the 6 GiB process cap. Separate XCL caches, NVIDIA global DXCache enabled. - Independent RTX 4090 (617.42) testing completed both forms on the first immediate-sharing revision with #680 applied locally. Switch windows used 6.81 GB versus about 8.2 GB in the earlier control. The 194.6 s result was inside the earlier range. The heap arm used 3.55 GB and took 113.5 s, one run with historical controls. [Report](https://github.com/xcl-dev/xcl/pull/1448#issuecomment-7139200552). **Regression run** `scripts/smoke.ps1 -Game <title folder> -Seconds 60`, release, default routing. main: ``` xcl-smoke v1 commit: 689f2db477c3c062cf162649781640ef8a977c18 gpu: NVIDIA GeForce RTX 4070 Ti title: 6ca5cab7 seconds: 60 exit: 0x0 frames shown: 660 (PresentX 660) presents per 2 s (last 3): 46 49 47 device removals: 0 crashes: 0 peak commit: 15614 MB ``` this PR: ``` xcl-smoke v1 commit: b391e9cca9af3d095e61d998bee7003581724010 gpu: NVIDIA GeForce RTX 4070 Ti title: 6ca5cab7 seconds: 60 exit: 0x0 frames shown: 564 (PresentX 565) presents per 2 s (last 3): 31 28 22 device removals: 0 crashes: 0 peak commit: 15985 MB ``` **Not tested** - Retail dispatch output and execution cost with immediate sharing enabled, and fresh driver pipeline timings after #1448's target split. The smoke pair exercises default routing. - Full-pack performance, other discrete GPUs, and Wine. **AI use** Codex (gpt-6.2-sol) wrote the Rust implementation and tests, rebased onto 57d7574, ran validation, and drafted this report. GLM-5.3 wrote a separate local HLSL research prototype that motivated this implementation. That prototype and its generated shader artifacts are outside this PR.
DavidM1911 commented 2026-11-24 21:08:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:19:15Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7141923167 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7141923167). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T19:19:15Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
t4l03 commented 2026-11-24 21:08:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by t4l03 on 2026-11-24T19:20:00Z.


Thanks, @DavidM1911. I verified that the head at the time contains main at c160d86 and merges cleanly. GitHub also reports the PR as mergeable. You can fetch the current PR head with git fetch https://github.com/xcl-dev/xcl.git refs/pull/1548/head and test FETCH_HEAD in a clean checkout. If the conflict still reproduces, could you share the two SHAs you used?

AI use

Codex (gpt-6.2-sol) checked the Git refs and merge tree and drafted this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7141941424 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7141941424). Originally posted by [t4l03](https://github.com/t4l03) on 2026-11-24T19:20:00Z. --- Thanks, @DavidM1911. I verified that the head at the time contains `main` at `c160d86` and merges cleanly. GitHub also reports the PR as mergeable. You can fetch the current PR head with `git fetch https://github.com/xcl-dev/xcl.git refs/pull/1548/head` and test `FETCH_HEAD` in a clean checkout. If the conflict still reproduces, could you share the two SHAs you used? **AI use** Codex (gpt-6.2-sol) checked the Git refs and merge tree and drafted this reply.
t4l03 commented 2026-11-24 21:09:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by t4l03 on 2026-11-24T19:58:35Z.


Update for the RTX 3060 Ti retest: main advanced from c160d86 to 85e3826, and the head at the time conflicts. @CowboyBingus @Pipodi, I reproduced the same gpu/recomp/pso.rs conflict starting at #1316 (5749171). The export added by #1524 calls the five-argument console_translation from shaders.rs, and #1316 changes that function's signature and return type for compact routing. I'll restack #1548 and rerun its tests and smoke pair once #1448 has the updated base.

AI use

Codex (gpt-6.2-sol) checked the merge trees and drafted this update.

<!-- greyfinch-sync:ivall/xcl:comment:7142867618 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7142867618). Originally posted by [t4l03](https://github.com/t4l03) on 2026-11-24T19:58:35Z. --- Update for the RTX 3060 Ti retest: `main` advanced from `c160d86` to `85e3826`, and the head at the time conflicts. @CowboyBingus @Pipodi, I reproduced the same `gpu/recomp/pso.rs` conflict starting at #1316 (`5749171`). The export added by #1524 calls the five-argument `console_translation` from `shaders.rs`, and #1316 changes that function's signature and return type for compact routing. I'll restack #1548 and rerun its tests and smoke pair once #1448 has the updated base. **AI use** Codex (gpt-6.2-sol) checked the merge trees and drafted this update.
t4l03 commented 2026-11-24 21:09:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by t4l03 on 2026-11-24T20:28:25Z.


@DavidM1911 the retest head was stacked on #1448 42b2f11. I verified a clean merge against main 4178e88, and GitHub reports the PR as mergeable. git fetch https://github.com/xcl-dev/xcl.git refs/pull/1548/head will fetch the new head for your RTX 3060 Ti retest. The description has the fresh suite and smoke results.

AI use

Codex (gpt-6.2-sol) rebased, validated, and drafted this update.

<!-- greyfinch-sync:ivall/xcl:comment:7143599116 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7143599116). Originally posted by [t4l03](https://github.com/t4l03) on 2026-11-24T20:28:25Z. --- @DavidM1911 the retest head was stacked on #1448 `42b2f11`. I verified a clean merge against `main` `4178e88`, and GitHub reports the PR as mergeable. `git fetch https://github.com/xcl-dev/xcl.git refs/pull/1548/head` will fetch the new head for your RTX 3060 Ti retest. The description has the fresh suite and smoke results. **AI use** Codex (gpt-6.2-sol) rebased, validated, and drafted this update.
Pipodi commented 2026-11-24 23:08:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Pipodi on 2026-11-24T22:49:00Z.


@t4l03 heads-up: #1448 has a new head, 57d7574. It is #1448's old commit plus a bound on the per-case select list (MAX_SELECTS = 32, split by [branch] if (xcl_b < pivot), in pick_targets in compact.rs), rebased onto #1316 964f5ed. #1448 is now ready for review. This PR's three commits no longer merge onto it without conflicts (checked with git merge-tree), so it needs a rebase onto 57d7574 when you get to it. The bound only changes cases with more than 32 differing targets.

AI use: Claude Code with Claude Opus 5.5.

<!-- greyfinch-sync:ivall/xcl:comment:7146677606 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7146677606). Originally posted by [Pipodi](https://github.com/Pipodi) on 2026-11-24T22:49:00Z. --- @t4l03 heads-up: #1448 has a new head, `57d7574`. It is #1448's old commit plus a bound on the per-case select list (`MAX_SELECTS` = 32, split by `[branch] if (xcl_b < pivot)`, in `pick_targets` in `compact.rs`), rebased onto #1316 `964f5ed`. #1448 is now ready for review. This PR's three commits no longer merge onto it without conflicts (checked with `git merge-tree`), so it needs a rebase onto `57d7574` when you get to it. The bound only changes cases with more than 32 differing targets. AI use: Claude Code with Claude Opus 5.5.
futurepro62 commented 2026-11-25 00:09:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T23:52:18Z.


Full-suite run, since this PR has no test report yet. Tested exact head 2f9d88f (on its base 266b845).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::dxil::fuzz_tests: 983 passed, 0 failed, 42 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_compact_native_wave64_form, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: literal_family_sharing_stays_within_the_table_budget, equal_blocks_share_one_case, compact_is_wanted_for_large_repetitive_programs, gpu_compact_matches_translate, the_switch_reads_auto_0_and_1, only_compute_goes_to_the_compact_backend, translated_compact_and_normal_forms_are_kept_apart, a_refused_compact_form_is_compiled_in_the_normal_form, the_compact_routing_goes_before_direct_dxil, compact_and_normal_forms_compile, gpu_compact_execz_nest, gpu_compact_backward_loops, compact_many_targets_take_a_bounded_path, gpu_compact_many_targets, gpu_compact_immediates_match_translate, gpu_compact_shared_targets, gpu_compact_dense_table, gpu_compact_repeated_blocks, gpu_compact_far_jumps, gpu_compact_v_mul_lo_u32, gpu_compact_buffer_load_format_x, gpu_compact_native_wave64_form, gpu_compact_compute_dispatch, gpu_compact_memory_windows, gpu_compact_memory_windows_loop, gpu_compact_programs_with_four_windows, gpu_compact_exchange_repeated, gpu_compact_buffer_load_format_x_repeated, gpu_compact_endpgm_before_last_block, gpu_compact_against_the_pc_block_fallback, gpu_compact_sample_big_cs.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 988 passed, 0 failed, 42 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 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))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 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))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 62265d3 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651) and the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7147887213 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7147887213). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T23:52:18Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `2f9d88f` (on its base `266b845`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::dxil::fuzz_tests`: **983 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_compact_native_wave64_form`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `literal_family_sharing_stays_within_the_table_budget`, `equal_blocks_share_one_case`, `compact_is_wanted_for_large_repetitive_programs`, `gpu_compact_matches_translate`, `the_switch_reads_auto_0_and_1`, `only_compute_goes_to_the_compact_backend`, `translated_compact_and_normal_forms_are_kept_apart`, `a_refused_compact_form_is_compiled_in_the_normal_form`, `the_compact_routing_goes_before_direct_dxil`, `compact_and_normal_forms_compile`, `gpu_compact_execz_nest`, `gpu_compact_backward_loops`, `compact_many_targets_take_a_bounded_path`, `gpu_compact_many_targets`, `gpu_compact_immediates_match_translate`, `gpu_compact_shared_targets`, `gpu_compact_dense_table`, `gpu_compact_repeated_blocks`, `gpu_compact_far_jumps`, `gpu_compact_v_mul_lo_u32`, `gpu_compact_buffer_load_format_x`, `gpu_compact_native_wave64_form`, `gpu_compact_compute_dispatch`, `gpu_compact_memory_windows`, `gpu_compact_memory_windows_loop`, `gpu_compact_programs_with_four_windows`, `gpu_compact_exchange_repeated`, `gpu_compact_buffer_load_format_x_repeated`, `gpu_compact_endpgm_before_last_block`, `gpu_compact_against_the_pc_block_fallback`, `gpu_compact_sample_big_cs`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **988 passed, 0 failed, 42 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `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))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `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))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `62265d3` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651) and the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-26 01:05:39 +00:00 (Migrated from github.com)

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


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:7178804584 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7178804584). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T00:29:04Z. --- 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.
Foniass commented 2026-12-01 06:04:13 +00:00 (Migrated from github.com)

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


Triage (#1607) – head b391e9c

Stacked on #1448, which in turn carries #1315 and #1316; the line overlap with #1315/#1316/#1448/#1692/#2018/#2025 is that shared base. This PR's own part is the three commits after 57d7574: compact.rs:share_literals, the compact_literal operand hook in emit.rs, and the opt-in XCL_COMPACT_IMMEDIATES route in mod.rs:translate_as. No other open PR does that, and none of it is on main.
It can only be reviewed once #1448 settles. It also conflicts with main.
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:7302444938 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1548#issuecomment-7302444938). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:04:13Z. --- **Triage (#1607)** – head b391e9c Stacked on #1448, which in turn carries #1315 and #1316; the line overlap with #1315/#1316/#1448/#1692/#2018/#2025 is that shared base. This PR's own part is the three commits after 57d7574: `compact.rs:share_literals`, the `compact_literal` operand hook in `emit.rs`, and the opt-in `XCL_COMPACT_IMMEDIATES` route in `mod.rs:translate_as`. No other open PR does that, and none of it is on main. It can only be reviewed once #1448 settles. It also conflicts with main. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/1548'
git switch 'upstream-pr/1548'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1548'
git switch 'upstream-pr/1548'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1548'
git switch 'main'
git merge --squash 'upstream-pr/1548'
git switch 'main'
git merge --ff-only 'upstream-pr/1548'
git switch 'main'
git merge 'upstream-pr/1548'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1538
No description provided.