Recompiler: emit signed four-bit dot products in DXIL #2162
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2162
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2162"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@wasonidas on GitHub · 2026-11-25 06:35 UTC · original
wasonidas:xcl/direct-signed-dot8-6020a33→main· +121 −1 · 2 files · 1 commits · openPart of #1269. Lower unclamped
V_DOT8_I32_I4with 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.rsemits packed operations for signed four-bit dots and checks both emission and GPU results.ops.rsadds 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
6ea813a61fand clean headcb6cdb957cbuilt withcargo build --release -p xcl.cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapturecounts are passed / failed / ignored / internal skips. Cargo includes internal skips in the passed count.Regression run
main:
PR:
Not tested
AI use
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 on GitHub · 2026-11-25 06:59 UTC · original
Independent Windows x64 + Intel Arc A770 test report on commit
cb6cdb957c4be753e0f361bc52941c066699235b.Environment
32.0.101.9175, Tiled Resources Tier 4, Resource Heap Tier 1,DoublePrecisionFloatShaderOps=0)rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad47)Command
Executed under serialized Arc A770 GPU mutex (
XCL_ADAPTER=A770) with pre/post-mutex executable SHA-256 verified (5263E0AF38B6B3661E2E6DBC27F780CB4732817D7F5170C13B201A09F9431AB0):Results
signed_dot8tests (including the Arc A770 GPU oracle test) passed withoutSKIPPEDoutput.Not tested
AI use
gemini-4-neon).@futurepro62 on GitHub · 2026-11-25 07:06 UTC · original · edited 2026-11-25 07:15 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
cb6cdb9(on its base6ea813a).Tested
cargo build --workspace, thenXCL_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.signed_dot8_emits_two_packed_signed_dots_only_for_unclamped,signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpu.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).--skipleaves out tests that fail on main568e7dbtoo, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 07:20 UTC · original
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 on GitHub · 2026-11-25 07:39 UTC · original
Independent RX 6800M check on exact head
cb6cdb957c4be753e0f361bc52941c066699235b(PR base568e7db7729c8fa6c8f0f4b32d798faaf11462bb).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, andXCL_DXC_DIRpointed at the matching DXC/DXIL binaries.Command:
cargo test --locked -p xcl --lib -j 2 signed_dot8_tests -- --test-threads=1 --show-outputResult: 2 passed, 0 failed, 0 ignored, 0
SKIPPEDlines.signed_dot8_emits_two_packed_signed_dots_only_for_unclampedvalidated and inspected emitted DXIL;signed_dot8_matches_wrapping_and_saturated_cpu_results_on_gpupassed 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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.