shader: lower and verify the plain e32 float-to-uint pixel conversion #539
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/545"
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 R0Y00 on 2026-11-22T10:28:13Z.
Behavior
Teach the pixel translator and its scanner the plain gfx1013 e32 float-to-unsigned conversion. Reuse the conversion helper contributed in #449. Keep register readiness, whole-quad input validity, and affine coordinate checks. Narrowly overlaps the unsigned e32 portion of #438. Refs #360 and follows #536.
Verification
Tested head
9790c73on Windows 11 build 26200.9974 with the D3D12 debug layer enabled, RTX 4060 Laptop driver 32.0.16.1656 and WARP 10.0.26100.9818.ctest --preset dev --no-tests=error -R '^pixel_aot_u32_from_f32_' -Vpassed 2/2. On each adapter, both entry and whole-quad draws matched all 32 bits for 27 input words across 4,096 pixels. Replacing truncation with rounding produced the expected mismatches for 1.875 and 3.75. The float immediately below 2^32 yielded 0xffffff00, and 2^32 yielded 0xffffffff.python3 -B tests/pixel_aot_check.py binary ../pixel-aot/llvm-tools/usr/lib/llvm-15/bin/llvm-mc ../pixel-aot/llvm-tools/usr/lib/llvm-15/bin/llvm-objcopy libLLVM-15.so.1passed under WSL with LLVM 15. Both draws use source-built fixtures.Integrated main comparison
Compared main
075413dand the integrated PR headf4c566eon all 26,503 records with the same profiles. Both lower 852 PS, 13 CS and 2 MS (867 total), with zero VS and GS. All 990 generated profile/container sources match byte-for-byte between them. The additional PS and CS relative to the earlier 865-record snapshot both compiled with DXC and were already accepted on main. No new draw or dispatch readback is claimed for these two.On the integrated head, the same 447/83 split remains. Both adapter CTests passed again with the rebuilt renderer and the main branch's
ps_6_2 -denorm preservepixel compiler configuration, including both wrong-rounding counterexamples. The LLVM 15 binary regression also passed again.AI-assisted contribution.