Repository navigation
Tests: verify direct DXIL vs HLSL GPU parity for VALU carries, compares, and modifiers - #2089
ramon-victor wants to merge 1 commit into
Conversation
…es, and modifiers
Arc A770 verification for XCL PR #2089Tested on 2026-11-25 at the open PR head Tested
$exe = 'L:/XclTooling/pr2014-1c971de6/target/debug/build/xcl/cbaf442bf6866029/out/gpu_dxil_valu_exec_parity-cbaf442bf6866029.exe'
& $exe --exact direct_dxil_valu_vop3_modifiers_and_cndmask_parity --nocapture --test-threads=1
& $exe --exact direct_dxil_valu_conversions_and_pack_parity --nocapture --test-threads=1
Not testedCarry/borrow and clamp, compares and VCMPX, other fixtures, the workspace suite, native hardware wave64, other adapters, release builds, and retail titles. AI useT3 Code / Codex gpt-6.2-sol ran the two checked-in fixtures, inspected the logs and branch selection, and wrote this report. |
|
Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split; the other report here is Arc). Tested: pass, head
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
A run with vkd3d-proton as the host D3D12, so both the direct DXIL and the HLSL → DXC output go through dxil-spirv and the NVIDIA Vulkan driver: all 4 parity tests pass, none skipped. Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Add GPU differential parity tests between the direct RDNA2 → DXIL translator (
xcl::gpu::dxil::kernel::translate, validated withdxil.dll) and the HLSL + DXC path (xcl::gpu::recomp) forlower_valu.rscarry/borrow chains, integer clamp,V_CMP/V_CMPXpredicates, VOP3 source/output modifiers +V_CNDMASK_B32, and VALU conversions across wave32 and wave64 (split wave64 on wave32-only GPUs). Test-only change; no runtime files modified.What is in it
crates/xcl/tests/gpu_dxil_valu_exec_parity.rs:direct_dxil_valu_carries_borrows_and_int_clamp_parity: chained 64-bitV_ADD_CO_U32/V_ADD_CO_CI_U32,V_SUB_CO_U32/V_SUB_CO_CI_U32,V_SUBREV_CO_U32/V_SUBREV_CO_CI_U32, and clampedV_ADD_NC_U32/I32,V_SUB_NC_U32/I32,V_SUBREV_NC_U32under partialEXEC(verifying inactive lanes keep destination sentinels and write0to carry/borrowSDST).direct_dxil_valu_compares_and_vcmpx_vcc_preservation_parity:f32ordered/unordered compares onNaN/±0/±infwithABS/NEG, 64-bitu64/i64compares, andV_CMPX_LT_I32narrowingEXECwhile leavingVCCuntouched.direct_dxil_valu_vop3_modifiers_and_cndmask_parity: VOP3ABS,NEG,OMOD(*2,*4,/2) beforeCLAMPonV_ADD_F32/V_MUL_F32/V_FMA_F32/V_MIN_F32/V_MAX_F32,V_CNDMASK_B32with SGPR mask, andV_CVT_F16_F32OMOD+OP_SELhigh-half write preserving the low half.direct_dxil_valu_conversions_and_pack_parity:V_CVT_FLR_I32_F32,V_CVT_RPI_I32_F32,V_CVT_{I,U}32_F32,V_CVT_F32_{I,U}32,V_CVT_F32_UBYTE0..3,V_CVT_F32_F16(OP_SELlow/high), andV_CVT_PK_{I,U}16_{I,U}32.Tested
x86_64-pc-windows-msvc), DXC 1.8.2502.11 (Windows SDK 10.0.26100.0), debug build.cargo test -p xcl --test gpu_dxil_valu_exec_parity -- --nocapture: 4 passed, 0 failed, 0 ignored (0 SKIPPED; each test ran both wave32 and split wave64 through both Direct DXIL and HLSL+DXC)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4) on head6e8291d: 1158 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20no wave64, 3per-lane form#1426, 1no heap windows).Not tested
AI use