Tests: verify direct DXIL vs HLSL GPU parity for MUBUF, TBUFFER, and SMEM ops #2074
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-25T03:31:45Z.
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
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T03:52:27Z.
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.
upstream-sync referenced this pull request2026-11-25 05:07:03 +00:00
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:25:59Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:26:56Z.
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!
upstream-sync referenced this pull request2026-11-25 10:09:30 +00:00
upstream-sync referenced this pull request2026-11-25 16:10:51 +00:00
upstream-sync referenced this pull request2026-11-25 18:03:26 +00:00
upstream-sync referenced this pull request2026-11-25 18:03:31 +00:00
upstream-sync referenced this pull request2026-11-25 18:04:03 +00:00
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T09:17:45Z.
Independent desktop NVIDIA verification of PR #2084 at head
863aeb32ce009a8568dcc107bee6fb1165862487(1commit; exact parent & merge-base:cbc296ab65a2661a61e3e2da109134bcd5319f60, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted GPU parity tests & build (
863aeb32)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,0skipped; live RTX 4060wave32+split-wave64execution ofdirect_dxil_mubuf_and_tbuffer_format_d16_parity,direct_dxil_mubuf_atomics_and_bounds_parity,direct_dxil_mubuf_raw_subdword_bounds_and_exec_parity, anddirect_dxil_smem_loads_alignment_and_bounds_parity)cargo build --release -p xcl0.08sincremental after--testbuild, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
cbc296ab65a2661a61e3e2da109134bcd5319f60, cached baseline on the same machine):PR #2084 (
863aeb32ce009a8568dcc107bee6fb1165862487):Limits of coverage
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).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:19:09Z.
Triage (#1607) – head
863aeb3No 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.
No problems found in the diff. The tests skip through
runner::skip_testwhen there is no GPU, DXC or wave64.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.