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
Matteo Bruni
16360a4f18
d3dcompiler: Handle simple struct initializers.
2012-09-27 13:09:05 +02:00
Matteo Bruni
9cbd80bda1
d3dcompiler: Store the pointer to the struct field in the dereference node.
2012-09-27 13:08:58 +02:00
Matteo Bruni
f2d2755eef
d3dcompiler: Also free the list itself in free_instr_list().
2012-09-27 13:08:54 +02:00
Matteo Bruni
97a170d2d1
d3dcompiler: Parse structure declarations.
2012-09-27 13:08:45 +02:00
Matteo Bruni
4019a3deb6
d3dcompiler: Move variables declaration to a separate function.
2012-09-27 13:08:38 +02:00
Francois Gouget
919db661e5
d3dcompiler_43: Make compare_hlsl_types_rb() static.
2012-09-24 16:38:16 +02:00
Matteo Bruni
778e98c19e
d3dcompiler: Parse "for" loops with declarations.
2012-09-21 18:29:27 +02:00
Matteo Bruni
6e4617c14a
d3dcompiler: Parse "for" loops without variable declarations.
2012-09-21 18:29:27 +02:00
Matteo Bruni
2b7ad731a4
d3dcompiler: Parse "do-while" loop.
2012-09-21 18:29:27 +02:00
Matteo Bruni
5fc67931b8
d3dcompiler: Parse "while" loops.
2012-09-21 18:29:26 +02:00
Matteo Bruni
76525af7f1
d3dcompiler: Allow casts to arrays.
2012-09-21 18:29:26 +02:00
Francois Gouget
0c9ee6663f
d3dcompiler_43: Remove an unwanted trailing '\n' in debug_dump_instr().
2012-09-20 00:01:06 +02:00
Francois Gouget
e4ca67f7aa
d3dcompiler_43: Make add_type_to_scope() static.
2012-09-20 00:00:25 +02:00
Matteo Bruni
ca701b7d69
d3dcompiler: Parse casts.
2012-09-19 23:54:25 +02:00
Matteo Bruni
46e368934e
d3dcompiler: Support simple variable initializers.
2012-09-19 23:54:21 +02:00
Matteo Bruni
d9c247f2ae
d3dcompiler: Parse "typedef" statement.
2012-09-19 23:54:18 +02:00
Matteo Bruni
8f60f8f34b
d3dcompiler: Store data types in a RB tree for faster search.
2012-09-19 23:54:07 +02:00
Matteo Bruni
79c6ce0a0f
d3dcompiler: Parse "if/else" statement.
2012-09-19 23:54:04 +02:00
Matteo Bruni
19f951e86a
d3dcompiler/tests: Use a reasonable adapter format in CheckDeviceFormat().
2012-09-18 19:05:51 +02:00
Matteo Bruni
ae11ba0b23
d3dcompiler: Parse "return" statement.
2012-09-18 19:05:44 +02:00
Matteo Bruni
47e931823c
d3dcompiler: Only a few modifiers are relevant in type comparison.
2012-09-18 19:05:36 +02:00
Matteo Bruni
4ccffd8fa9
d3dcompiler: Don't write the shader version tag from the header backend function.
2012-09-18 19:05:30 +02:00
Matteo Bruni
e7a9218ef1
d3dcompiler: Declare predefined data types.
2012-09-18 19:05:22 +02:00
Matteo Bruni
caf6fe0588
d3dcompiler: Stub D3DDisassemble.
2012-09-17 18:32:05 +02:00
Matteo Bruni
237558f649
d3dcompiler: Postincrement/decrement expressions are const.
...
Also check for const expressions used as l-values.
2012-09-17 18:31:58 +02:00
Matteo Bruni
7cce71a0c3
d3dcompiler: Parse swizzles.
2012-09-17 18:31:48 +02:00
Francois Gouget
3dd26315a4
d3dcompiler_43: Make debug_dump_ir_expr() static.
2012-07-25 16:11:17 +02:00
Francois Gouget
285b9340f1
d3dcompiler_43: Make some functions static.
2012-07-23 19:53:50 +02:00
Francois Gouget
28e06e3fb0
d3dcompiler_43: Add a trailing '\n' to a couple of Wine traces.
2012-07-23 19:53:49 +02:00
Matteo Bruni
1a36da15af
d3dcompiler: Parse assignments.
2012-07-20 21:30:07 +02:00
Matteo Bruni
6ccbccbb29
d3dcompiler: Stub assignment parsing.
2012-07-20 21:30:07 +02:00
Matteo Bruni
fbb7e20ffd
d3dcompiler: "void" is not a plain scalar data type.
...
It can't be used in expressions and the like. This change indirectly
takes care of most of the checks.
2012-07-20 21:30:06 +02:00
Matteo Bruni
f2b5f71218
d3dcompiler: Parse unary and prefix operators.
2012-07-20 21:30:06 +02:00
Matteo Bruni
e851bf211e
d3dcompiler: Parse some postfix operators.
2012-07-20 21:30:05 +02:00
Matteo Bruni
6c92d78c8c
d3dcompiler: Parse relational operators, stub out more rules.
2012-07-18 17:15:24 +02:00
Matteo Bruni
57a7479f77
d3dcompiler: Parse multiplicative expressions.
2012-07-18 17:15:24 +02:00
Matteo Bruni
7293c1c0fe
d3dcompiler: Don't allow semantics on local variables.
2012-07-18 17:15:23 +02:00
Matteo Bruni
110045816c
d3dcompiler: Don't allow const variables without initializers.
2012-07-18 17:15:23 +02:00
Matteo Bruni
c9a42ca5fc
d3dcompiler: Check for invalid matrix majority modifiers.
2012-07-18 17:15:23 +02:00
Matteo Bruni
27880abb97
d3dcompiler: Implement basic expressions parsing.
2012-07-17 11:55:20 +02:00
Matteo Bruni
604a91eb57
d3dcompiler: Don't allow semantics on void functions.
2012-07-17 11:55:20 +02:00
Matteo Bruni
1252930bc0
d3dcompiler: Variables and functions can't have the same name.
2012-07-17 11:55:19 +02:00
Matteo Bruni
7ebab8c4f7
d3dcompiler: Pass the complete location to add_func_parameter().
2012-07-17 11:55:19 +02:00
Matteo Bruni
be350b0bb3
d3dcompiler: Store location information in constants, variable dereferences and constructors.
2012-07-17 11:55:18 +02:00
Matteo Bruni
2b2b850106
d3dcompiler: Use location information in add_modifier().
2012-07-12 11:47:56 -05:00
Matteo Bruni
a84784e057
d3dcompiler: Store (and begin to use) location information for variables.
2012-07-12 11:47:52 -05:00
Matteo Bruni
5bcf8de8cf
d3dcompiler: Introduce source_location structure.
2012-07-12 11:47:47 -05:00
Matteo Bruni
40cbcabc0b
d3dcompiler: Track the location of each lexer token.
2012-07-12 11:47:41 -05:00
Matteo Bruni
632703d8cf
d3dcompiler: Add hlsl_report_message function to standardize error messages.
2012-07-12 11:47:33 -05:00
Matteo Bruni
4a01368809
d3dcompiler: Improve debug_hlsl_type function.
2012-07-11 11:18:04 -05:00
Matteo Bruni
995fb30d58
d3dcompiler: Add a trace to the scope push/pop functions.
2012-07-11 11:17:57 -05:00
Matteo Bruni
3d052768ab
d3dcompiler: Pass the shader filename to the preprocessor.
2012-07-11 11:17:49 -05:00
Matteo Bruni
6fbed51ef1
d3dcompiler: Make declaration_statement return a list.
2012-07-11 11:17:41 -05:00
Matteo Bruni
b33e1ceaf2
d3dcompiler: Properly print compilation messages.
2012-07-11 11:17:35 -05:00
Matteo Bruni
110249d664
d3dcompiler: Initialize and fix compilation messages generation.
2012-07-10 11:01:03 -05:00
Matteo Bruni
45e8a644eb
d3dcompiler: Parse compilation target.
2012-07-10 11:00:58 -05:00
Matteo Bruni
29ba39face
d3dcompiler: Carry around both shader major and minor version.
2012-07-10 11:00:53 -05:00
Matteo Bruni
b8cdf2ee18
d3dcompiler: Type names have to be allocated on the heap.
2012-07-10 11:00:48 -05:00
Matteo Bruni
0d34c9dab7
d3dcompiler: Fix line info update.
2012-07-10 11:00:43 -05:00
Marcus Meissner
1f1686fddd
d3dcompiler_43: Fixed small overread possibility (Coverity).
2012-07-09 10:07:10 -04:00
Francois Gouget
768c38034c
d3dcompiler_43: Make debug_dump_ir_constructor() static.
2012-06-13 21:35:41 +02:00
Matteo Bruni
f5ffa3004d
d3dcompiler: Add some tests for 'system' type includes.
2012-06-13 21:35:40 +02:00
Matteo Bruni
80034de243
wpp: Explicitly pass include type to the lookup callback function.
...
Also, always pass the parent name to the callback, d3dcompiler needs
that information.
2012-06-13 21:35:39 +02:00
Matteo Bruni
8b0d3d9f9a
wpp: Invert 'type' callback parameter value, to match comment.
2012-06-13 21:35:38 +02:00
Matteo Bruni
eeb550c0c3
d3dcompiler: Parse constructors.
2012-06-12 10:20:35 +02:00
Matteo Bruni
d2673848ea
d3dcompiler: Parse function definitions.
2012-06-12 10:20:32 +02:00
Matteo Bruni
552f10d0e8
d3dcompiler: Parse function declarations.
2012-06-12 10:20:30 +02:00
Matteo Bruni
5e34375238
d3dcompiler: Parse sampler declarations.
2012-06-12 10:20:27 +02:00
Matteo Bruni
de11f800fd
d3dcompiler: Parse vector and matrix declarations.
2012-06-12 10:20:24 +02:00
Francois Gouget
b0a339707f
d3dcompiler_43: Make debug_{base,node}_type() static.
2012-06-08 19:35:17 +02:00
Matteo Bruni
96470dfcb4
d3dcompiler: Parse variable references in expressions.
2012-06-07 10:32:46 +02:00
Matteo Bruni
887ef49419
d3dcompiler: Parse variable initializers, basic expressions.
2012-06-07 10:32:41 +02:00
Matteo Bruni
3275cca970
d3dcompiler: Parse modifiers.
2012-06-07 10:32:36 +02:00
Matteo Bruni
9d9dae0cdb
d3dcompiler: Distinguish between scalars, vectors and matrices.
2012-06-07 10:32:31 +02:00
Matteo Bruni
a8839cd1de
d3dcompiler: Dump preprocessed shader sources.
2012-06-07 10:32:23 +02:00
Matteo Bruni
2aa6c460f7
d3dcompiler: Parse variable declarations.
2012-06-05 10:20:20 +02:00
Matteo Bruni
2ad2c5fa01
d3dcompiler: Add identifiers parsing.
2012-06-05 10:20:17 +02:00
Matteo Bruni
5e82c397f4
d3dcompiler: Flesh out the lexer more.
2012-06-05 10:20:11 +02:00
Matteo Bruni
233101b0ca
d3dcompiler: Use a separate bytecodewriter debug channel.
2012-06-05 10:20:07 +02:00
Francois Gouget
1f6d078e1b
Assorted spelling fixes.
2012-06-04 12:17:54 +02:00
Matteo Bruni
d2ddd20054
d3dcompiler: Add a stub lexer.
2012-05-16 18:30:07 +02:00
Matteo Bruni
949de2e520
d3dcompiler: Add a stub parser.
2012-05-16 16:46:06 +02:00
Matteo Bruni
47a7f7f13d
d3dcompiler: Trace compilation messages.
2012-05-16 16:45:10 +02:00
Matteo Bruni
14ec785fc3
d3dcompiler: Partially implement D3DCompile function.
2012-05-16 16:44:47 +02:00
Matteo Bruni
ddab7fcda9
d3dcompiler: Make SlWriteBytecode return the shader size.
2012-05-16 16:44:35 +02:00
Matteo Bruni
491d0e9d6b
d3dcompiler: Rename asm_alloc/realloc/free functions to more generic names.
2012-05-08 20:21:18 +02:00
Matteo Bruni
e2866d6fa1
d3dcompiler: Generalize message reporting function.
2012-05-08 20:21:13 +02:00
Matteo Bruni
555f634912
d3dcompiler: Make set_parse_status() more general.
2012-05-08 20:21:09 +02:00
Matteo Bruni
167612aea9
d3dcompiler: Remove shader_type typedef.
2012-05-08 20:21:04 +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
d2b164f0b4
d3dcompiler: Fix parsing the tex instruction in ps_1_0 shaders.
2012-04-09 11:48:01 +02:00
Józef Kucia
8e3b050f44
d3dcompiler/tests: Add test for comments containing quotation marks.
2012-03-12 10:12:56 +01:00
Andrew Talbot
5c7ba2c330
d3dcompiler_43: Mark fall-throughs in switch statement.
2011-09-26 18:14:24 +02:00
André Hentschel
550e2a9f6a
d3dcompiler_43/tests: Fix printing a NULL string.
2011-08-30 11:53:09 +02:00
Frédéric Delanoy
f932abf326
dlls: Assorted spelling fixes.
2011-08-01 18:26:27 +02:00
Dan Kegel
b732d428de
d3dcompiler_43: Don't crash on long TRACE().
2011-07-05 14:40:19 +02:00
Matteo Bruni
bfda69d0e9
d3dcompiler: Fix error messages generation.
2011-05-05 17:25:39 +02:00
Matteo Bruni
1d160beda0
d3dcompiler: Improve some parameter names and fix code style.
2011-05-05 17:24:53 +02:00
Alexandre Julliard
cd2beae51b
d3dcompiler: Specify arguments for stub entry points that are used in forwards.
2011-05-03 19:34:25 +02:00
Francois Gouget
4d29b9716e
d3dcompiler_43: Make write_dword_unknown() static.
2011-05-03 14:38:06 +02:00
Rico Schüller
c49f09d6f8
d3dcompiler: Fix HeapAlloc/HeapFree for type members in the reflection parser.
2011-04-13 14:13:53 +02:00
Rico Schüller
96aa08ecfd
d3dcompiler: Make some variables static.
2011-04-04 13:43:33 +02:00
Rico Schüller
5c999d650f
d3dcompiler: Move blob and strip functions to blob.c.
2011-04-04 13:43:29 +02:00
Rico Schüller
c4530c56d1
d3dcompiler: Remove type cast in D3DCreateBlob().
2011-04-04 13:43:23 +02:00
Rico Schüller
4d54360765
d3dcompiler: Move D3DCreateBlob() to blob.c.
2011-04-04 13:43:01 +02:00
Marcus Meissner
1548c2b985
d3dcompiler_43: Initialize a variable (Coverity).
2011-03-15 17:14:07 +01:00
Francois Gouget
fdf97125cb
d3dcompiler_43: Add a '\n' to a couple of FIXME() traces.
2011-03-07 11:08:38 +01:00
Rico Schüller
7832577ad7
d3dcompiler: Add debug helper for shader variable type.
2011-03-04 16:25:58 +01:00
Rico Schüller
525dee0778
d3dcompiler: Add debug helper for shader variable class.
2011-03-04 16:25:58 +01:00
Rico Schüller
5861deaefc
d3dcompiler: Move some code from header to source file.
2011-03-02 12:50:58 +01: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
f7571743c9
d3dcompiler: Use defines for shader target masks.
2011-03-01 13:21:58 +01:00
Rico Schüller
f9696983cf
d3dcompiler: Implement ID3D11ShaderReflectionType::GetMemberTypeName().
2011-03-01 13:21:58 +01:00
Rico Schüller
54b5364988
d3dcompiler: Implement ID3D11ShaderReflectionType::GetMemberTypeByName().
2011-03-01 13:21:58 +01:00
Rico Schüller
3ca651cce1
d3dcompiler: Implement ID3D11ShaderReflectionType::GetMemberTypeByIndex().
2011-03-01 13:21:58 +01:00
Rico Schüller
a300481187
d3dcompiler: Parse member types.
2011-03-01 13:21:58 +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
3c1ffbf2e7
d3dcompiler: Reorder section parsing to reflect the order from the shader blob.
2011-02-28 11:10:25 +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
Amine Khaldi
b6990fa77a
d3dcompiler_43: Avoid an unintended fall-through.
2011-02-23 19:24:05 +01:00
Rico Schüller
12d4683f05
d3dcompiler: Implement ID3D11ShaderReflectionVariable::GetType().
2011-02-23 18:21:36 +01:00
Rico Schüller
c647243ed9
d3dcompiler: Implement ID3D11ShaderReflectionType::GetDesc().
2011-02-23 18:21:34 +01:00
Rico Schüller
3c75a985e3
d3dcompiler: Implement ID3D11ShaderRefleflection::GetVariableByName().
2011-02-23 18:21:32 +01:00
Rico Schüller
e8c6ea220d
d3dcompiler: Implement ID3D11ShaderReflectionVariable::GetBuffer().
2011-02-22 12:28:59 +01:00
Rico Schüller
49651c105e
d3dcompiler: Implement ID3D11ShaderReflectionVariable::GetDesc().
2011-02-22 12:28:55 +01:00
Rico Schüller
a386f480be
d3dcompiler: Implement ID3D11ShaderReflectionConstantBuffer::GetVariableByName().
2011-02-22 12:28:51 +01:00
Rico Schüller
73f9d9f516
d3dcompiler: Implement ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex().
2011-02-22 12:28:46 +01:00
Rico Schüller
debfb06148
d3dcompiler: Parse reflection types.
2011-02-22 12:28:37 +01:00
Rico Schüller
0e8d142ea6
d3dcompiler: Parse reflection variables.
2011-02-21 12:58:58 +01:00
Rico Schüller
c6ec32aec7
d3dcompiler: Implement ID3D11ShaderReflectionConstantBuffer::GetDesc().
2011-02-21 12:58:57 +01:00
Rico Schüller
dd934099e1
d3dcompiler: Implement ID3D11ShaderReflection::GetConstantBufferByName().
2011-02-21 12:58:55 +01:00
Rico Schüller
a7483f4bcc
d3dcompiler: Implement ID3D11ShaderReflection::GetConstantBufferByIndex().
2011-02-21 12:58:53 +01:00
Rico Schüller
3f6c54f263
d3dcompiler: Parse reflection constant buffers.
2011-02-21 12:58:50 +01:00
Matteo Bruni
005910957b
d3dcompiler: Fix initial allocation (Valgrind).
2011-02-21 12:44:19 +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
Rico Schüller
14d8b51bac
d3dcompiler: Add argument check in D3DReflect().
2011-02-16 14:26:14 +01:00
Rico Schüller
cacff4b3a0
d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDescByName().
2011-02-14 12:26:08 +01:00
Rico Schüller
162233eb63
d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDesc().
2011-02-14 12:26:04 +01:00
Rico Schüller
5ad824a178
d3dcompiler: Parse bound resources.
2011-02-14 12:26:00 +01:00
Rico Schüller
19fea20963
d3dcompiler: Parse OSG5 in the reflection interface.
2011-02-08 09:04:27 -06:00
Matteo Bruni
dbc8c9c299
d3dcompiler: Include the string terminator in the output blob.
2011-02-07 13:03:39 -06: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
Rico Schüller
ba9d311f0d
d3dcompiler: Implement ID3D11ReflectionInterface::GetDesc().
2010-12-28 16:35:40 +01:00
Rico Schüller
127d07a3cc
d3dcompiler: Add initial SHDR and SHEX parsing.
2010-12-28 16:35:40 +01:00
Rico Schüller
a2a7000eeb
d3dcompiler: Add initial RDEF parsing.
2010-12-28 16:35:40 +01:00
Rico Schüller
97988d63d8
d3dcompiler: Implement ID3D11ShaderReflection::GetPatchConstantParameterDesc().
2010-12-22 13:00:13 +01:00
Rico Schüller
bf1065ea6d
d3dcompiler: Implement ID3D11ShaderReflection::GetOutputParameterDesc().
2010-12-22 13:00:13 +01:00
Rico Schüller
767e5705a2
d3dcompiler: Implement ID3D11ShaderReflection::GetInputParameterDesc().
2010-12-22 13:00:12 +01:00
Rico Schüller
bfcd413553
d3dcompiler: Parse PCSG in the reflection interface.
2010-12-22 13:00:12 +01:00
Rico Schüller
ae98cb4659
d3dcompiler: Parse OSGN in the reflection interface.
2010-12-22 13:00:12 +01:00
Rico Schüller
e8ba248920
d3dcompiler: Properly initialize Stream member of D3D11_SIGNATURE_PARAMETER_DESC.
2010-12-22 13:00:11 +01:00
Rico Schüller
f8e4771be4
d3dcompiler: Parse ISGN in the reflection interface.
2010-12-21 15:49:19 +01:00
Rico Schüller
5ad0c856b6
d3dcompiler: Implement ID3D11ShaderReflection::GetConversionInstructionCount().
2010-12-21 15:49:07 +01:00
Rico Schüller
ff038cbcbe
d3dcompiler: Implement ID3D11ShaderReflection::GetMovInstructionCount().
2010-12-21 15:49:04 +01:00
Rico Schüller
984ed6e9ac
d3dcompiler: Parse reflection STAT tag.
2010-12-21 15:49:00 +01:00