[PATCH 5/5] d3dcompiler/tests: Ignore z, w components in test_struct_semantics().
Matteo Bruni
mbruni at codeweavers.com
Wed Aug 11 12:18:57 CDT 2021
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>
---
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);
--
2.26.3
More information about the wine-devel
mailing list