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
Alistair Leslie-Hughes
178507f2f9
d3dcompiler_43: Remove DECLSPEC_HIDDEN usage.
2023-07-11 22:39:35 +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
3a9e237bdf
d3dcompiler: Make D3DAssemble a private export.
2023-04-27 20:22:47 +02:00
Stefan Dösinger
3d6569a8b4
d3dcompiler/tests: Load D3DAssemble via GetProcAddress.
2023-04-27 20:22:47 +02:00
Henri Verbeet
55ab59af9f
d3dcompiler: Use vkd3d_shader_parse_dxbc() in d3dcompiler_shader_reflection_init().
2023-04-18 10:18:48 +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
Henri Verbeet
0c7313840c
d3dcompiler: Use vkd3d_shader_serialize_dxbc() in d3dcompiler_get_blob_part().
2023-04-18 10:18:48 +02:00
Henri Verbeet
b8fe76a8b5
d3dcompiler: Store DXBC sections as vkd3d_shader_dxbc_section_desc structures.
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
Henri Verbeet
3fbfd1da2c
d3dcompiler: Check for minimum bytecode size in d3dcompiler_strip_shader().
2023-04-18 10:18:28 +02:00
Henri Verbeet
a342c75a37
d3dcompiler: Check for minimum bytecode size in d3dcompiler_get_blob_part().
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
699b52dc46
d3dcompiler: Fix bytecode buffer leaks in D3DCompile2().
2023-03-22 09:41:20 +01:00
Nikolay Sivov
929615fa13
d3dcompiler: Always free messages string in D3DCompile2().
2023-03-22 09:41:20 +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
Henri Verbeet
7db5431699
d3dcompiler: Handle some newer D3D_BLOB_PART values in debug_d3dcompiler_d3d_blob_part().
2023-03-14 21:00:19 +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
Zebediah Figura
7926253d82
d3dcompiler: Print message output with ERR() in D3DPreprocess().
2022-11-17 21:50:39 +01:00
Zebediah Figura
cee21cf3b8
d3dcompiler: Print message output with ERR() in D3DCompile2().
2022-11-17 21:50:39 +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
8a7651fd36
d3dcompiler: Set initial_filename in D3DCompile2().
...
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
a23192f338
d3d10: Do not define D3DReflect().
...
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:59:06 +01:00
Zebediah Figura
2198235cf1
d3dcompiler: Use a single definition for both d3d10 and d3d11 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:59:03 +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
Matteo Bruni
a149fd4a56
d3dcompiler: Move skip_u32_unknown() declaration to utils.h.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:44:55 +01:00
Matteo Bruni
8c29458630
d3dcompiler: Move read_u32() to a new utils.h private header.
...
To be able to use it from d3d10 via PARENTSRC.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:44:55 +01:00
Matteo Bruni
c4273f0bbe
d3dcompiler: Use more consistent integer data types.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:44:55 +01:00
Eric Pouech
576cdea0d7
d3dcompiler: Build without -DWINE_NO_LONG_TYPES.
...
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
96b08eaecb
d3d10: Build without -DWINE_NO_LONG_TYPES.
...
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
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
Alexandre Julliard
f4af3134de
makefiles: Specify the bison prefix directly in the source files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-21 13:15:12 +01:00
Alexandre Julliard
bb2d48627d
d3dcompiler: Use the standard va_list instead of __ms_va_list.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-22 11:11:28 +02:00