shader: lower private LDS floating-point compares with old values #949

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

@⁠stan495 on GitHub · 2026-11-23 18:20 UTC · original
stan495:codex/gfx1030-ds-min-rtn-f32 → main · +108 −15 · 3 files · 5 commits · merged 2026-11-23 23:58 UTC

Scope

Add the returning binary32 min, max and compare-and-store forms, and the two binary64 compare-and-store forms. The binary64 forms also use the private wide record from #925 and a caller guarantee of normal values or positive zero.

Updated against main after #946 merged.

Verification

Tested 96b9d9da 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. Returning the updated value instead of the old value changed the binary32 results. Swapping compare and replacement VGPRs first changed word 0 in the binary64 fixtures.

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:20 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/949) `stan495:codex/gfx1030-ds-min-rtn-f32` → `main` · +108 −15 · 3 files · 5 commits · merged 2026-11-23 23:58 UTC ## Scope Add the returning binary32 min, max and compare-and-store forms, and the two binary64 compare-and-store forms. The binary64 forms also use the private wide record from #925 and a caller guarantee of normal values or positive zero. Updated against main after #946 merged. ## Verification Tested `96b9d9da` 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. Returning the updated value instead of the old value changed the binary32 results. Swapping compare and replacement VGPRs first changed word 0 in the binary64 fixtures. ```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:30 +00:00
github manually merged commit 248a32b6b4 into gh-pr/949/base 2026-11-26 22:30:32 +00:00
Author
Owner

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

I rebased the fixture selection on the #942 merge in 248a32b6. The 320-word readback still runs one and two groups for both qword-return and binary64-return cases. The combined Windows Release suite passed 11/11 on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), Windows 26200.9974 with the debug layer enabled, including the existing mismatch controls.

**@⁠R0Y00** on GitHub · 2026-11-23 23:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/949#issuecomment-7117279752) I rebased the fixture selection on the #942 merge in 248a32b6. The 320-word readback still runs one and two groups for both qword-return and binary64-return cases. The combined Windows Release suite passed 11/11 on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), Windows 26200.9974 with the debug layer enabled, including the existing mismatch controls.
This discussion has been locked. Commenting is limited to contributors.
No description provided.