Tests: verify direct DXIL vs HLSL GPU parity for MUBUF, TBUFFER, and SMEM ops #2084
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!2084
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2084"
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?
@ramon-victor on GitHub · 2026-11-25 03:31 UTC · original
ramon-victor:tests/gpu-dxil-mubuf-smem-parity→main· +410 −0 · 1 files · 1 commits · openAdd 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
@DarkPanda69 on GitHub · 2026-11-25 03:52 UTC · original
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
863aeb3applied on its basemaincbc296a, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --test gpu_dxil_mubuf_smem_parity -- --test-threads=4withXCL_ADAPTERset to each GPU:AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@JoaoPauluu on GitHub · 2026-11-25 05:25 UTC · original
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
x86_64-pc-windows-gnu.863aeb3as it is (merge base withmaincbc296a), no uncommitted changes. Thegpu_dxil_mubuf_smem_paritytest binary runs under Wine, one test per process.direct_dxil_mubuf_and_tbuffer_format_d16_parity: okdirect_dxil_mubuf_atomics_and_bounds_parity: okdirect_dxil_mubuf_raw_subdword_bounds_and_exec_parity: okdirect_dxil_smem_loads_alignment_and_bounds_parity: okNot tested
AI use
@DavidM1911 on GitHub · 2026-11-25 05:26 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.