mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Added patch to fix some test failures in d3dx9_36/math tests.
This commit is contained in:
parent
52b5c90303
commit
afe018692b
@ -0,0 +1,52 @@
|
||||
From 53da53661a5058d691c15d85328148f37b753769 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 6 May 2017 01:32:51 +0200
|
||||
Subject: d3dx9_36/tests: Fix some test failures.
|
||||
|
||||
---
|
||||
dlls/d3dx9_36/tests/math.c | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
|
||||
index 5bbfb4980b..5fe65ac484 100644
|
||||
--- a/dlls/d3dx9_36/tests/math.c
|
||||
+++ b/dlls/d3dx9_36/tests/math.c
|
||||
@@ -236,7 +236,7 @@ static void D3DXColorTest(void)
|
||||
/*_______________D3DXColorLerp________________*/
|
||||
expected.r = 0.32f; expected.g = 0.69f; expected.b = 0.356f; expected.a = 0.897f;
|
||||
D3DXColorLerp(&got,&color,&color1,scale);
|
||||
- expect_color(&expected, &got, 0);
|
||||
+ expect_color(&expected, &got, 2);
|
||||
/* Test the NULL case */
|
||||
funcpointer = D3DXColorLerp(&got,NULL,&color1,scale);
|
||||
ok(funcpointer == NULL, "Expected: %p, Got: %p\n", NULL, funcpointer);
|
||||
@@ -306,7 +306,7 @@ static void D3DXFresnelTest(void)
|
||||
BOOL equal;
|
||||
|
||||
fresnel = D3DXFresnelTerm(0.5f, 1.5f);
|
||||
- equal = compare_float(fresnel, 8.91867056e-02f, 1);
|
||||
+ equal = compare_float(fresnel, 8.91867056e-02f, 2);
|
||||
ok(equal, "Got unexpected Fresnel term %.8e.\n", fresnel);
|
||||
}
|
||||
|
||||
@@ -2955,7 +2955,7 @@ static void test_D3DXSHEvalDirectionalLight(void)
|
||||
expected = j + test[l].boffset;
|
||||
else
|
||||
expected = test[l].blue_out[startindex + j];
|
||||
- equal = compare_float(expected, blue_out[j], 4);
|
||||
+ equal = compare_float(expected, blue_out[j], 8);
|
||||
ok(equal, "Blue: case %u, order %u: expected[%u] = %.8e, received %.8e.\n",
|
||||
l, order, j, expected, blue_out[j]);
|
||||
}
|
||||
@@ -3287,7 +3287,7 @@ static void test_D3DXSHMultiply3(void)
|
||||
D3DXSHMultiply3(c, c, b);
|
||||
for (i = 0; i < 20; i++)
|
||||
{
|
||||
- equal = compare_float(c[i], expected_aliased[i], 32);
|
||||
+ equal = compare_float(c[i], expected_aliased[i], 64);
|
||||
ok(equal, "Expected[%u] = %.8e, received = %.8e.\n", i, expected_aliased[i], c[i]);
|
||||
}
|
||||
}
|
||||
--
|
||||
2.12.2
|
||||
|
@ -130,6 +130,7 @@ patch_enable_all ()
|
||||
enable_d3dx9_36_FindNextValidTechnique="$1"
|
||||
enable_d3dx9_36_GetShaderSemantics="$1"
|
||||
enable_d3dx9_36_Optimize_Inplace="$1"
|
||||
enable_d3dx9_36_Tests="$1"
|
||||
enable_d3dx9_36_Texture_Align="$1"
|
||||
enable_d3dx9_36_UpdateSkinnedMesh="$1"
|
||||
enable_dbghelp_Debug_Symbols="$1"
|
||||
@ -619,6 +620,9 @@ patch_enable ()
|
||||
d3dx9_36-Optimize_Inplace)
|
||||
enable_d3dx9_36_Optimize_Inplace="$2"
|
||||
;;
|
||||
d3dx9_36-Tests)
|
||||
enable_d3dx9_36_Tests="$2"
|
||||
;;
|
||||
d3dx9_36-Texture_Align)
|
||||
enable_d3dx9_36_Texture_Align="$2"
|
||||
;;
|
||||
@ -3778,6 +3782,18 @@ if test "$enable_d3dx9_36_Optimize_Inplace" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset d3dx9_36-Tests
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/d3dx9_36/tests/math.c
|
||||
# |
|
||||
if test "$enable_d3dx9_36_Tests" -eq 1; then
|
||||
patch_apply d3dx9_36-Tests/0001-d3dx9_36-tests-Fix-some-test-failures.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Sebastian Lackner", "d3dx9_36/tests: Fix some test failures.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset d3dx9_36-Texture_Align
|
||||
# |
|
||||
# | Modified files:
|
||||
|
Loading…
x
Reference in New Issue
Block a user