Commit graph

574 commits

Author SHA1 Message Date
Alex Henrie
9ba4c10035 d3dcompiler_43: Use CRT allocation functions. 2023-11-22 10:06:33 +01:00
Nikolay Sivov
f341a693f4 d3dcompiler/tests: Do not crash on device creation.
Fixes crashes running with a null driver.
2023-11-21 11:10:27 +01:00
Alex Henrie
c64aa0006e d3dcompiler_43/tests: Use CRT allocation functions. 2023-11-16 23:18:24 +01:00
Alexandre Julliard
acad49573a makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
Alex Henrie
aca965d7f2 d3dcompiler_43: Use debugstr_fourcc instead of debugstr_an. 2023-10-17 21:48:20 +02:00
Alexandre Julliard
94771cf07a makefiles: Always use the global SOURCES variable for .l files. 2023-10-14 13:50:44 +02:00
Nikolay Sivov
167ad1ee7b d3dcompiler: Add support for matrix majority compiler flags.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55182
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-09-26 21:19:50 +02:00
Nikolay Sivov
8f6cf2d3c9 d3d10/tests: Add some tests for D3D10.1 blend state in effects.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-09-25 10:23:38 +02:00
Alexandre Julliard
3c186a5ed0 vkd3d: Import upstream release 1.9. 2023-09-22 20:54:15 +02:00
Matteo Bruni
a5b00bd03f d3dcompiler/tests: Avoid interpolation filters in test_samplers(). 2023-08-31 15:01:28 +02:00
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
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