Zebediah Figura : tests: Import comma tests from Wine.
Alexandre Julliard
julliard at winehq.org
Fri Oct 2 14:49:22 CDT 2020
Module: vkd3d
Branch: master
Commit: fe6b9678d807e641c878edd7449553c2a03cf0d2
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=fe6b9678d807e641c878edd7449553c2a03cf0d2
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Thu Oct 1 23:09:45 2020 -0500
tests: Import comma tests from Wine.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
Makefile.am | 2 ++
tests/hlsl-comma.shader_test | 10 ++++++++++
2 files changed, 12 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 2e286bc..c6d9b06 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -51,6 +51,7 @@ vkd3d_shader_runners = \
vkd3d_shader_tests = \
tests/conditional.shader_test \
+ tests/hlsl-comma.shader_test \
tests/hlsl-vector-indexing.shader_test \
tests/hlsl-vector-indexing-uniform.shader_test \
tests/math.shader_test \
@@ -183,6 +184,7 @@ tests_vkd3d_shader_api_LDADD = libvkd3d-shader.la
SHADER_TEST_LOG_COMPILER = tests/shader_runner_d3d12
XFAIL_TESTS = \
tests/conditional.shader_test \
+ tests/hlsl-comma.shader_test \
tests/hlsl-vector-indexing.shader_test \
tests/hlsl-vector-indexing-uniform.shader_test \
tests/math.shader_test \
diff --git a/tests/hlsl-comma.shader_test b/tests/hlsl-comma.shader_test
new file mode 100644
index 0000000..23bee71
--- /dev/null
+++ b/tests/hlsl-comma.shader_test
@@ -0,0 +1,10 @@
+[pixel shader]
+float4 main(): sv_target
+{
+ float4 ret;
+ return (ret = float4(0.1, 0.2, 0.3, 0.4)), ret + 0.5;
+}
+
+[test]
+draw quad
+probe all rgba (0.6, 0.7, 0.8, 0.9)
More information about the wine-cvs
mailing list