Repository navigation
Tests: verify direct DXIL vs HLSL GPU parity for MUBUF, TBUFFER, and SMEM ops - #2084
ramon-victor wants to merge 1 commit into
Conversation
|
Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split), plus an RTX 3060. 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! |
|
Independent desktop NVIDIA verification of PR #2084 at head Environment
Targeted GPU parity tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --test gpu_dxil_mubuf_smem_parity -- --nocapture (3 consecutive runs) |
4 passed; 0 failed; 0 ignored; 0 filtered out × 3 (1.63s, 0.67s, 0.65s, 0 skipped; live RTX 4060 wave32 + split-wave64 execution of direct_dxil_mubuf_and_tbuffer_format_d16_parity, direct_dxil_mubuf_atomics_and_bounds_parity, direct_dxil_mubuf_raw_subdword_bounds_and_exec_parity, and direct_dxil_smem_loads_alignment_and_bounds_parity) |
cargo build --release -p xcl |
Clean build (0.08s incremental after --test build, exit 0, 0 new warnings) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (cbc296ab65a2661a61e3e2da109134bcd5319f60, cached baseline on the same machine):
xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1572)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14509 MB
PR #2084 (863aeb32ce009a8568dcc107bee6fb1165862487):
xcl-smoke v1
commit: 863aeb32ce009a8568dcc107bee6fb1165862487
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1584 (PresentX 1584)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14528 MB
Limits of coverage
- This PR is test-only (
crates/xcl/tests/gpu_dxil_mubuf_smem_parity.rs,0production-code changes); all 4 direct-DXIL vs. HLSL MUBUF/TBUFFER/SMEM differential parity tests executed and passed3/3on desktop RTX 4060 acrosswave32andsplit-wave64(gpu_modes()omits native Wave64 on Wave32-only Ada). - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
No open or merged PR adds direct-DXIL vs HLSL parity tests for MUBUF, TBUFFER and SMEM. #2143 covers FLAT/GLOBAL/SCRATCH and #1778 covers wave/LDS/MIMG, in separate files with no shared cases. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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_mem.rsMUBUF, TBUFFER, 32-bit MUBUF atomic, and SMEM instructions 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_mubuf_smem_parity.rs:direct_dxil_mubuf_raw_subdword_bounds_and_exec_parity:BUFFER_LOAD_DWORDX2/X3/X4(IDXEN,OFFEN,SOFFSET,OFFSET),BUFFER_STORE_DWORD/BYTE/SHORT,BUFFER_LOAD_{U,S}{BYTE,SHORT}, OOB clamping (loads return 0, stores leave memory untouched), and inactiveEXECpreservation.direct_dxil_mubuf_and_tbuffer_format_d16_parity:BUFFER_LOAD_FORMAT_X/XYZW,TBUFFER_LOAD_FORMAT_XY,BUFFER_LOAD_FORMAT_D16_X/XY,TBUFFER_LOAD_FORMAT_D16_XY,BUFFER_STORE_FORMAT_D16_XY/XYZW, customDST_SEL, unaligned offsets, and OOB zero-fill.direct_dxil_mubuf_atomics_and_bounds_parity: 16 32-bitBUFFER_ATOMIC_*ops (ADD,SUB,SMIN,UMIN,SMAX,UMAX,AND,OR,XOR,SWAP,CMPSWAP,INC,DEC,CSUB,FMIN,FMAXwithGLC=1), OOB zero return without memory modification, and inactive-laneVDATApreservation.direct_dxil_smem_loads_alignment_and_bounds_parity:S_LOAD_DWORD/X2/X4(unaligned offset truncation, negative 21-bit signed offset, SGPRSOFFSET+OFFSET) andS_BUFFER_LOAD_DWORD/X4/X8(per-dwordNUM_RECORDSbounds with stride and full OOB).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_mubuf_smem_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 head863aeb3: 1158 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20no wave64, 3per-lane form#1426, 1no heap windows).Not tested
AI use