You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct DXIL v_fract_f32 can return 1.0 for tiny negative inputs #3283
The direct DXIL frontend's v_fract_f32 lowering still emits only DXIL Frc, so tiny negative inputs can produce exactly 1.0. The earlier Python paths were corrected in #267 and #2010; this report concerns the newly added native direct frontend.
At base 240e0fb9c460f24d51683abe2d4cce2800b136c1, a source-built gfx1013 request gives:
Input
Direct frontend readback
Existing instruction contract
0xb0800000 (-2^-30)
0x3f800000 (1.0)
0x3f7fffff
0xb1800000 (-2^-28)
0x3f800000 (1.0)
0x3f7fffff
Either input, mul:2 output modifier
0x40000000 (2.0)
0x3fffffff
The synthetic fixture covers eight inputs and four forms (VOP1, VOP3 source negation, clamp and mul:2) across two wave32 groups. The original frontend differs on 384 of 2,064 output/guard words. A finite cap must run before output modifiers, and must use an ordered comparison so NaN remains NaN. No console hardware result is claimed; the expected bound is the project's existing gfx1013 contract.
Environment: Windows 10 build 19045, NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.15.7270, DXC 1.9.2609, Agility 1.620.2. D3D12 debug layer disabled for compute readback. The ordinary Windows 10 fixture executable skips for the SM6.6 requirement; the measured test executable was locally linked with the matching Agility version/path exports and existing runtime. No game bytes, SDK sources or redistributables are included in the fixture.
An accompanying focused PR will add tests/native_fract_f32_check.py with compile/negative controls and hardware readback, so the mismatch can be reproduced without game assets.
The source-built regression and focused correction are available in #3285. The PR records the original 384-word mismatch, fixed hardware readback, and the Windows 10/Agility capability boundary.
Activity
wish131400 commentedon Nov 28, 2026
The source-built regression and focused correction are available in #3285. The PR records the original 384-word mismatch, fixed hardware readback, and the Windows 10/Agility capability boundary.