Repository navigation
Conversation
Add standalone GPU verification tests covering the 21 previously untested RDNA2 LDS instructions (DS_WRITE/READ_B64/B96/B128, DS_WRITE2/READ2_B64, DS_WRITE2ST64/READ2ST64_B32/B64, DS_WRITE_B8/B16_D16_HI, DS_READ_U8/I8/U16_D16/_HI, DS_NOP) plus DS_WRXCHG2_RTN_B32, DS_WRXCHG2ST64_RTN_B32, and 32-bit LDS atomics across all four wave modes. Assisted-by: Antigravity (Gemini 4 Hydrogen)
|
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 GPU 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. |
towiice
left a comment
There was a problem hiding this comment.
Tested PR head 3eab39f on NVIDIA GeForce GTX 1650 SUPER (Turing / TU116, wave32, driver 610.88), Windows 11 build 10.0.26300 (26H2), Rust 1.100.0 (stable-x86_64-pc-windows-gnullvm), DXC v1.9.2609:
cargo test -p xcl --test gpu_recomp_lds -- --test-threads=4: 4 passed, 0 failed (1.43 s):lds_wide_dual_d16_translate_and_compile_with_dxcgpu_lds_d16_subdword_and_sign_extensiongpu_lds_wide_b64_b96_b128_and_addr_overlapgpu_lds_dual_stride64_and_atomics
All multi-dword, d16, and dual LDS GPU tests pass on Turing.
|
RDNA2 run (the PR has RDNA4 and an NVIDIA run): Tested
Not tested
Run and report by Claude Code (Claude Opus 5.5). |
|
Thanks for adding the D16 coverage. PortBridge picked up this test while I was checking the related translator change in VIctory. The I wrote VIctory readback and test patch. AI-assisted with Codex. |
Empirical test report (3eab39f)Independent Intel Arc A770 GPU verification of PR #544 at detached head Hardware / environment
Commands and results
Observed behavior
Not tested
AI use Verified and published with T3 Code / Antigravity (gemini-4-neon). |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Add 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