Jeff Smith
0a8610f9ba
d3dcompiler_43/tests: Use compare_uint() in compare_float() instead of abs().
...
The result of abs(INT_MIN) is INT_MIN, which breaks the ulps comparison.
2023-08-08 11:57:30 +09:00
Nikolay Sivov
24557a257a
d3dcompiler/tests: Add another test for matrix majority flags.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-07-17 09:40:34 +02:00
Nikolay Sivov
cdeeffb90a
d3dcompiler/tests: Add some tests for matrix packing order compile flags.
2023-07-11 20:17:57 +02:00
Stefan Dösinger
3d6569a8b4
d3dcompiler/tests: Load D3DAssemble via GetProcAddress.
2023-04-27 20:22:47 +02:00
Henri Verbeet
372dc31eac
d3dcompiler: Use vkd3d_shader_parse_dxbc() in d3dcompiler_strip_shader().
2023-04-18 10:18:48 +02:00
Henri Verbeet
7dfd32d5f0
d3dcompiler: Use vkd3d_shader_parse_dxbc() in d3dcompiler_get_blob_part().
2023-04-18 10:18:48 +02:00
Henri Verbeet
8455b47b86
d3dcompiler: Use vkd3d_shader_serialize_dxbc() in d3dcompiler_strip_shader().
...
Note that this adds a todo_wine to test_get_blob_part2(). It looks
like native d3dcompiler only adds padding between sections, while
vkd3d-shader always adds padding to the end of sections. I've sent a
vkd3d-shader patch to fix that, but the extra padding at the end of
the DXBC blob doesn't seem terribly concerning.
2023-04-18 10:18:48 +02:00
Matteo Bruni
92a2ebc680
d3dcompiler/tests: Add a couple tests for minimum size in D3DStripShader().
2023-04-18 10:18:29 +02:00
Matteo Bruni
a639324b3d
d3dcompiler/tests: Add a couple tests for minimum size in D3DGetBlobPart().
2023-04-18 10:18:28 +02:00
Alexandre Julliard
b8807b994f
d3dcompiler/tests: Update todos for tests that succeed with vkd3d 1.7.
2023-03-25 10:51:51 +01:00
Nikolay Sivov
5231c8c8bb
d3dcompiler: Allow D3DCompile2() to succeed with null output shader blob pointer.
2023-03-22 09:41:19 +01:00
Nikolay Sivov
472d802a24
d3dcompiler: Always initialize output shader blob pointer in D3DCompile2().
2023-03-22 09:41:18 +01:00
Francois Gouget
edf88aa9df
d3dcompiler/tests: Allow more imprecision in test_trig() for NVIDIA.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54150
2023-02-14 09:58:02 +01:00
Nikolay Sivov
7bf58c895c
d3dcompiler: Implement D3DDisassemble() using vkd3d-shader.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46649
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-30 15:38:26 +01:00
Alexandre Julliard
28a221204b
d3dcompiler: Remove todo_wine from tests that succeed now.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-24 22:38:47 +02:00
Matteo Bruni
bc3a69f2af
d3dcompiler/asm: Parse negative numbers with a whitespace after the sign.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-17 11:43:30 +02:00
Matteo Bruni
9400874e3c
d3dcompiler: Always use vkd3d-shader's preprocessor.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:47 +02:00
Matteo Bruni
c36a25897c
d3d10: Do not accept any compute shader in D3D10ReflectShader().
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Paul Gofman
af45477392
d3dcompiler: Allow cs5.1 shaders on earlier d3dcompiler versions.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Paul Gofman
47b9c450c6
d3dcompiler: Implement d3dcompiler_shader_reflection_GetThreadGroupSize().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Zebediah Figura
6a062afb75
d3dcompiler: Implement D3DCompile2() using vkd3d_shader_compile().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51713
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-22 22:54:11 +01:00
Matteo Bruni
b05c797a69
d3dcompiler/tests: Use hexadecimal constants in a few ok() checks.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-03 18:59:08 +01:00
Zebediah Figura
a27dfbe759
d3d10/tests: Add tests for Direct3D 10 shader reflection interfaces.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-03 18:58:55 +01:00
Eric Pouech
58d20aae37
d3dcompiler/tests: Build without -DWINE_NO_LONG_TYPES.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-08 20:24:15 +01:00
Eric Pouech
7bba86db28
d3d10/tests: Build without -DWINE_NO_LONG_TYPES.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-08 20:24:15 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Nikolay Sivov
d12d6b2978
d3dcompiler: Implement D3DWriteBlobToFile().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 11:10:27 +01:00
Matteo Bruni
edd9d23ee1
d3dcompiler/tests: Use the relevant d3dcompiler version in blob tests.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 11:10:25 +01:00
Fabian Maurer
cd7b14f1ae
d3dcompiler/tests: Avoid "misleading indentation" warnings.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:39 +01:00
Matteo Bruni
ae1f9899bb
d3dcompiler/tests: Also accept broken HRESULT with d3dcompiler_46.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 18:03:11 +02:00
Zebediah Figura
0ef10854c8
d3dcompiler/tests: Test include preprocessing with more functions.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-08 17:27:33 +02:00
Zebediah Figura
e44bd0e03f
d3dcompiler_46/tests: Enable tests.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-08 17:27:32 +02:00
Zebediah Figura
910a398b72
d3dcompiler/tests: Link directly to the relevant d3dcompiler version.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-08 17:27:32 +02:00
Zebediah Figura
93a4c58897
d3dcompiler/tests: Test including an absolute path.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-03 21:43:03 +02:00
Zebediah Figura
85fa778f93
d3dcompiler: Rip out the HLSL compiler.
...
The compiler is completely non-functional as-is, and lives in libvkd3d-shader
now. When a vkd3d release is made d3dcompiler will access it via the
libvkd3d-shader public API. Accordingly there's no reason to keep it around in
wine's d3dcompiler.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 18:06:30 +02:00
Nikolay Sivov
0861b5447f
d3dcompiler/tests: Add a D3DDisassemble() test with sm2 shader.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-27 18:06:30 +02:00
Matteo Bruni
6b58d34a62
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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-12 23:07:15 +02:00
Zebediah Figura
e5c50f5661
d3dcompiler/tests: Use winetest_push_context().
...
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>
2021-05-10 18:14:07 +02:00
Zebediah Figura
464b2dc661
d3dcompiler/tests: Avoid initializing nameless unions in designated initializers.
...
Old versions of gcc can't handle this.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50397
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-26 12:46:07 +01:00
Matteo Bruni
4ced409adb
d3dcompiler/tests: Always expect failure in test_reflection_desc_ps_output() on d3d10.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49950
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-13 11:33:05 +02:00
Francois Gouget
65013aae29
d3dcompiler_43/tests: Fix the spelling of a couple of ok() messages.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-29 12:17:42 +02:00
Paul Gofman
1690b6b475
d3dcompiler/tests: Test d3d12 interface in test_reflection_bound_resources().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-10 22:06:35 +02:00
Paul Gofman
56aeb4591b
d3dcompiler: Fill texture fields in D3D11_SHADER_VARIABLE_DESC with default values.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 11:15:48 +02:00
Paul Gofman
e92adb98be
d3dcompiler/tests: Test d3d12 interface in test_reflection_constant_buffer().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 11:15:48 +02:00
Paul Gofman
e446aee652
d3dcompiler/tests: Test d3d12 interface in test_reflection_desc_vs().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 11:08:30 +02:00
Paul Gofman
97c4725237
d3dcompiler/tests: Add test for reflection interfaces.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 11:08:28 +02:00
Zebediah Figura
ae415a7df7
d3dcompiler: Unconditionally report special (pixel shader output) sysvals based on the semantic name.
...
That is, do not check that the shader is a pixel shader and that the signature
is an output signature. These semantic names can only be generated in such
conditions; using the name for any other stage is invalid.
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-09-01 20:56:43 +02:00
Zebediah Figura
172048e32b
d3dcompiler/tests: Add tests for samplers.
...
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-09-01 18:40:12 +02:00
Zebediah Figura
3e89cbc5af
d3dcompiler/tests: Add tests for semantics.
...
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-09-01 18:40:12 +02:00
Zebediah Figura
37d8d163e3
d3dcompiler/tests: Add tests for constant buffer binding descriptors.
...
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-09-01 18:40:12 +02:00