From dbd1938ce4250e781b35ab7ecc1e0771eb727c8f Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 11 Apr 2025 22:54:42 +0200 Subject: [PATCH] tests/hlsl: Fix the precision for a 16-bit arithmetic test. --- tests/hlsl/arithmetic-float-uniform.shader_test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hlsl/arithmetic-float-uniform.shader_test b/tests/hlsl/arithmetic-float-uniform.shader_test index 0827a48ce..823a03fe5 100644 --- a/tests/hlsl/arithmetic-float-uniform.shader_test +++ b/tests/hlsl/arithmetic-float-uniform.shader_test @@ -299,4 +299,5 @@ float4 main() : sv_target uniform 0 uint 0x4280e3ff % -1023.5 3.25 uniform 1 uint 0xc7803000 % 0.125 -7.5 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