Tests: verify direct DXIL vs HLSL GPU parity for wide, paired, d16, and ADDTID LDS ops #2093
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!2093
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2093"
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:51 UTC · original
ramon-victor:tests/gpu-dxil-lds-wide-d16-parity→main· +321 −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.rsLDS wide, paired/ST64, sub-dword/D16, andADDTIDload/store 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_lds_wide_d16_parity.rs:direct_dxil_lds_wide_64_96_128_parity:DS_WRITE_B64/B96/B128+S_BARRIER+ cross-laneDS_READ_B64/B96/B128withOFFSET1andV_CMPX_GT_U32inactive-laneEXECmasking.direct_dxil_lds_two_address_and_st64_parity:DS_WRITE2_B32/DS_READ2_B32(includingVDST == ADDRregister overlap),DS_WRITE2_B64/DS_READ2_B64,DS_WRITE2ST64_B32/DS_READ2ST64_B32(256-byte stride), andDS_WRITE2ST64_B64/DS_READ2ST64_B64(512-byte stride).direct_dxil_lds_subdword_and_d16_parity:DS_WRITE_B8,DS_WRITE_B8_D16_HI,DS_WRITE_B16,DS_WRITE_B16_D16_HIacross neighbouring lanes sharing dwords, read back withDS_READ_{U8,I8,U16,I16}and all sixDS_READ_{U8,I8,U16}_D16{,_HI}variants preserving the untouched 16-bit half ofVDST.direct_dxil_lds_addtid_and_exec_mask_parity:DS_READ_ADDTID_B32andDS_WRITE_ADDTID_B32addressing viaM0[15:0] + offset + 4*lane(with non-zero high half inM0) andEXEC-masked even-lane updates.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_lds_wide_d16_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 head5e4d004: 1158 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20no wave64, 3per-lane form#1426, 1no heap windows).Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 04:10 UTC · original
Arc A770 test report for XCL PR #2093
Tested
5e4d004939bee3aefe9079d5994c590a7920e17cbefore and after the run. The existing checkout was clean and detached at that commit. The live discussion contained zero comments or reviews before and after testing. The PR description records the author's RTX 3070 results.x86_64-pc-windows-msvc. The test loggeddxcompileranddxil1.9.2609.5 loaded from%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64.cargo test --locked -p xcl --test gpu_dxil_lds_wide_d16_parity --no-run. Cargo exited 0 after 36.57 s in the unoptimized test profile. UsedCARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0,CARGO_TARGET_DIR=L:/XclTooling/pr2014-1c971de6/target, andTEMPandTMPunderL:/XclTooling/pr2093/temp.crates/xclpackage directory withXCL_ADAPTER=A770andXCL_DXC_DIRset to the DXC directory above. The mutex wrapper ran in a localPowerShell.exe -NoProfile -ExecutionPolicy RemoteSignedchild. The callback launched the executable viaSystem.Diagnostics.Processwith these exact arguments and recorded its stdout, stderr, and exit code separately.The fixture validated the direct DXIL and compiled the HLSL reference with DXC for
mainatcs_6_6. Both backends dispatched and matched bit for bit in VGPRs v10–v21 for every lane of logical wave32 and split logical wave64, accounting for 384 and 768 compared output words, respectively. The split mode follows from the checked-in fixture's mode selection and the A770 capability recorded on STOR-WINLAB (D3D12 wave lane range 8–32).Expected-value checks also passed. Neighboring lanes packed four bytes or two halfwords per LDS dword using
DS_WRITE_B8,DS_WRITE_B16, and theirD16_HIforms. Readback checked that the high-input forms selected the source bits starting at bit 16, and that U8/I8 and U16/I16 reads zero-extended or sign-extended across the sign boundary at lane 8. All six U8, I8, and U16 D16/D16_HI reads preserved the other half of the seeded destination0x5A5A1234. The I8 D16 forms sign-extended to 16 bits before inserting the result.Not tested
The three other fixtures in this integration target, the workspace suite, retail-title smoke, native hardware wave64, other adapters and drivers, and release builds.
AI use
T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixture, verified the live PR and logs, and wrote this report.
@DarkPanda69 on GitHub · 2026-11-25 04:25 UTC · original
Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split; the other report here is Arc).
Tested: pass, head
5e4d004applied 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_lds_wide_d16_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:26 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.5e4d004as it is (merge base withmaincbc296a), no uncommitted changes. Thegpu_dxil_lds_wide_d16_paritytest binary runs under Wine, one test per process.direct_dxil_lds_addtid_and_exec_mask_parity: okdirect_dxil_lds_subdword_and_d16_parity: okdirect_dxil_lds_two_address_and_st64_parity: okdirect_dxil_lds_wide_64_96_128_parity: okNot tested
AI use
@DavidM1911 on GitHub · 2026-11-25 05:43 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.