Tests: verify direct DXIL vs HLSL parity for VOP3P, movrel, and 64-bit VALU #1813
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by Ctrl-Alt-Haze on 2026-11-24T21:22:36Z.
Add 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.Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T21:36:12Z.
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.
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T21:41:33Z.
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.
Imported from ivall/xcl. Originally posted by Ctrl-Alt-Haze on 2026-11-24T22:15:50Z.
Thanks @DarkPanda69 (RX 9070 XT
native-w64+ RTX 3060) and @upipibi (RTX 3070) for testing2d86fe2and confirming all 3 wide-parity tests pass!Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T00:39:38Z.
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!
Imported from ivall/xcl. Originally posted by Ctrl-Alt-Haze on 2026-11-25T00:55:49Z.
@DavidM1911 Thanks for verifying
2d86fe2merged with currentmainon RTX 3060 Ti!Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:27:43Z.
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.Imported from ivall/xcl. Originally posted by Ctrl-Alt-Haze on 2026-11-25T03:35:43Z.
@JJAutoCompare Thanks for verifying
2d86fe2on Intel Arc A770 (direct_dxil_vop3p_packed_int_and_dot_paritypassing acrosssplit-w64andwave32)!Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:02:12Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:05:29Z.
merge-check claim
head:
2d86fe232fImported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:11:02Z.
merge-check
base:
d52ff48caahead:
2d86fe232fmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2878 passed, 2 failed, 51 ignored; 29 SKIPPED lines
failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017
correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base".
gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16fails on based52ff48cby itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:02:11Z.
merge-check claim
head:
2d86fe232fImported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:09:30Z.
merge-check
base:
9dfbe3ea66head:
2d86fe232fmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2888 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test binary
tests/gpu_dxil_wide_parity.rsran 3 tests, all passed (direct_dxil_vop3p_packed_int_and_dot_parity,direct_dxil_movrel_and_swaprel_parity,direct_dxil_valu64_int_and_f64_parity).review: no blocking finding; one new integration test file, read in full; test-only, no file or process access. For three instruction groups it translates the same program through direct DXIL and through HLSL + DXC, validates the direct DXIL, runs both on the GPU and compares every SGPR and VGPR lane, for each wave configuration the adapter offers. On this card the native wave64 configuration is not available, so only the split-wave64 and wave32 configurations can have run here; the test does not print which ones ran, so I cannot name them from the log. In the same family as #2276 (image ops) and not a duplicate of it.
performance: none; tests only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:54:16Z.
Triage (#1607) – head
2d86fe2No open or merged PR makes the same change. The other direct-DXIL/HLSL parity PRs cover other instruction groups: #2089 (VALU carries/compares, it shares only one
V_CMP_LT_I64line), #2091 (SALU) and #1843 (wave/mask). Main'score_tests.rshas aV_DOT8_U32_U4clamp test, but no packed-int, movrel/swaprel or 64-bit VALU parity suite. 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.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.