Tests: verify direct DXIL vs HLSL parity for VOP3P, movrel, and 64-bit VALU #1823
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!1823
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1823"
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?
@Ctrl-Alt-Haze on GitHub · 2026-11-24 21:22 UTC · original
Ctrl-Alt-Haze:tests/direct-dxil-wide-and-movrel-parity→main· +252 −0 · 1 files · 1 commits · openAdd GPU differential parity tests between the direct RDNA2 -> DXIL translator (
gpu::dxil::kernel::translate_full) and the HLSL + DXC path (gpu::recomp::translate+dxc::compile) forlower_wideinstructions (VOP3Ppacked integer/dot ops,movrel/swaprel, and 64-bit integer /f64VALU). Test-only change; no runtime files modified.What is in it
crates/xcl/tests/gpu_dxil_wide_parity.rs:direct_dxil_vop3p_packed_int_and_dot_parity:v_pk_add/sub/mad/mul_lo/lshlrev/lshrrev/ashrrev/min/max(u16/i16, wrapping &CLAMP,OP_SEL/OP_SEL_HI) andv_dot4_i32_i8/u8,v_dot4c_i32_i8,v_dot8_i32_i4/u4,v_dot2_i32_i16/u16, and exact-inputv_dot2_f32_f16.direct_dxil_movrel_and_swaprel_parity:v_movrels_b32,v_movreld_b32,v_movrelsd_b32,v_movrelsd_2_b32, andv_swaprel_b32with dynamic/divergentEXECmasks.direct_dxil_valu64_int_and_f64_parity:v_lshlrev_b64,v_lshrrev_b64,v_ashrrev_i64,v_mad_u64_u32/v_mad_i64_i32(with carry masks),v_cmp_*_u64/i64/f64, andf64arithmetic / rounding / conversion ops (v_add_f64,v_mul_f64,v_fma_f64,v_min_f64,v_max_f64,v_floor_f64,v_ceil_f64,v_fract_f64,v_rndne_f64,v_cvt_f32_f64,v_cvt_f64_f32).dxil::validate::validateand executes all runnable wave configurations (split-w64+wave32on Wave32 GPUs;native-w64on Wave64 GPUs).Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13), DXC1.8.2502.11, debug, synthetic tests only (no game files).cargo test -p xcl --test gpu_dxil_wide_parity -- --nocapture: 3 passed, 0 failed, 0 ignored (ran bothsplit-w64andwave32on RTX 5070 Ti)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 895 passed, 0 failed, 42 ignored (SKIPPED GPU tests:2 (no wave64)—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware;1 (no heap windows)—heap_window_out_of_memory_falls_back_to_the_switch_form).Not tested
native-w64execution path (RTX 5070 Ti supports Wave32 / split-Wave64 only; native Wave64 was skipped byconfigs()).XCL_SAMPLE_*variables unset).AI use
crates/xcl/tests/gpu_dxil_wide_parity.rsand ran the test suite.@DarkPanda69 on GitHub · 2026-11-24 21:36 UTC · original
AMD run with native 64-lane waves, so the
native-w64configuration thatconfigs()skipped on the RTX 5070 Ti runs here.Tested: pass, head
2d86fe2applied on its basemainc4d37be, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --test gpu_dxil_wide_parity -- --test-threads=4:direct_dxil_vop3p_packed_int_and_dot_parity,direct_dxil_movrel_and_swaprel_parity,direct_dxil_valu64_int_and_f64_parity).cargo test -p xcl --lib -- gpu::recomp --test-threads=4with this PR applied: RX 9070 XT 261 passed, 0 failed, 18 ignored; RTX 3060 261 passed, 0 failed, 18 ignored (the SKIPPED lines on both are the same as onmain).Not tested: Intel; the whole workspace suite.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@upipibi on GitHub · 2026-11-24 21:41 UTC · original
Same on Ampere: RTX 3070 8 GB (32-lane waves, so
split-w64andwave32run,native-w64skips), driver 616.56, Windows 11, debug,2d86fe2merged ontomain1d027e5.cargo test -p xcl --test gpu_dxil_wide_parity: 3 passed, 0 failed, in 2 of 2 runs.AI-assisted (Claude Code). Synthetic tests only.
@Ctrl-Alt-Haze on GitHub · 2026-11-24 22:15 UTC · original
Thanks @DarkPanda69 (RX 9070 XT
native-w64+ RTX 3060) and @upipibi (RTX 3070) for testing2d86fe2and confirming all 3 wide-parity tests pass!@DavidM1911 on GitHub · 2026-11-25 00:39 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@Ctrl-Alt-Haze on GitHub · 2026-11-25 00:55 UTC · original
@DavidM1911 Thanks for verifying
2d86fe2merged with currentmainon RTX 3060 Ti!@JJAutoCompare on GitHub · 2026-11-25 03:27 UTC · original
Tested
PR #1823 was open at
2d86fe232f074e0c19bb4cc46233c9c2d57d757fbefore and after the run. The existing STOR-WINLAB worktree was clean and detached at that exact commit.0ef1bc386,x86_64-pc-windows-msvc) and Cargo 1.100.0. The test loaded DXC and DXIL 1.9.2609.5 from%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64viaXCL_DXC_DIR.XCL_ADAPTER=A770.CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0. Cargo usedL:/XclTooling/pr1947-1831ec4-t3-97236edf/target.TEMPandTMPwereL:/XclTooling/pr1823/temp.Prebuild outside the mutex exited 0. The filtered binary ran under the Arc mutex in a fresh PowerShell with process-scoped
RemoteSigned. The wrapper released the mutex and exited 0. 1 passed, 0 failed, 0 ignored, 0 explicitSKIPPEDlines, 2 filtered out (1.43 s).split-w64(64 logical lanes) andwave32(32 lanes) passed. The fixture validated direct DXIL and matched the HLSL/DXC readback across 22 VGPRs per lane. The wave branches follow from the checked-inconfigs()gates and the existing same-host A770 D3D12 capability log (wave lanes 8–32). The gate omittednative-w64without emitting a test skip.Not tested
native-w64, themovrel/swapreland 64-bit VALU fixtures, fuzzing, the workspace suite, retail games, and other adapters.AI use
T3 Code / Codex
gpt-6.2-solran the fixture and wrote this report.@Ctrl-Alt-Haze on GitHub · 2026-11-25 03:35 UTC · original
@JJAutoCompare Thanks for verifying
2d86fe2on Intel Arc A770 (direct_dxil_vop3p_packed_int_and_dot_paritypassing acrosssplit-w64andwave32)!View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.