[PATCH 2/2] d3dx9: Add test for 0 * INF preshader operation.
Paul Gofman
gofmanp at gmail.com
Thu Apr 21 03:56:45 CDT 2016
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
---
dlls/d3dx9_36/tests/effect.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c
index cfd058a..d25aa88 100644
--- a/dlls/d3dx9_36/tests/effect.c
+++ b/dlls/d3dx9_36/tests/effect.c
@@ -3969,12 +3969,23 @@ static void test_preshader_op(IDirect3DDevice9 *device, const char *op_mnem,
static void test_effect_preshader_ops(IDirect3DDevice9 *device)
{
unsigned int expected_result[4];
+ D3DXVECTOR4 fvect2;
expected_result[0] = 0x3f800000;
expected_result[1] = 0x3f800000;
expected_result[2] = 0x3e5edc66;
expected_result[3] = 0x7f800000;
test_preshader_op(device, "exp", 0x10500001, 1, expected_result, NULL, NULL, 0, NULL);
+
+ fvect2.x = INFINITY;
+ fvect2.y = INFINITY;
+ fvect2.z = 3.0f;
+ fvect2.w = 4.0f;
+ expected_result[0] = 0xffc00000;
+ expected_result[1] = 0xffc00000;
+ expected_result[2] = 0xc0d33334;
+ expected_result[3] = 0x7f800000;
+ test_preshader_op(device, "0 * INF", 0x20500004, 2, expected_result, NULL, &fvect2, 0, NULL);
}
START_TEST(effect)
--
2.5.5
More information about the wine-patches
mailing list