Commit Graph

53 Commits

Author SHA1 Message Date
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
426b5b3609 d3dcompiler: Avoid "naked" vars in record dereferences. 2012-10-11 21:24:34 +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
Francois Gouget
919db661e5 d3dcompiler_43: Make compare_hlsl_types_rb() static. 2012-09-24 16:38:16 +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
Matteo Bruni
ca701b7d69 d3dcompiler: Parse casts. 2012-09-19 23:54:25 +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
47e931823c d3dcompiler: Only a few modifiers are relevant in type comparison. 2012-09-18 19:05:36 +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
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
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
27880abb97 d3dcompiler: Implement basic expressions parsing. 2012-07-17 11:55:20 +02:00
Matteo Bruni
7ebab8c4f7 d3dcompiler: Pass the complete location to add_func_parameter(). 2012-07-17 11:55:19 +02:00
Matteo Bruni
5bcf8de8cf d3dcompiler: Introduce source_location structure. 2012-07-12 11:47:47 -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
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
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
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
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
47a7f7f13d d3dcompiler: Trace compilation messages. 2012-05-16 16:45:10 +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
Francois Gouget
4d29b9716e d3dcompiler_43: Make write_dword_unknown() static. 2011-05-03 14:38:06 +02: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