shader: lower private LDS quadword and paired transfers #939

Manually merged
github merged 2 commits from gh-pr/939/head into gh-pr/939/base 2026-11-26 22:29:43 +00:00
Owner

@⁠stan495 on GitHub · 2026-11-23 18:04 UTC · original
stan495:codex/gfx1030-ds-write-b128 → main · +90 −13 · 3 files · 2 commits · merged 2026-11-23 19:35 UTC

Scope

Lower ds_write_b128, ds_read_b128, ds_write2_b32, ds_write2_b64 and ds_read2_b64 within an initialized lane-private 16-byte record.

Depends on #925. The draft includes the prerequisite in its branch history. Review the five forms in commit 22084b3.

Verification

Tested 22084b3 on Windows 11 25H2 (10.0.26200.9974) with the D3D12 debug layer enabled. Hardware used AMD Radeon RX 7900 XTX (32.0.32029.2010). WARP used Microsoft Basic Render Driver (10.0.26100.9818).

cmake --build --preset dev --target offscreen_check
$env:XBOX2WINDOWS_ADAPTER = '7900 XTX'
ctest --preset dev --no-tests=error -R '^compute_store_aot_(lds_private|ds_route|guard_read)_(warp|hardware)$|^compute_store_aot_warp$' -V

7 passed, 0 failed, 0 skipped. Both backends compared all 320 UAV words. Clearing the fourth source first differed at word 3 (f0e1d2c3 expected, 00000000 observed). Swapping the qword read offsets first differed at word 0.

python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1

LLVM 15.0.7 round trips reproduced the same HLSL as text translation. Coverage records include all five new forms.

**@⁠stan495** on GitHub · 2026-11-23 18:04 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/939) `stan495:codex/gfx1030-ds-write-b128` → `main` · +90 −13 · 3 files · 2 commits · merged 2026-11-23 19:35 UTC ## Scope Lower ds_write_b128, ds_read_b128, ds_write2_b32, ds_write2_b64 and ds_read2_b64 within an initialized lane-private 16-byte record. Depends on #925. The draft includes the prerequisite in its branch history. Review the five forms in commit `22084b3`. ## Verification Tested `22084b3` on Windows 11 25H2 (10.0.26200.9974) with the D3D12 debug layer enabled. Hardware used AMD Radeon RX 7900 XTX (32.0.32029.2010). WARP used Microsoft Basic Render Driver (10.0.26100.9818). ```powershell cmake --build --preset dev --target offscreen_check $env:XBOX2WINDOWS_ADAPTER = '7900 XTX' ctest --preset dev --no-tests=error -R '^compute_store_aot_(lds_private|ds_route|guard_read)_(warp|hardware)$|^compute_store_aot_warp$' -V ``` 7 passed, 0 failed, 0 skipped. Both backends compared all 320 UAV words. Clearing the fourth source first differed at word 3 (f0e1d2c3 expected, 00000000 observed). Swapping the qword read offsets first differed at word 0. ```sh python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 ``` LLVM 15.0.7 round trips reproduced the same HLSL as text translation. Coverage records include all five new forms.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:29:41 +00:00
github manually merged commit 67d54aa6db into gh-pr/939/base 2026-11-26 22:29:43 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 19:19 UTC · original

I resolved the shared lowerer, test and documentation conflicts after #936. The quadword and paired transfers join the packed group; the strided group and all wrong-offset/alias controls remain separate. LLVM 15 binary passed, and all ten Windows LDS CTests passed on WARP and RTX 4060 Laptop (32.0.16.1656, debug layer enabled). The packed hardware group took 11.42 s. This head is ready for fresh CI. #940 and #941 can follow on the shared files in that order.

**@⁠R0Y00** on GitHub · 2026-11-23 19:19 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/939#issuecomment-7111435221) I resolved the shared lowerer, test and documentation conflicts after #936. The quadword and paired transfers join the packed group; the strided group and all wrong-offset/alias controls remain separate. LLVM 15 binary passed, and all ten Windows LDS CTests passed on WARP and RTX 4060 Laptop (32.0.16.1656, debug layer enabled). The packed hardware group took 11.42 s. This head is ready for fresh CI. #940 and #941 can follow on the shared files in that order.
This discussion has been locked. Commenting is limited to contributors.
No description provided.