[PATCH vkd3d 2/5] tests: Import comma tests from Wine.
Zebediah Figura
zfigura at codeweavers.com
Thu Oct 1 23:09:45 CDT 2020
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
Makefile.am | 2 ++
tests/hlsl-comma.shader_test | 10 ++++++++++
2 files changed, 12 insertions(+)
create mode 100644 tests/hlsl-comma.shader_test
diff --git a/Makefile.am b/Makefile.am
index 2e286bc8..c6d9b063 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 00000000..23bee71a
--- /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)
--
2.28.0
More information about the wine-devel
mailing list