Commit Graph

77 Commits

Author SHA1 Message Date
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
Matteo Bruni bd7e83f292 d3dcompiler: Parse ": register()" syntax. 2015-06-19 19:11:03 +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 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
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 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 1f876a670e d3dcompiler: Don't raise a warning for an uninitialized uniform. 2012-10-10 20:34:14 +02:00
Matteo Bruni f4eccde66d d3dcompiler: Fix "for" syntax. 2012-10-10 20:34:13 +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 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
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 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 ae11ba0b23 d3dcompiler: Parse "return" statement. 2012-09-18 19:05:44 +02:00
Matteo Bruni e7a9218ef1 d3dcompiler: Declare predefined data types. 2012-09-18 19:05:22 +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
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