Recompiler: emit signed four-bit dot products in DXIL #2152

Open
wasonidas wants to merge 1 commit from upstream-pr/2162 into main
wasonidas commented 2026-11-25 06:35:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by wasonidas on 2026-11-25T06:35:20Z.


Part of #1269. Lower unclamped V_DOT8_I32_I4 with two signed packed byte dot operations. Put each nibble in the high bits of a byte, shift the exact sum back by eight bits and add the accumulator with 32-bit wrapping. Saturating dots keep the wide-sum path.

What is in it

  • lower_wide.rs emits packed operations for signed four-bit dots and checks both emission and GPU results. ops.rs adds the shared DXIL call builder.

If #2108 lands first, rebase this branch onto main and reuse the common packed-dot helper. Rerun the paired checks on the resulting head.

Tested

  • Windows 11 build 26300, Ryzen 7 9800X3D, GeForce RTX 5080 driver 32.0.16.2124, integrated Radeon driver 32.0.21042.62, Rust 1.100.0 MSVC and SDK DXC 1.9.2602.17.
  • An independent temporary release Cargo fixture validated each generated container with DXC. The mixed kernels emitted 11.30–13.76% fewer bytes and the dense kernels emitted 27.22–30.93% fewer bytes. Dense translation time fell 24.55–25.15% by the median across four interleaved runs per tree. The clamped control had identical size and hash.
  • Main 6ea813a61f and clean head cb6cdb957c built with cargo build --release -p xcl.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture counts are passed / failed / ignored / internal skips. Cargo includes internal skips in the passed count.
  • On RTX 5080, main reported 1150 / 4 / 46 / 27 and the candidate reported 1152 / 4 / 46 / 27. Fuzz seeds 70, 545, 1019, 1507 failed with the same diagnostics on both revisions. Both new tests passed.
  • On Integrated Radeon, main reported 1153 / 1 / 46 / 10 and the candidate reported 1155 / 1 / 46 / 10. Fuzz seeds 540 failed with the same diagnostics on both revisions. Both new tests passed.

Regression run

main:

xcl-smoke v1
commit: 6ea813a61f7d324e2fcbeb0c6a068edcd37e818b
gpu: NVIDIA GeForce RTX 5080
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1240 (PresentX 1240)
presents per 2 s (last 3): 39 22 2
device removals: 0
crashes: 0
peak commit: 28534 MB

PR:

xcl-smoke v1
commit: cb6cdb957c4be753e0f361bc52941c066699235b
gpu: NVIDIA GeForce RTX 5080
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1640 (PresentX 1640)
presents per 2 s (last 3): 60 50 56
device removals: 0
crashes: 0
peak commit: 18769 MB

Not tested

  • The 60 s smoke checks title stability. Instruction coverage during the title run, cold driver PSO compilation, and GPU execution time were not measured. GitHub-hosted CI is pending PR creation.

AI use

  • T3 Code / Antigravity (gemini-4-neon, medium) implemented the change and tests and ran the first validation. T3 Code / OpenAI Codex (gpt-6.2-sol) reviewed the diff, independently ran the comparisons and prepared this draft.
