Commit Graph

375 Commits

Author SHA1 Message Date
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
Alexandre Julliard 43df1ed406 d3dcompiler: Make varargs functions WINAPIV.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47473
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-07 08:02:55 +02:00
Alexandre Julliard c8d34ef088 d3dcompiler: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 14:59:40 +02:00
Alexandre Julliard 011b2eca46 d3dcompiler: Copy the C preprocessor source into d3dcompiler_43.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 13:33:08 +02:00
Philip Rebohle b1f9cd57be d3dcompiler: Accept a stat chunk size of 28 for reflection.
Fixes "unhandled size" error for Crysis shaders.

Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:01:21 +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
Alexandre Julliard 2d27c13d5e d3dcompiler: Use %define parse.error verbose instead of %error-verbose.
The latter is deprecated and causes warnings.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00
Piotr Caban 1b56d13da3 d3dcompiler: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-09 19:33:48 +02: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
Andrey Gusev d52b53d151 d3dcompiler: Add support for two other versions of ID3D11ShaderReflection.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 22:22:42 +01:00
Matteo Bruni 6a7a635b46 d3dcompiler_43: Define D3D_COMPILER_VERSION.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-09 15:27:45 -06:00
Serge Gautherie ffe9346120 d3dcompiler: Fix dxbc_init() function prototype.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-20 15:34:01 +01:00
Matteo Bruni e9231beb86 d3dcompiler: Add an assert checking for writemask sanity in debug_writemask().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-04 23:28:59 +01:00
Alex Henrie 358b814873 d3dcompiler: Turn variable 'components' into a static constant.
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-12-04 21:41:33 +01:00
Alex Henrie cbae62ba9e d3dcompiler_43: Turn variable 'c' into a static constant.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-12 10:21:52 +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
Matteo Bruni 4d1c8a8bff d3dcompiler: Make types array static const.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Michael Stefaniuc c91a00ce61 d3dcompiler: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:39:39 +02:00
Jacek Caban 169c033bda d3dcompiler: Use d3dcompiler_47 for importlib.
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:38:05 +02: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
Zebediah Figura 63d6dce047 d3dcompiler: Fix a buffer size computation.
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>
2017-10-09 21:05:28 +02:00
Jacek Caban d29e59a145 rbtree.h: Take wine_rb_entry as wine_rb_remove argument type and add new wine_rb_remove_key helper using key.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:01:53 +09:00
Jacek Caban acc0bb0521 rbtree.h: Pass compare function instead of wine_rb_functions to wine_rb_init.
Also change return type to void since the function can no longer fail.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 23:30:29 +09:00
Jacek Caban 907854d4a2 d3dcompiler_43: Removed no longer needed wine_rb_init error handling.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:26:45 +09: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
Alistair Leslie-Hughes 5fb90db781 d3dcompiler: Add D3DLoadModule stub.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:29 +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
Józef Kucia c9df3cd980 d3dcompiler: Avoid '\n' in middle of TRACE() messages.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-28 16:26:51 +09:00
Alexandre Julliard 3602962275 makefiles: Generate dependencies for static libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 19:38:37 +09:00
Alistair Leslie-Hughes 26094c5634 d3dcompiler: Add D3DReadFileToBlob, D3DWriteBlobToFile stubs.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 01:19:50 +09:00
Gerald Pfeifer d04324f0fa d3dcompiler_43: Replace 14 instances of 1 << 31 by 1u << 31 to avoid shift shift overflow. 2015-09-07 15:06:23 +09:00
Gerald Pfeifer 8bb4525ee0 d3dcompiler_43: Define BWRITER_SM1_VS and BWRITER_SM1_PS as unsigned constants. 2015-08-17 14:40:37 +09:00
Sebastian Lackner e0a9ea6c68 d3dcompiler: Implement semi-stub for D3DCompile2. 2015-08-17 14:40:09 +09:00
Alistair Leslie-Hughes 1a0fc895f1 d3dcompiler: Add D3DCompileFromFile, D3DCompile2 stubs. 2015-08-17 14:40:01 +09:00
Alexandre Julliard 8a9483400a d3dcompiler_43: Add a helper function for register token to avoid compiler warnings. 2015-06-26 20:35:07 +09:00
Alistair Leslie-Hughes 80205c0160 d3dcompiler: Rename d3dcompiler_43_main.c to main.c. 2015-06-26 20:35:05 +09:00
Matteo Bruni bd7e83f292 d3dcompiler: Parse ": register()" syntax. 2015-06-19 19:11:03 +09:00
Matteo Bruni 5ae37d47f1 d3dcompiler: Handle writemask in make_assignment(). 2015-06-19 19:11:01 +09:00
Matteo Bruni 10fcb9379e d3dcompiler: Handle redefining an intrinsic function as a user-defined function. 2015-06-19 19:10:59 +09:00
Henri Verbeet bef432a19c d3dcompiler: Rename "func" to "decl" in free_function_decl().
Mostly just for consistency with other uses of struct hlsl_ir_function_decl.
2015-05-01 15:17:15 +09:00
Henri Verbeet c05acba168 d3dcompiler: Actually free the function in free_function() (Valgrind). 2015-05-01 15:17:11 +09:00
Henri Verbeet 307cf703af d3dcompiler: Free the filename if we don't store it in the HLSL preproc_directive rule (Valgrind). 2015-05-01 15:17:08 +09:00
Matteo Bruni a02f76637d d3dcompiler: Fix tracing of expression operators.
This hunk should have been in d25486fba4.
2014-10-16 21:23:41 +09:00
Matteo Bruni aa167f92d7 d3dcompiler: Free the relative addressing data of destination registers (Valgrind). 2014-08-26 16:44:47 +02: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
Matteo Bruni c37714342e d3dcompiler: add_func_parameter is only used in hlsl.y. 2014-05-02 17:15:09 +02:00
Matteo Bruni d25486fba4 d3dcompiler: Pre/post increment/decrement operators are unary. 2014-05-02 17:15:05 +02:00
Matteo Bruni 89cac9c20d d3dcompiler: Remove a couple of noisy traces. 2014-05-02 17:15:02 +02:00
Henri Verbeet ffc01ec648 d3dcompiler: Make some string arrays const. 2014-05-02 13:45:43 +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
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Andrey Gusev 1f29734b18 d3dcompiler_43: Fix a typo. 2013-12-02 11:09:07 +01:00
Frédéric Delanoy 27947d2662 d3dcompiler_43: Use BOOL type where appropriate. 2013-11-08 12:46:15 +01:00
Michael Stefaniuc 2f673f2965 d3dcompiler_43/tests: Compile with -D__WINESRC__. 2013-10-17 10:43:48 +02:00
Henri Verbeet cc3cde5124 d3dcompiler: Get rid of the BWRITERDECLUSAGE typedef. 2013-10-04 12:45:24 +02:00
Henri Verbeet 94dece4c0c d3dcompiler: Get rid of the BWRITERSHADER_PARAM_SRCMOD_TYPE typedef. 2013-10-03 12:55:16 +02:00
Henri Verbeet 540054eb3e d3dcompiler: Get rid of the BWRITERSAMPLER_TEXTURE_TYPE typedef. 2013-10-03 12:55:12 +02:00
Henri Verbeet 48a6375dfc d3dcompiler: Get rid of the BWRITERSHADER_PARAM_DSTMOD_TYPE typedef. 2013-10-02 11:05:45 +02:00
Henri Verbeet f67af28261 d3dcompiler: Get rid of the BWRITERVS_RASTOUT_OFFSETS typedef. 2013-10-02 11:05:43 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Henri Verbeet b347554937 d3dcompiler: Get rid of the BWRITERSHADER_PARAM_REGISTER_TYPE typedef. 2013-10-01 10:57:36 +02:00
Henri Verbeet a8aa199c36 d3dcompiler: Get rid of the BWRITERSHADER_INSTRUCTION_OPCODE_TYPE typedef. 2013-10-01 10:57:34 +02:00
Henri Verbeet 1b6e9d245c d3dcompiler: Get rid of the BWRITER_COMPARISON_TYPE typedef. 2013-09-30 20:34:53 +02:00
Henri Verbeet 5daf5e80fb d3dcompiler: Avoid LPVOID. 2013-09-06 12:00:24 +02:00
Henri Verbeet 1046aa6e48 d3dcompiler: Avoid LPCVOID. 2013-09-05 13:18:24 +02:00
Henri Verbeet 36190dd5e6 d3dcompiler: Avoid LPCSTR. 2013-09-05 13:18:24 +02:00
Henri Verbeet aab72562d5 d3dcompiler: Get rid of a couple of redundant casts. 2013-09-04 11:37:09 +02:00
Matteo Bruni 3f221611f0 d3dcompiler: Skip search of the parent include for the initial file. 2013-09-03 16:58:32 +02:00
Christian Costa af59f19461 d3dcompiler: Add trace to D3DPreprocess. 2013-05-13 11:08:43 +02:00
Christian Costa 6e77816301 d3dcompiler: Add a LUT to find compilation targets info. 2013-05-13 11:08:36 +02:00
Christian Costa 896ff53774 d3dcompiler_43: Turn FIXME into TRACE as D3DCompiler is no longer a stub. 2013-04-26 16:28:07 +02:00
Alexandre Julliard f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
Michael Stefaniuc 536bdfde27 d3dcompiler_43: Remove ERR() on HeapAlloc failure for small sizes known at compile time. 2013-02-08 10:44:36 +01:00
Michael Stefaniuc b5d4c20bfe d3dcompiler_43: Use assignment instead of memcpy to copy structs. 2013-01-28 14:00:14 +01: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
Andrew Talbot 80e4d899ed d3dcompiler_43: Avoid signed-unsigned integer comparisons. 2013-01-02 13:35:53 +01:00
Matteo Bruni f6b22a7570 d3dcompiler: Put data type name of constants on the heap. 2012-11-09 16:43:12 +01:00
Matteo Bruni feda13db33 d3dcompiler: Skip stray semicolons outside of functions. 2012-11-09 16:43:09 +01:00
Matteo Bruni 0d2a27af40 d3dcompiler: Allow a comma at the end of an initializer. 2012-11-09 16:43:05 +01:00
Matteo Bruni a5203e1a79 d3dcompiler: Don't take the sign as part of the numeric token. 2012-11-09 16:43:02 +01:00
André Hentschel 3abc425267 d3dcompiler_43: Free assignment on error (coverity). 2012-10-26 11:48:12 +02:00
Francois Gouget 25c465269c d3dcompiler_43: Make free_function{_decl}() static. 2012-10-15 19:37:29 +02:00
Matteo Bruni 69922c671a d3dcompiler: Add some checks to function definitions. 2012-10-11 21:24:34 +02:00
Matteo Bruni 6897f9aa35 d3dcompiler: Properly support function overloads. 2012-10-11 21:24:34 +02:00
Matteo Bruni deb00c9460 d3dcompiler: Allow multiple input/output modifiers. 2012-10-11 21:24:34 +02:00
Matteo Bruni 5e66599737 d3dcompiler: Add a trace to D3DAssemble. 2012-10-11 21:24:34 +02:00
Matteo Bruni 426b5b3609 d3dcompiler: Avoid "naked" vars in record dereferences. 2012-10-11 21:24:34 +02:00
Matteo Bruni 1f876a670e d3dcompiler: Don't raise a warning for an uninitialized uniform. 2012-10-10 20:34:14 +02: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 f4eccde66d d3dcompiler: Fix "for" syntax. 2012-10-10 20:34:13 +02:00
Alexandre Julliard 2763a983fe Mark all lexers as never-interactive. 2012-10-01 12:19:25 +02:00
Matteo Bruni b1594dabcc d3dcompiler: Parse array indexing expressions. 2012-09-28 17:53:10 +02:00
Matteo Bruni f50007b856 d3dcompiler: Parse struct typedefs. 2012-09-28 17:53:03 +02:00
Matteo Bruni 6b2ecb509a d3dcompiler: Parse struct dereferences. 2012-09-28 17:52:58 +02:00
Matteo Bruni f10e0d4e9e d3dcompiler: Fix freeing function. 2012-09-28 17:52:52 +02:00