Zebediah Figura
aaa625217b
d3dcompiler: Ensure that the lhs of an assignment is reducible to a variable.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-19 22:09:33 +01:00
Zebediah Figura
8ea8eb20a4
d3dcompiler: Rename HLSL_MODIFIERS_COMPARISON_MASK to HLSL_MODIFIERS_MAJORITY_MASK and use it in more places.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-19 22:09:32 +01:00
Zebediah Figura
a82ec54862
d3dcompiler: Rename HLSL_MODIFIER_{IN, OUT} to HLSL_STORAGE_{IN, OUT}.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-19 22:09:32 +01:00
Zebediah Figura
54387427b0
d3dcompiler: Separate out an hlsl_deref structure and store it in hlsl_ir_assignment directly.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:19 +01:00
Zebediah Figura
bdbf0b43b7
d3dcompiler: Unwrap swizzles from the left-hand side of an assignment.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Zebediah Figura
49f64d05f3
d3dcompiler: Don't pass a writemask to make_assignment().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Zebediah Figura
0e95c3faa2
d3dcompiler: Parse array types.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Zebediah Figura
eef3e3dacd
d3dcompiler: Pass a struct source_location to hlsl_report_message().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-06 22:47:25 +01:00
Zebediah Figura
09b2e42e92
d3dcompiler: Verify a returned value against the function's type and cast it if necessary.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-03 14:20:25 +01:00
Zebediah Figura
60f78a1476
d3dcompiler: Check for implicit type compatibility in implicit_conversion().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-03 14:20:25 +01:00
Zebediah Figura
81a7da48b9
d3dcompiler: Get rid of the unused "subexpressions" field of struct hlsl_ir_expr.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 20:48:33 +01:00
Zebediah Figura
efec4f90aa
d3dcompiler: Handle loops in free_instr().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 20:48:27 +01:00
Zebediah Figura
c5aa0feec7
d3dcompiler: Return an instruction list instead of a single instruction from nodes representing expressions.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 20:48:22 +01:00
Zebediah Figura
1aa2beab73
d3dcompiler: Dump loops.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 19:46:24 +01:00
Zebediah Figura
05182695f2
d3dcompiler: Use wine_dbg_printf() to dump HLSL IR.
...
So that we don't print function names.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 19:46:21 +01:00
Zebediah Figura
e6f89bcb04
d3dcompiler: Dump flattened IR more accurately.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 19:46:18 +01:00
Zebediah Figura
a43974a6d4
d3dcompiler: Store the swizzle unshifted.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 19:45:57 +01:00
Matteo Bruni
4ed07d8586
d3dcompiler: Always expect D3D_COMPILER_VERSION to be defined.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 21:39:40 +01:00
Connor McAdams
981403e50f
d3dcompiler: Move d3d10 reflection stubs into d3dcompiler.
...
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-06 16:03:31 +01:00
Zebediah Figura
bf31a900d1
d3dcompiler: Get rid of the "node" field from struct hlsl_ir_var.
...
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-08-14 17:41:01 +02:00
Zebediah Figura
32fd9ff479
d3dcompiler: Get rid of the "node" field from struct hlsl_ir_function_decl.
...
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-08-14 17:41:01 +02:00
Zebediah Figura
cf5ccf29a9
d3dcompiler: Introduce a new_binary_expr() helper.
...
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-08-13 01:26:41 +02:00
Zebediah Figura
b899965615
d3dcompiler: Introduce a new_unary_expr() helper.
...
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-08-13 01:26:41 +02:00
Zebediah Figura
b89f027bc1
d3dcompiler: Use new_cast() in implicit_conversion().
...
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-08-13 01:26:41 +02:00
Zebediah Figura
c22f64bceb
d3dcompiler: Store the arguments to a hlsl_ir_constructor as a fixed array.
...
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-08-09 20:38:28 +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
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
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
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
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
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
c37714342e
d3dcompiler: add_func_parameter is only used in hlsl.y.
2014-05-02 17:15:09 +02:00
Henri Verbeet
ffc01ec648
d3dcompiler: Make some string arrays const.
2014-05-02 13:45:43 +02:00
Henri Verbeet
aab72562d5
d3dcompiler: Get rid of a couple of redundant casts.
2013-09-04 11:37:09 +02: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
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