Repository navigation
Tests: check per-lane Direct DXIL wave, mask, and far-jump parity on GPU - #1843
microwave805 wants to merge 1 commit into
Conversation
Add GPU parity and API tests for recomp::lower_dxil covering areas that previously had only CPU-interpreter or no direct tests: S_WQM_B32/B64 + S_CSELECT_B32/B64 + V_CNDMASK_B32, scalar carry/borrow chains (S_ADDC_U32 / S_SUBB_U32), far jumps (S_GETPC_B64 + S_SETPC_B64), compute_code, compute_split, and survey_compute_code. Every emitted DXIL container is validated against DXC and run on the GPU in both wave32 (lower_dxil::kernel / compute_code) and split wave64 (lower_dxil::kernel_split / compute_split), compared register-for-register against the HLSL+DXC path. Assisted-by: Antigravity (Gemini 4 Neon)
|
AMD run with native 64-lane waves, which this PR lists as not tested, plus an NVIDIA one. Tested: pass, head
Not tested: Intel; Linux / Wine; the whole workspace suite. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
TestedOn PR #1843 head Built with 2 passed, 0 failed, 0 ignored, 0 explicit GPU skips. Each test passed its Direct DXIL vs. HLSL+DXC register comparisons and expected-value assertions in both modes.
Not testedNative hardware wave64, other adapters, the compute/survey fixture (including undecodable input), parallel test execution, the full workspace suite, retail titles, and Linux/Wine. AI useT3 Code / Codex (gpt-6.2-sol) ran the checked-in tests and wrote this report. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
merge-check claim |
|
merge-check |
|
merge-check claim |
|
merge-check |
|
No open or merged PR adds these per-lane ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Add GPU parity and API tests for the per-lane Direct DXIL backend (
recomp::lower_dxil) covering features that previously had only CPU-interpreter or no direct tests (S_WQM,S_CSELECT, scalar carry/borrow chains, far jumps,compute_code,compute_split, andsurvey_compute_code).What is in it
crates/xcl/tests/gpu_per_lane_parity.rs:per_lane_wqm_and_cselect_match_hlsl_on_gpu: validates and runsS_WQM_B32+S_CSELECT_B32+V_CNDMASK_B32(wave32 vialower_dxil::kernel) andS_WQM_B64+S_CSELECT_B64+V_CNDMASK_B32across both 32-lane halves (split wave64 vialower_dxil::kernel_split), comparing every SGPR/VGPR against the HLSL+DXC path.per_lane_scalar_carry_borrow_and_far_jump_match_hlsl_on_gpu: validates and runs chainedS_ADD_U32/S_ADDC_U32+S_SUB_U32/S_SUBB_U32and a far jump (S_GETPC_B64+S_ADD_U32+S_ADDC_U32+S_SETPC_B64) in both wave32 and split wave64 against HLSL+DXC.per_lane_compute_code_split_and_survey: checkslower_dxil::survey_compute_codeon valid and undecodable bytes, then validates and dispatches a compute shader with a far jump throughlower_dxil::compute_code(wave32) andlower_dxil::compute_split(split wave64, cross-checked against HLSL+DXC).Tested
stable-x86_64-pc-windows-msvc, debug)af24810(based onmainc4d37be):cargo test -p xcl --test gpu_per_lane_parity -- --nocapture: 3 passed, 0 failed, 0 ignored (0 skipped).\scripts\test.ps1(cargo build --workspace && cargo test --workspace -- --test-threads=4): 962 passed, 0 failed, 43 ignoredgpu_per_lane_parity): 18×no wave64(lower::tests,lower_dxil::tests,recomp::tests), 3×per-lane form: refused(lower_dxil::tests:f16 arithmetic,f16 packed,f32 conversions), 1×no heap windows(heap_window_out_of_memory_falls_back_to_the_switch_form), 1×cannot disable the driver cache(shaders::tests::pso_measurement_compiles_an_exact_synthetic_record)Regression run
crates/xcl/tests/gpu_per_lane_parity.rs(no runtime or build-input files changed).Not tested
AI use
crates/xcl/src/gpu/recomp/lower.rsandlower_dxil.rs, wrotecrates/xcl/tests/gpu_per_lane_parity.rsand this PR description, and ran the verification commands above.