tests/hlsl: Fix the precision for a 16-bit arithmetic test.

This commit is contained in:
Giovanni Mascellani
2025-04-11 22:54:42 +02:00
committed by Henri Verbeet
parent 3186d66596
commit dbd1938ce4
Notes: Henri Verbeet 2025-04-16 16:52:31 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1461

View File

@@ -299,4 +299,5 @@ float4 main() : sv_target
uniform 0 uint 0x4280e3ff % -1023.5 3.25 uniform 0 uint 0x4280e3ff % -1023.5 3.25
uniform 1 uint 0xc7803000 % 0.125 -7.5 uniform 1 uint 0xc7803000 % 0.125 -7.5
draw quad draw quad
probe (0, 0) rgba(-0.0156173706, -6.5, 1.90734863e-06, 15.0) 1 % The computation is done in f16, but ULPs are relative to the f32 result.
probe (0, 0) rgba(-0.0156173706, -6.5, 1.90734863e-06, 15.0) 16384