Matteo Bruni : d3dcompiler/tests: Ignore z, w components in test_struct_semantics().

Alexandre Julliard julliard at winehq.org
Thu Aug 12 16:35:20 CDT 2021


Module: wine
Branch: master
Commit: 6b58d34a625ffaad181a7316009398f3c6444181
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6b58d34a625ffaad181a7316009398f3c6444181

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Aug 11 19:18:57 2021 +0200

d3dcompiler/tests: Ignore z, w components in test_struct_semantics().

Only the first two components are explicitly set from the vertex
attribute data.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51304
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dcompiler_43/tests/hlsl_d3d9.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d3dcompiler_43/tests/hlsl_d3d9.c b/dlls/d3dcompiler_43/tests/hlsl_d3d9.c
index 87f63023c58..03ded640e8f 100644
--- a/dlls/d3dcompiler_43/tests/hlsl_d3d9.c
+++ b/dlls/d3dcompiler_43/tests/hlsl_d3d9.c
@@ -1001,9 +1001,11 @@ static void test_struct_semantics(void)
         draw_quad(test_context.device, ps_code);
 
         v = get_color_vec4(test_context.device, 64, 48);
+        v.z = v.w = 0.0f;
         todo_wine ok(compare_vec4(&v, 0.1f, 0.1f, 0.0f, 0.0f, 4096),
                 "Got unexpected value {%.8e, %.8e, %.8e, %.8e}.\n", v.x, v.y, v.z, v.w);
         v = get_color_vec4(test_context.device, 320, 240);
+        v.z = v.w = 0.0f;
         todo_wine ok(compare_vec4(&v, 0.5f, 0.5f, 0.0f, 0.0f, 4096),
                 "Got unexpected value {%.8e, %.8e, %.8e, %.8e}.\n", v.x, v.y, v.z, v.w);
 




More information about the wine-cvs mailing list