shader: lower private LDS binary64 selection and paired exchange #954

Manually merged
github merged 5 commits from gh-pr/954/head into gh-pr/954/base 2026-11-26 22:30:57 +00:00
Owner

@⁠stan495 on GitHub · 2026-11-23 18:34 UTC · original
stan495:codex/gfx1030-ds-min-f64 → main · +128 −14 · 3 files · 5 commits · merged 2026-11-24 02:49 UTC

Scope

Lower ds_min_f64, ds_max_f64, their returning forms, and ds_wrxchg2_rtn_b64. The binary64 profile is normal values and positive zero. Compare sign and both dwords without introducing a target FP64 feature dependency. A paired exchange returns the two previous qwords and snapshots both replacement qwords before writing any overlapping destination registers.

Depends on #949. Review this batch with git diff 96b9d9da 6bcd2d01.

Verification

Tested 6bcd2d01 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_f32|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 min and max first differed at word 1 (c0040000 expected, 40040000 observed for min). Omitting the low word in the binary64 comparison first differed at word 0 (33333333 expected, 11111111 observed). Reversing paired qword offsets first differed at word 0 (76543210 expected, 12345670 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:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/954) `stan495:codex/gfx1030-ds-min-f64` → `main` · +128 −14 · 3 files · 5 commits · merged 2026-11-24 02:49 UTC ## Scope Lower ds_min_f64, ds_max_f64, their returning forms, and ds_wrxchg2_rtn_b64. The binary64 profile is normal values and positive zero. Compare sign and both dwords without introducing a target FP64 feature dependency. A paired exchange returns the two previous qwords and snapshots both replacement qwords before writing any overlapping destination registers. Depends on #949. Review this batch with `git diff 96b9d9da 6bcd2d01`. ## Verification Tested `6bcd2d01` 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_f32|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 min and max first differed at word 1 (c0040000 expected, 40040000 observed for min). Omitting the low word in the binary64 comparison first differed at word 0 (33333333 expected, 11111111 observed). Reversing paired qword offsets first differed at word 0 (76543210 expected, 12345670 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:30:56 +00:00
github manually merged commit f92c2923d5 into gh-pr/954/base 2026-11-26 22:30:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.