shader: lower wide private LDS transfers #925

Manually merged
github merged 5 commits from gh-pr/925/head into gh-pr/925/base 2026-11-26 22:28:47 +00:00
Owner

@⁠stan495 on GitHub · 2026-11-23 17:23 UTC · original
stan495:codex/gfx1030-ds-read-b64 → main · +127 −2 · 3 files · 5 commits · merged 2026-11-23 18:17 UTC

Scope

Lower ds_write_b64, ds_read_b64, ds_write_b96, ds_read_b96 and ds_read2_b32 for a proven private 16-byte record at local_x << 4. Require 512 bytes of LDS, initialized read slots and an immediate LDS wait. Reject mixed scalar and wide address strides because the regions could overlap across lanes.

Verification

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

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 and 0 skipped. Both backends matched the CPU reference for the entire 320-word UAV after one and three groups. Reading the wrong qword, clearing a source word and swapping dual-read offsets each changed the comparison 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 assembled and decoded the fixtures, and both translation paths reproduced the same HLSL. The records count all five added DS forms.

**@⁠stan495** on GitHub · 2026-11-23 17:23 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/925) `stan495:codex/gfx1030-ds-read-b64` → `main` · +127 −2 · 3 files · 5 commits · merged 2026-11-23 18:17 UTC ## Scope Lower `ds_write_b64`, `ds_read_b64`, `ds_write_b96`, `ds_read_b96` and `ds_read2_b32` for a proven private 16-byte record at `local_x << 4`. Require 512 bytes of LDS, initialized read slots and an immediate LDS wait. Reject mixed scalar and wide address strides because the regions could overlap across lanes. ## Verification Tested `d686d24` on Windows 11 25H2 (10.0.26200.9974). WARP used Microsoft Basic Render Driver 10.0.26100.9818. Hardware used AMD Radeon RX 7900 XTX with driver 32.0.32029.2010. The D3D12 debug layer was enabled. ```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 and 0 skipped. Both backends matched the CPU reference for the entire 320-word UAV after one and three groups. Reading the wrong qword, clearing a source word and swapping dual-read offsets each changed the comparison 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 assembled and decoded the fixtures, and both translation paths reproduced the same HLSL. The records count all five added DS forms.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:28:45 +00:00
github manually merged commit dba3dc6245 into gh-pr/925/base 2026-11-26 22:28:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.