Tests: verify direct DXIL vs HLSL GPU parity for wide, paired, d16, and ADDTID LDS ops #2083
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-25T03:51:20Z.
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.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
upstream-sync referenced this pull request2026-11-25 05:07:03 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:10:58Z.
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.
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T04:25:03Z.
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.
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:26:08Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:43:40Z.
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 11:07:09 +00:00
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T09:18:03Z.
Independent desktop NVIDIA verification of PR #2093 at head
5e4d004939bee3aefe9079d5994c590a7920e17c(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 (
5e4d0049)cargo test --release -p xcl --test gpu_dxil_lds_wide_d16_parity -- --nocapture(3 consecutive runs)4 passed; 0 failed; 0 ignored; 0 filtered out× 3 (0.57s,0.32s,0.31s,0skipped; live RTX 4060wave32+split-wave64execution ofdirect_dxil_lds_addtid_and_exec_mask_parity,direct_dxil_lds_subdword_and_d16_parity,direct_dxil_lds_two_address_and_st64_parity, anddirect_dxil_lds_wide_64_96_128_parity)cargo build --release -p xcl0.06sincremental 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 #2093 (
5e4d004939bee3aefe9079d5994c590a7920e17c):Limits of coverage
crates/xcl/tests/gpu_dxil_lds_wide_d16_parity.rs,0production-code changes); all 4 direct-DXIL vs. HLSL LDS wide/paired/d16/ADDTID 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 BBareth on 2026-11-30T10:10:33Z.
merge-check claim
head:
5e4d004939Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:22:41Z.
merge-check
base:
9dfbe3ea66head:
5e4d004939merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2889 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test binary
tests/gpu_dxil_lds_wide_d16_parity.rsran 4 tests, all passed.review: no blocking finding; one new integration test file, read; test-only, no file or process access. Direct DXIL against HLSL + DXC for LDS loads and stores (wide 64/96/128-bit, two-address, sub-dword and D16, ADDTID under EXEC), with the direct DXIL validated first and inactive lanes checked for being left alone. This card has no native wave64, so only the wave32 / split forms can have run here. Same family as #1823 and #2276; not a duplicate.
performance: none; tests only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T11:57:43Z.
merge-check claim
head:
5e4d004939Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T12:03:40Z.
merge-check
base:
9dfbe3ea66head:
5e4d004939merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2889 passed, 1 failed, 51 ignored; SKIPPED: 27 (22 no wave64, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on base
9dfbe3eaalone); all 4 new tests in gpu_dxil_lds_wide_d16_parity passedreview: none (read the full +321/-0 diff in crates/xcl/tests/gpu_dxil_lds_wide_d16_parity.rs: standalone differential parity test file covering wide 64/96/128-bit LDS ops, DS_READ2/WRITE2 (including VDST==ADDR overlap) and ST64 strides, sub-dword and D16/D16_HI ops preserving untouched 16-bit halves, and DS_READ/WRITE_ADDTID_B32 with M0 + EXEC masking; all 4 tests passed on RTX 4070 SUPER in both wave32 and split wave64 modes; not tested: native wave64 hardware)
performance: none (test-only PR, no runtime changes)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:21:01Z.
Triage (#1607) – head
5e4d004Test-only: adds
crates/xcl/tests/gpu_dxil_lds_wide_d16_parity.rs, which compares direct DXIL with HLSL for wide b64/b96/b128 LDS, READ2/WRITE2 (including ST64 and VDST==ADDR), sub-dword and D16/D16_HI reads and writes, and ADDTID with M0 and EXEC. The ADDTID expectation (M0[15:0] + offset + 4*lane) matchesdxil/lower_mem.rs. #1778 covers other LDS ops (atomics, swizzle, bpermute) and does not overlap.No open or merged PR makes the same change. No problems found in the diff.
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.