shader: lower private qword LDS replacement operations #940

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

@⁠stan495 on GitHub · 2026-11-23 18:05 UTC · original
stan495:codex/gfx1030-ds-cmpst-b64 → main · +135 −1 · 4 files · 2 commits · merged 2026-11-23 19:56 UTC

Scope

Lower qword compare-and-store and masked OR, their returning variants, and returning write-exchange. Compare both words and preserve the original pair on the returning forms.

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

Verification

Tested 30483cf 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_wide_replacement|lds_private|ds_route|guard_read)_(warp|hardware)$|^compute_store_aot_warp$' -V

9 passed, 0 failed, 0 skipped. Both backends compared all 320 UAV words. Swapping compare operands first differed at word 0 (f0e1d2c3 expected, 12345670 observed). Skipping exchange first differed at word 4 (12345670 expected, 12345671 observed).

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:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/940) `stan495:codex/gfx1030-ds-cmpst-b64` → `main` · +135 −1 · 4 files · 2 commits · merged 2026-11-23 19:56 UTC ## Scope Lower qword compare-and-store and masked OR, their returning variants, and returning write-exchange. Compare both words and preserve the original pair on the returning forms. Depends on #925. The draft includes the prerequisite in its branch history. Review the five forms in commit `30483cf`. ## Verification Tested `30483cf` 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_wide_replacement|lds_private|ds_route|guard_read)_(warp|hardware)$|^compute_store_aot_warp$' -V ``` 9 passed, 0 failed, 0 skipped. Both backends compared all 320 UAV words. Swapping compare operands first differed at word 0 (f0e1d2c3 expected, 12345670 observed). Skipping exchange first differed at word 4 (12345670 expected, 12345671 observed). ```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:46 +00:00
github manually merged commit 9d4bc95345 into gh-pr/940/base 2026-11-26 22:29:48 +00:00
Author
Owner

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

#939 and the #925 prerequisite are on main. I resolved the four-file conflict in 9d4bc95, retaining the strided and packed LDS paths and their fixtures alongside the five qword replacement forms. The LLVM 15 binary check passed. The wide replacement, strided, and packed cases each passed on WARP and RTX 4060 Laptop GPU (driver 32.0.16.1656, debug layer enabled), with exact 320-word readbacks and the expected mismatches for the mutations. The updated head is waiting for CI. #941 stays next in the shared LDS queue.

**@⁠R0Y00** on GitHub · 2026-11-23 19:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/940#issuecomment-7111950827) #939 and the #925 prerequisite are on main. I resolved the four-file conflict in 9d4bc95, retaining the strided and packed LDS paths and their fixtures alongside the five qword replacement forms. The LLVM 15 binary check passed. The wide replacement, strided, and packed cases each passed on WARP and RTX 4060 Laptop GPU (driver 32.0.16.1656, debug layer enabled), with exact 320-word readbacks and the expected mismatches for the mutations. The updated head is waiting for CI. #941 stays next in the shared LDS queue.
This discussion has been locked. Commenting is limited to contributors.
No description provided.