Repository navigation
Tests: verify direct DXIL vs HLSL GPU parity for MUBUF, TBUFFER, and SMEM ops - #2084
Open
ramon-victor wants to merge 1 commit into
Open
ramon-victor wants to merge 1 commit into
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
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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