shader: lower private qword arithmetic and bitwise LDS updates #941

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

@⁠stan495 on GitHub · 2026-11-23 18:07 UTC · original
stan495:codex/gfx1030-ds-add-u64 → main · +99 −0 · 4 files · 2 commits · merged 2026-11-23 20:21 UTC

Scope

Lower qword add, subtract, reverse subtract, AND and OR on an initialized private pair. Carry and borrow propagate between dwords.

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

Verification

Tested 1347311 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_qword|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. Omitting carry or borrow changes the high word. The add without carry first differed at word 1.

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:07 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/941) `stan495:codex/gfx1030-ds-add-u64` → `main` · +99 −0 · 4 files · 2 commits · merged 2026-11-23 20:21 UTC ## Scope Lower qword add, subtract, reverse subtract, AND and OR on an initialized private pair. Carry and borrow propagate between dwords. Depends on #925. The draft includes the prerequisite in its branch history. Review the five forms in commit `1347311`. ## Verification Tested `1347311` 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_qword|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. Omitting carry or borrow changes the high word. The add without carry first differed at word 1. ```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:52 +00:00
github manually merged commit 8530263431 into gh-pr/941/base 2026-11-26 22:29:53 +00:00
Author
Owner

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

8530263 resolves the conflicts after #940 with no changed or removed LDS tests from main. The LLVM 15 binary suite passed, and qword arithmetic, wide replacement, and packed LDS each passed on WARP and RTX 4060 Laptop with their 320-word comparisons and expected mutation failures. The updated candidate is waiting for Windows CI.

**@⁠R0Y00** on GitHub · 2026-11-23 20:03 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/941#issuecomment-7112483336) 8530263 resolves the conflicts after #940 with no changed or removed LDS tests from main. The LLVM 15 binary suite passed, and qword arithmetic, wide replacement, and packed LDS each passed on WARP and RTX 4060 Laptop with their 320-word comparisons and expected mutation failures. The updated candidate is waiting for Windows CI.
This discussion has been locked. Commenting is limited to contributors.
No description provided.