[PATCH 04/10] d3dx9/tests: Avoid some 64-bit test failures.
Matteo Bruni
mbruni at codeweavers.com
Fri Jan 25 11:15:02 CST 2019
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
Those tests fail for me otherwise on my AMD Ryzen machine.
dlls/d3dx9_36/tests/math.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 2aeea26a54b..3adcc61f50e 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -1798,16 +1798,16 @@ static void D3DXQuaternionTest(void)
expectedquat.x = 7.121285f; expectedquat.y = 2.159964f; expectedquat.z = -3.855094f; expectedquat.w = 5.362844f;
expect_quaternion(&expectedquat, &gotquat, 2);
expectedquat.x = -1113.492920f; expectedquat.y = 82.679260f; expectedquat.z = -6.696645f; expectedquat.w = -4.090050f;
- expect_quaternion(&expectedquat, &Nq, 2);
+ expect_quaternion(&expectedquat, &Nq, 4);
expectedquat.x = -1111.0f; expectedquat.y = 111.0f; expectedquat.z = -11.0f; expectedquat.w = 1.0f;
expect_quaternion(&expectedquat, &Nq1, 0);
gotquat = s;
D3DXQuaternionSquadSetup(&gotquat, &Nq, &Nq1, &r, &gotquat, &t, &u);
expectedquat.x = -1113.492920f; expectedquat.y = 82.679260f; expectedquat.z = -6.696645f; expectedquat.w = -4.090050f;
- expect_quaternion(&expectedquat, &Nq, 2);
+ expect_quaternion(&expectedquat, &Nq, 4);
Nq1 = u;
D3DXQuaternionSquadSetup(&gotquat, &Nq, &Nq1, &r, &s, &t, &Nq1);
- expect_quaternion(&expectedquat, &Nq, 2);
+ expect_quaternion(&expectedquat, &Nq, 4);
r.x = 0.2f; r.y = 0.3f; r.z = 1.3f; r.w = -0.6f;
s.x = -3.0f; s.y =-2.0f; s.z = 4.0f; s.w = 0.2f;
t.x = 0.4f; t.y = 8.3f; t.z = -3.1f; t.w = -2.7f;
--
2.19.2
More information about the wine-devel
mailing list