shader: lower private LDS floating-point compares with old values #942
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/949"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-23T18:20:09Z.
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
96b9d9daon 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).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.
LLVM 15.0.7 round trips reproduced the same HLSL as text translation. Coverage records include all five new forms.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T23:42:53Z.
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.