Zebediah Figura : tests: Avoid depending on float accuracy in the round() test.
Module: vkd3d Branch: master Commit: 9bbce56dadb25570e052a45474d8c4edbcfe2f16 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=9bbce56dadb25570e052a454... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Mon Mar 7 19:55:41 2022 -0600 tests: Avoid depending on float accuracy in the round() test. Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tests/round.shader_test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/round.shader_test b/tests/round.shader_test index cc5a6975..59ac62d5 100644 --- a/tests/round.shader_test +++ b/tests/round.shader_test @@ -5,9 +5,9 @@ float4 main(uniform float4 u) : sv_target } [test] -uniform 0 float4 -0.5 6.5 7.5 3.4 +uniform 0 float4 -0.4 -6.6 7.6 3.4 draw quad -probe all rgba (0.0, 6.0, 8.0, 3.0) 4 +probe all rgba (0.0, -7.0, 8.0, 3.0) 4 @@ -21,9 +21,9 @@ float4 main(uniform float4 u) : sv_target } [test] -uniform 0 float4 -0.5 6.5 7.5 3.4 +uniform 0 float4 -0.4 -6.6 7.6 3.4 draw quad -probe all rgba (6.0, 8.0, 0.0, 3.0) 4 +probe all rgba (-7.0, 8.0, 0.0, 3.0) 4
participants (1)
-
Alexandre Julliard