shader: lower private LDS floating-point updates in normal mode #939
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/946"
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:13:23Z.
Scope
Lower private LDS add, returning add, min, max and compare-and-store for binary32. The normal-rne input contract bounds the mode to normal values or positive zero with round-to-nearest-even.
Verification
Tested
1c1ef3don 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. Changing addition to subtraction first differed at word 0 (bf000000 expected, 40b00000 observed). Switching min and max or swapping compare and replacement operands also changed the readback.
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-23T20:25:05Z.
I resolved the four shared-file conflicts in
fc26b58, retaining the earlier private-LDS qword and wide-replacement paths. The LLVM 15 binary check passed. The Windowsdraw-lds-f32,draw-lds-qword, anddraw-lds-wide-replacementchecks passed on both WARP and RTX 4060 Laptop (six runs). The opt-in still covers only the documented normal-RNE inputs and results, including positive zero. The updated head is waiting for CI.