<!-- greyfinch-sync:ivall/xcl:issue:5486461446 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2162). Originally posted by [wasonidas](https://github.com/wasonidas) on 2026-11-25T06:35:20Z. --- Part of #1269. Lower unclamped `V_DOT8_I32_I4` with two signed packed byte dot operations. Put each nibble in the high bits of a byte, shift the exact sum back by eight bits and add the accumulator with 32-bit wrapping. Saturating dots keep the wide-sum path. **What is in it** - `lower_wide.rs` emits packed operations for signed four-bit dots and checks both emission and GPU results. `ops.rs` adds the shared DXIL call builder. If #2108 lands first, rebase this branch onto main and reuse the common packed-dot helper. Rerun the paired checks on the resulting head. **Tested** - Windows 11 build 26300, Ryzen 7 9800X3D, GeForce RTX 5080 driver 32.0.16.2124, integrated Radeon driver 32.0.21042.62, Rust 1.100.0 MSVC and SDK DXC 1.9.2602.17. - An independent temporary release Cargo fixture validated each generated container with DXC. The mixed kernels emitted 11.30–13.76% fewer bytes and the dense kernels emitted 27.22–30.93% fewer bytes. Dense translation time fell 24.55–25.15% by the median across four interleaved runs per tree. The clamped control had identical size and hash. - Main 6ea813a61f7d324e2fcbeb0c6a068edcd37e818b and clean head cb6cdb957c4be753e0f361bc52941c066699235b built with `cargo build --release -p xcl`. - `cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture` counts are passed / failed / ignored / internal skips. Cargo includes internal skips in the passed count. - On RTX 5080, main reported 1150 / 4 / 46 / 27 and the candidate reported 1152 / 4 / 46 / 27. Fuzz seeds 70, 545, 1019, 1507 failed with the same diagnostics on both revisions. Both new tests passed. - On Integrated Radeon, main reported 1153 / 1 / 46 / 10 and the candidate reported 1155 / 1 / 46 / 10. Fuzz seeds 540 failed with the same diagnostics on both revisions. Both new tests passed. **Regression run** main: ``` xcl-smoke v1 commit: 6ea813a61f7d324e2fcbeb0c6a068edcd37e818b gpu: NVIDIA GeForce RTX 5080 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1240 (PresentX 1240) presents per 2 s (last 3): 39 22 2 device removals: 0 crashes: 0 peak commit: 28534 MB ``` PR: ``` xcl-smoke v1 commit: cb6cdb957c4be753e0f361bc52941c066699235b gpu: NVIDIA GeForce RTX 5080 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1640 (PresentX 1640) presents per 2 s (last 3): 60 50 56 device removals: 0 crashes: 0 peak commit: 18769 MB ``` **Not tested** - The 60 s smoke checks title stability. Instruction coverage during the title run, cold driver PSO compilation, and GPU execution time were not measured. GitHub-hosted CI is pending PR creation. **AI use** - T3 Code / Antigravity (`gemini-4-neon`, medium) implemented the change and tests and ran the first validation. T3 Code / OpenAI Codex (`gpt-6.2-sol`) reviewed the diff, independently ran the comparisons and prepared this draft.
JJAutoCompare commented 2026-11-25 07:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:59:03Z.


Independent Windows x64 + Intel Arc A770 test report on commit cb6cdb957c4be753e0f361bc52941c066699235b.

Environment

  • OS: Windows 11 Enterprise Evaluation x64 (build 26200.9974, Session 0)
  • CPU: AMD Ryzen 7 3800X
  • GPU: Intel Arc A770 16 GiB (driver 32.0.101.9175, Tiled Resources Tier 4, Resource Heap Tier 1, DoublePrecisionFloatShaderOps=0)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5 (01b62ad47)

Command
Executed under serialized Arc A770 GPU mutex (XCL_ADAPTER=A770) with pre/post-mutex executable SHA-256 verified (5263E0AF38B6B3661E2E6DBC27F780CB4732817D7F5170C13B201A09F9431AB0):

xcl-97fdf2b9ff8e1482.exe --exact --nocapture --test-threads=1 `
  gpu::dxil::lower_wide::signed_dot8_tests::signed_dot8_emits_two_packed_signed_dots_only_for_unclamped `
  gpu::dxil::lower_wide::signed_dot8_tests::signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu

Results

  • Passed: 2, Failed: 0, Ignored: 0, Skipped: 0 (0.26s, exit code 0)
  • Both targeted signed_dot8 tests (including the Arc A770 GPU oracle test) passed without SKIPPED output.

Not tested

  • Full workspace suite and game smoke run.

AI use

  • Verified and published with T3 Code / Antigravity (gemini-4-neon).
<!-- greyfinch-sync:ivall/xcl:comment:7155362424 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2162#issuecomment-7155362424). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:59:03Z. --- Independent Windows x64 + Intel Arc A770 test report on commit `cb6cdb957c4be753e0f361bc52941c066699235b`. **Environment** - OS: Windows 11 Enterprise Evaluation x64 (build 26200.9974, Session 0) - CPU: AMD Ryzen 7 3800X - GPU: Intel Arc A770 16 GiB (driver `32.0.101.9175`, Tiled Resources Tier 4, Resource Heap Tier 1, `DoublePrecisionFloatShaderOps=0`) - Toolchain: `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5 (01b62ad47)` **Command** Executed under serialized Arc A770 GPU mutex (`XCL_ADAPTER=A770`) with pre/post-mutex executable SHA-256 verified (`5263E0AF38B6B3661E2E6DBC27F780CB4732817D7F5170C13B201A09F9431AB0`): ```powershell xcl-97fdf2b9ff8e1482.exe --exact --nocapture --test-threads=1 ` gpu::dxil::lower_wide::signed_dot8_tests::signed_dot8_emits_two_packed_signed_dots_only_for_unclamped ` gpu::dxil::lower_wide::signed_dot8_tests::signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu ``` **Results** - Passed: 2, Failed: 0, Ignored: 0, Skipped: 0 (0.26s, exit code 0) - Both targeted `signed_dot8` tests (including the Arc A770 GPU oracle test) passed without `SKIPPED` output. **Not tested** - Full workspace suite and game smoke run. **AI use** - Verified and published with T3 Code / Antigravity (`gemini-4-neon`).
futurepro62 commented 2026-11-25 08:08:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T07:06:01Z.


Full-suite run, since this PR has no test report yet. Tested exact head cb6cdb9 (on its base 6ea813a).

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::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1144 passed, 0 failed, 44 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_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: signed_dot8_emits_two_packed_signed_dots_only_for_unclamped, signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu.
  • 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: 1155 passed, 0 failed, 46 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 568e7db too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (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:7155486934 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2162#issuecomment-7155486934). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-25T07:06:01Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `cb6cdb9` (on its base `6ea813a`). **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::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1144 passed, 0 failed, 44 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_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: `signed_dot8_emits_two_packed_signed_dots_only_for_unclamped`, `signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu`. - 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`: **1155 passed, 0 failed, 46 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 `568e7db` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([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-25 08:08:12 +00:00 (Migrated from github.com)

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


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7155752860 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2162#issuecomment-7155752860). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T07:20:31Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
luckyteagirl commented 2026-11-25 08:08:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T07:39:03Z.


Independent RX 6800M check on exact head cb6cdb957c4be753e0f361bc52941c066699235b (PR base 568e7db7729c8fa6c8f0f4b32d798faaf11462bb).

Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M, driver 30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Clean detached worktree. XCL_ADAPTER=6800M, XCL_REQUIRE_GPU=wave64, XCL_DIRECT_DXIL=1, and XCL_DXC_DIR pointed at the matching DXC/DXIL binaries.

Command: cargo test --locked -p xcl --lib -j 2 signed_dot8_tests -- --test-threads=1 --show-output

Result: 2 passed, 0 failed, 0 ignored, 0 SKIPPED lines. signed_dot8_emits_two_packed_signed_dots_only_for_unclamped validated and inspected emitted DXIL; signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu passed the direct-DXIL GPU result against the CPU oracle with wave64 required.

Scope: This was a focused debug-build test. I did not run the full workspace suite, a paired main run, or a retail-title smoke test on this PR head. The test reports GPU parity for its fixed and generated lane inputs; it does not measure the PR's performance claim.

AI use: OpenAI Codex ran the tests, checked the clean revision and log, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7156098371 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2162#issuecomment-7156098371). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T07:39:03Z. --- Independent RX 6800M check on exact head `cb6cdb957c4be753e0f361bc52941c066699235b` (PR base `568e7db7729c8fa6c8f0f4b32d798faaf11462bb`). **Environment:** Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M, driver `30.0.13002.13003`; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Clean detached worktree. `XCL_ADAPTER=6800M`, `XCL_REQUIRE_GPU=wave64`, `XCL_DIRECT_DXIL=1`, and `XCL_DXC_DIR` pointed at the matching DXC/DXIL binaries. **Command:** `cargo test --locked -p xcl --lib -j 2 signed_dot8_tests -- --test-threads=1 --show-output` **Result:** 2 passed, 0 failed, 0 ignored, 0 `SKIPPED` lines. `signed_dot8_emits_two_packed_signed_dots_only_for_unclamped` validated and inspected emitted DXIL; `signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu` passed the direct-DXIL GPU result against the CPU oracle with wave64 required. **Scope:** This was a focused debug-build test. I did not run the full workspace suite, a paired main run, or a retail-title smoke test on this PR head. The test reports GPU parity for its fixed and generated lane inputs; it does not measure the PR's performance claim. AI use: OpenAI Codex ran the tests, checked the clean revision and log, and prepared this report.
github-actions[bot] commented 2026-11-28 20:19:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19:00Z.


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

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

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


Triage (#1607) – head cb6cdb9

Not a duplicate of #2108: that PR moves v_dot4_*_i8/u8 and v_dot4c_i32_i8 to dot4AddPacked, and this one moves unclamped v_dot8_i32_i4. Both add the same generic Shader::dot4_add_packed helper in ops.rs, so whichever merges second has to drop its copy.
Main already has dot4_add_u8_packed (from #2173, unsigned dot8), so this needs a rebase onto that helper (add a signed variant) rather than a second one.
The nibble-to-high-nibble scaling is exact (sum*256 stays within i32, and ashr 8 is exact), and the GPU test compares wrapping and clamped results.
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:7304137519 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2162#issuecomment-7304137519). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:30:24Z. --- **Triage (#1607)** – head cb6cdb9 Not a duplicate of #2108: that PR moves `v_dot4_*_i8/u8` and `v_dot4c_i32_i8` to `dot4AddPacked`, and this one moves unclamped `v_dot8_i32_i4`. Both add the same generic `Shader::dot4_add_packed` helper in `ops.rs`, so whichever merges second has to drop its copy. Main already has `dot4_add_u8_packed` (from #2173, unsigned dot8), so this needs a rebase onto that helper (add a signed variant) rather than a second one. The nibble-to-high-nibble scaling is exact (sum*256 stays within i32, and `ashr 8` is exact), and the GPU test compares wrapping and clamped results. 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/2162:upstream-pr/2162'
git switch 'upstream-pr/2162'

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