Commit Graph

132 Commits

Author SHA1 Message Date
Zebediah Figura 1cea81d104 d3dcompiler/tests: Add a test for the comma operator.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-28 16:39:02 +01:00
Zebediah Figura 8ce03e2055 d3dcompiler/tests: Port some tests to shader model 4.
In particular, port those for which there is an interesting difference in
code generation.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-28 16:39:02 +01:00
Zebediah Figura 6f80956146 d3dcompiler/tests: Rewrite to use a separate d3d9 device for each test.
This brings the d3dcompiler tests more in line with existing d3d9 tests, and
allows potentially running the tests in parallel.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-28 16:39:02 +01:00
Matteo Bruni d4682017d6 d3dcompiler/tests: Make test_reflection_constant_buffer() work on d3d10.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 21:23:13 +01:00
Matteo Bruni d367c9aeff d3dcompiler/tests: Load the correct d3dcompiler DLL in the asm tests.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-03 21:40:59 +01:00
Matteo Bruni 20b52b61c6 d3dcompiler/tests: Load the correct d3dcompiler DLL in the HLSL tests.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-03 21:40:59 +01:00
Zebediah Figura ae274b25e2 d3dcompiler/tests: Load d3dx9_36.dll dynamically.
Windows 7 Professional ships d3dcompiler_47 by default, but no version of d3dx9.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47894
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-03 20:58:18 +01:00
Matteo Bruni 276d970e07 d3dcompiler/tests: Fix parameter desc test on d3d10.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-03 21:27:14 +01:00
Sven Baars e0143194c2 d3dcompiler/tests: Fix a copy-paste error.
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-27 22:02:59 +01:00
Sven Baars a63a98c388 d3dcompiler/tests: Fix some d3dcompiler_47 test failures on Windows 8.
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-14 22:05:00 +01:00
Matteo Bruni 1559f6013c d3d10/tests: Add reflection test.
Share and reuse most of the d3dcompiler test.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-14 21:05:59 +01:00
Matteo Bruni 6889a0c3a0 d3dcompiler/tests: Clean up test_reflection_desc_ps_output() a bit.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-14 21:05:48 +01:00
Matteo Bruni 27bf34bb51 d3dcompiler/tests: Add a small test for MinPrecision.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 22:05:58 +01:00
Matteo Bruni f14962e55d d3dcompiler/tests: Add d3dcompiler_47 tests.
Share the code with the existing d3dcompiler_43 tests.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 22:05:58 +01:00
Matteo Bruni 5e8ded1646 d3dcompiler/tests: Trace the test index in test_fail() checks.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 20:38:46 +02:00
Matteo Bruni 7b2d82fa4f d3dcompiler/tests: Get rid of redundant "failed" in test strings.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 20:38:42 +02:00
Zebediah Figura bfe12dc5dd d3dcompiler/tests: Add a couple more tests for complex initializers.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 20:38:35 +02:00
Zebediah Figura 9501c6e691 d3dcompiler/tests: Simplify test_fail().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 20:38:32 +02:00
Zebediah Figura 72b74d7cdc d3dcompiler: Parse type name strings.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 08:30:39 +02:00
Jactry Zeng 622422e67b d3dcompiler: Implement D3DReadFileToBlob().
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 16:42:37 -05:00
Matteo Bruni 293e2b55ad d3dcompiler: Actually define the correct ID3D11ShaderReflection GUIDs.
Spotted by Andrey Gusev.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-04 19:20:49 +01:00
Alex Henrie 451e4d326e d3dcompiler_43/tests: Avoid using GCC's typeof extension.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-04 09:10:32 -05:00
Jacek Caban a849609193 d3dcompiler/tests: Load d3dcompiler_43.dll dynamically.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:37:53 +02:00
Michael Stefaniuc 07277ae132 d3dcompiler/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-11 11:41:59 +02:00
Michael Stefaniuc bebaec60b6 d3dcompiler/tests: Avoid using the LPD3DBLOB COM iface type.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 17:40:12 +09:00
Francois Gouget 304bbbeaa7 d3dcompiler_43/tests: Fix a needless spelling error in a test.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:06:19 +09:00
Matteo Bruni e404d1ed86 d3dcompiler/tests: Free the Direct3D9 object (Valgrind). 2014-08-26 16:44:45 +02:00
Matteo Bruni 67a6caa1c1 d3dcompiler/tests: Add a test for an include path containing '/'. 2014-08-25 22:03:19 +02:00
Matteo Bruni 342eec7f7d d3dcompiler/tests: Add a couple more checks for parent data values. 2014-06-25 11:36:21 +02:00
Frédéric Delanoy b09833a847 d3dcompiler_43/tests: Use BOOL type where appropriate. 2014-02-24 09:08:03 -06:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Michael Stefaniuc 2f673f2965 d3dcompiler_43/tests: Compile with -D__WINESRC__. 2013-10-17 10:43:48 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Henri Verbeet 5daf5e80fb d3dcompiler: Avoid LPVOID. 2013-09-06 12:00:24 +02:00
Henri Verbeet 36190dd5e6 d3dcompiler: Avoid LPCSTR. 2013-09-05 13:18:24 +02:00
Rico Schüller b1126a8c30 d3dcompiler43/tests: Don't use IUnknown_Release(). 2013-01-11 11:58:23 +01:00
Francois Gouget f963f93964 Assorted spelling fixes. 2013-01-07 11:10:40 +01:00
Matteo Bruni 71da1bac5d d3dcompiler/tests: Fix access to the test output for y > 0. 2012-10-10 20:34:14 +02:00
Matteo Bruni 19f951e86a d3dcompiler/tests: Use a reasonable adapter format in CheckDeviceFormat(). 2012-09-18 19:05:51 +02:00
Matteo Bruni f5ffa3004d d3dcompiler: Add some tests for 'system' type includes. 2012-06-13 21:35:40 +02:00
Józef Kucia 6a706d587a d3dcompiler: Allow the alternative shader version format (with dots instead of underscores). 2012-04-09 11:48:21 +02:00
Józef Kucia 8e3b050f44 d3dcompiler/tests: Add test for comments containing quotation marks. 2012-03-12 10:12:56 +01:00
André Hentschel 550e2a9f6a d3dcompiler_43/tests: Fix printing a NULL string. 2011-08-30 11:53:09 +02:00
Rico Schüller 4080242d7f d3dcompiler: Implement ID3D11ShaderReflectionType::IsEqual(). 2011-03-02 12:50:58 +01:00
Rico Schüller 66b286470e d3dcompiler/tests: Add GetMemberType* tests. 2011-03-02 12:50:45 +01:00
Rico Schüller f9d4a45fbb d3dcompiler/tests: Improve test_reflection_bound_resources(). 2011-02-28 11:10:36 +01:00
Rico Schüller a0abef6b45 d3dcompiler/tests: Add constant buffer test. 2011-02-28 11:10:31 +01:00
Rico Schüller 3850e8f4e3 d3dcompiler/tests: Add reflection ps output desc test. 2011-02-28 11:10:21 +01:00
Rico Schüller 3f04448dbb d3dcompiler: Fix SystemValueType for pixelshader output signature. 2011-02-28 11:10:12 +01:00
Rico Schüller 9cc0cd39a1 d3dcompiler/tests: Add GetResourceBindingDesc() test. 2011-02-18 14:54:51 +01:00
Rico Schüller d4798d0580 d3dcompiler/tests: Add reflection ps desc test. 2011-02-17 17:26:18 +01:00
Rico Schüller c7ed17ac66 d3dcompiler/tests: Add reflection vs desc test. 2011-02-17 17:26:12 +01:00
Rico Schüller d790be79d7 d3dcompiler/tests: Add reflection test. 2011-02-16 14:26:26 +01:00
Michael Stefaniuc 629e853894 d3dcompiler_43/tests: COM cleanup for the ID3DInclude iface. 2011-01-26 15:00:13 +01:00
Travis Athougies ee8b276731 d3dcompiler_43/tests: Added error tests to HLSL test suite. 2011-01-10 10:39:51 +01:00
Travis Athougies 3add55840d d3dcompiler_43/tests: Fixed nonconformant C string literals in HLSL test suite. 2011-01-10 10:39:44 +01:00
Travis Athougies dbb2d28795 d3dcompiler_43/tests: Added trigonometric function tests to HLSL test suite. 2010-11-18 12:52:38 +01:00
Henri Verbeet 362da026b0 d3dcompiler_43/tests: Calculate the probe count. 2010-11-01 13:34:44 +01:00
Henri Verbeet 04632c060d d3dcompiler_43/tests: Make some variables unsigned. 2010-11-01 13:34:43 +01:00
Henri Verbeet d3dd18646d d3dcompiler_43/tests: Make probe info const. 2010-11-01 13:34:43 +01:00
Travis Athougies 356420b340 d3dcompiler_43/tests: Added float vector tests to HLSL test suite. 2010-10-29 15:23:34 +02:00
Travis Athougies 79f715c3ec d3dcompiler_43/tests: Added tests for conditional expressions to HLSL test suite. 2010-10-29 15:23:31 +02:00
Travis Athougies 9f7ceec91f d3dcompiler_43/tests: Added order of operations test to HLSL test suite. 2010-10-29 15:23:28 +02:00
Travis Athougies 7c56eb8872 d3dcompiler_43/tests: Added HLSL test suite. 2010-10-28 18:18:11 +02:00
Rico Schüller 83cff120b9 d3dcompiler/tests: Add D3DCOMPILER_STRIP_REFLECTION_DATA test. 2010-10-15 16:17:50 +02:00
Rico Schüller f4a9a0bb59 d3dcompiler/tests: Add D3DCOMPILER_STRIP_DEBUG_INFO test. 2010-10-15 16:17:50 +02:00
Rico Schüller 060028c8e3 d3dcompiler/tests: Add D3DStripShader() test. 2010-10-15 16:17:50 +02:00
Rico Schüller beb2cad0fb d3dcompiler/tests: Add D3D_BLOB_XNA_SHADER test. 2010-10-15 16:17:50 +02:00
Rico Schüller b09da75fb5 d3dcompiler/tests: Add D3D_BLOB_XNA_PREPASS_SHADER test. 2010-10-15 16:17:50 +02:00
Rico Schüller c5d601c199 d3dcompiler/tests: Add D3D_BLOB_LEGACY_SHADER test. 2010-10-15 16:17:50 +02:00
Rico Schüller 3c12dd345d d3dcompiler/tests: Add D3D_BLOB_DEBUG_INFO test. 2010-10-15 16:17:50 +02:00
Rico Schüller ed6c221942 d3dcompiler/tests: Add D3D_BLOB_ALL_SIGNATURE_BLOB test. 2010-10-15 16:17:50 +02:00
Rico Schüller 291a3b98a5 d3dcompiler/tests: Add D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB test. 2010-10-15 16:17:50 +02:00
Rico Schüller 7d87a4d42b d3dcompiler/tests: Add D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB test. 2010-10-15 16:17:50 +02:00
Rico Schüller 87344c6726 d3dcompiler/tests: Add D3D_BLOB_OUTPUT_SIGNATURE_BLOB test. 2010-10-15 16:17:50 +02:00
Rico Schüller 1c26d22dc3 d3dcompiler/tests: Add D3D_BLOB_INPUT_SIGNATURE_BLOB test. 2010-10-15 16:17:50 +02:00
Rico Schüller 6628944b7f d3dcompiler/tests: Add D3DGetBlobPart() test. 2010-10-15 16:17:49 +02:00
Matteo Bruni 7c47a9d192 d3dcompiler: Accept dot terminated float immediate values. 2010-10-14 17:54:52 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Matteo Bruni 87f00d34fd d3dcompiler: Add D3DPreprocess tests. 2010-09-13 14:43:42 -05:00
Matteo Bruni 53a15436f8 d3dcompiler: Move D3DAssemble tests from d3dx9_36. 2010-08-25 17:35:19 +02:00
Rico Schüller 5ad7f7b9d3 d3dcompiler: Add D3DCreateBlob() test. 2010-08-20 13:21:37 +02:00