Tests: verify RDNA2 multi-dword, d16, and dual LDS ops on the GPU #544
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!544
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-544"
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?
@Vadson159 on GitHub · 2026-11-24 01:36 UTC · original
Vadson159:test/recomp-lds→main· +1233 −0 · 1 files · 1 commits · openAdd GPU verification tests for previously untested RDNA2 LDS (
DS_*) instructions against the AMD RDNA 2 ISA specification: wide multi-dword accesses (DS_WRITE_B64/B96/B128,DS_READ_B64/B96/B128,DS_NOP), dual-offset and stride-64 operations (DS_WRITE2_B64,DS_READ2_B64,DS_WRITE2ST64_B32/B64,DS_READ2ST64_B32/B64,DS_WRXCHG2_RTN_B32,DS_WRXCHG2ST64_RTN_B32), 32-bit LDS atomics (DS_INC_RTN_U32,DS_DEC_RTN_U32,DS_RSUB_RTN_U32,DS_WRXCHG_RTN_B32,DS_MSKOR_RTN_B32), and D16 sub-dword accesses (DS_WRITE_B8_D16_HI,DS_WRITE_B16_D16_HI,DS_READ_U8_D16/_HI,DS_READ_I8_D16/_HI,DS_READ_U16_D16/_HI).Tests only — no runtime code in
crates/xcl/srcis changed.What is in it
crates/xcl/tests/gpu_recomp_lds.rs:lds_wide_dual_d16_translate_and_compile_with_dxc: verifies HLSL translation,xcl_lds/XCL_X_LDS_TOPemission alongside a cross-halfV_READFIRSTLANE_B32exchange, and DXC compilation acrosswave64,split-wave64,wave32, andwave32@hw64.gpu_lds_wide_b64_b96_b128_and_addr_overlap: verifiesDS_WRITE/READ_B64/B96/B128andDS_NOPwith 16-bit(OFFSET1 << 8) | OFFSET0byte offsets (cross-checked at offset 0), neighbor(lane ^ 1)reads,VDST == ADDR/VDST + 1 == ADDRoverlap hazards, divergentEXECmasking, andsplit-wave64coexistence withV_READFIRSTLANE_B32.gpu_lds_dual_stride64_and_atomics: verifies 8-byte (*2_B64), 256-byte (*2ST64_B32), and 512-byte (*2ST64_B64) strides,VDST == ADDR/VDST + 1 == ADDRoverlaps,DS_WRXCHG2_RTN_B32/DS_WRXCHG2ST64_RTN_B32(including multi-lane shared-slot atomic permutation checks),DS_INC/DEC/RSUB_RTN_U32/DS_WRXCHG/MSKOR_RTN_B32, and divergentEXECmasking.gpu_lds_d16_subdword_and_sign_extension: verifies concurrent sibling-preservingDS_WRITE_B8_D16_HI(4 lanes/dword) andDS_WRITE_B16_D16_HI(2 lanes/dword), all 6DS_READ_U8/I8/U16_D16/_HIvariants across all 4 byte alignments and nonzerooff16, 8-to-16 sign extension, untouched half preservation,VDST == ADDR, and divergentEXECmasking.Tested
32.0.32029.2010; AMD Radeon(TM) Graphics driver32.0.21045.29003also present), Windows10.0.26300.0,rustc 1.100.0(0ef1bc386 2026-11-09), DXC1.8.2502.11(C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64), debug build.XCL_REQUIRE_GPU=wave64,mesh+.\scripts\test.ps1(cargo test --workspace -- --test-threads=4): 684 passed, 0 failed, 41 ignored (0 GPU tests skipped;XCL_SAMPLE_*unset).cargo test -p xcl --test gpu_recomp_lds: 4 passed, 0 failed, 0 ignored.cargo clippy -p xcl --test gpu_recomp_lds -- --no-deps: 0 warnings incrates/xcl/tests/gpu_recomp_lds.rs.rustfmt --check crates/xcl/tests/gpu_recomp_lds.rs: passed.Regression run
crates/xcl/srcis untouched).Not tested
split-wave64andwave32paths were exercised on the RX 9070 XT).--release) and retail titles (XCL_SAMPLE_*unset; no game folder locally).AI use
@thehollowedone on GitHub · 2026-11-24 01:38 UTC · original
Tested
RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug. With
XCL_ADAPTER=3080 TiandXCL_REQUIRE_GPU=1,cargo test --offline --locked -p xcl --test gpu_recomp_lds -- --test-threads=1 --nocapturereported 4 passed, 0 failed, 0 ignored, and no runtime skips. Tested commit 3eab39fGPU readbacks matched in wave32 and split-wave64 for wide reads and writes, dual-address operations and atomics, and D16 packing and sign extension. The separate translation test compiled all four wave configurations with DXC.
Not tested
Native wave64 execution, the full workspace suite, and retail titles.
AI use
Codex with GPT-6.2 Sol ran the tests and drafted this report.
@joeypercia on GitHub · 2026-11-24 03:39 UTC · original
RDNA2 run (the PR has RDNA4 and an NVIDIA run):
3eab39fmerged ontomain91f9a5e(clean merge).Tested
cargo test -p xcl --test gpu_recomp_lds: 4 passed, 0 failed on the RDNA2 iGPU (native wave64 and the 32-lane forms) and on the RTX 4070 Ti, noSKIPPEDcargo test --workspace --no-fail-fast -- --test-threads=4on the RDNA2 iGPU: 696 passed, 0 failed, 41 ignored;SKIPPED:gpu_geometry_mode_es_gs_strip,gpu_mesh_mode_two_passes(no mesh shaders)Not tested
Run and report by Claude Code (Claude Opus 5.5).
@akimfomin on GitHub · 2026-11-24 10:01 UTC · original · edited 2026-11-24 10:02 UTC
Thanks for adding the D16 coverage. PortBridge picked up this test while I was checking the related translator change in VIctory. The
DS_READ_U16_D16_HIprobes here appear to read aligned halfwords. If unaligned loads are in scope, would a byte-3 case be useful for the GPU fixture?I wrote
0xAB123456and0xDEADCDBEto adjacent LDS dwords, seeded the destination with0xCAFE1357, and read at byte offset 3. The translated VIctory shader returned0xBEAB1357on both NVIDIA D3D12 and WARP. That exercises the two-word read and preservation of the destination’s low half in one case. The result is for VIctory’s translator. Does the native XCL fixture agree?VIctory readback and test patch. AI-assisted with Codex.
@JJAutoCompare on GitHub · 2026-11-25 06:53 UTC · original
Empirical test report (
3eab39f8)Independent Intel Arc A770 GPU verification of PR #544 at detached head
3eab39f8d43ea9d8422827fed53387c441ed2eff(clean worktree).Hardware / environment
32.0.101.9175), AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation x64 build26200.9974.rustc 1.100.0 (0ef1bc386 2026-11-09)(x86_64-pc-windows-msvc), DXC1.9.2609.5 (01b62ad47)+ DXIL1.9.2609.5, unoptimized Cargo test profile with debug info and incremental compilation disabled.Commands and results
cargo test -p xcl --tests --no-run --message-format=jsonoutside the GPU lock.Invoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1:gpu_recomp_lds.exe --nocapture --test-threads=1(exit 0, 0.69s).Observed behavior
gpu_lds_d16_subdword_and_sign_extension,gpu_lds_dual_stride64_and_atomics,gpu_lds_wide_b64_b96_b128_and_addr_overlap, andlds_wide_dual_d16_translate_and_compile_with_dxcall passed on the Intel Arc A770 with DXC 1.9.2609.5.Not tested
AI use
Verified and published with T3 Code / Antigravity (gemini-4-neon).
@DavidM1911 on GitHub · 2026-11-25 13: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.