Commit Graph

22 Commits

Author SHA1 Message Date
Zebediah Figura 810d385b9e d3dcompiler: Move some declarations to bytecodewriter.c.
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-27 21:16:23 +01:00
Zebediah Figura cbb4a86218 d3dcompiler: Introduce an array_reserve() 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>
2020-03-27 21:16:23 +01:00
Zebediah Figura 5ba51ef26c d3dcompiler: Get rid of the "len" parameter to write_declarations().
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-27 21:16:23 +01:00
Zebediah Figura e04d149de8 d3dcompiler: Get rid of the init_*_dx9_writer() helpers.
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-27 21:16:23 +01:00
Zebediah Figura 8ea5b759ef d3dcompiler: Store a pointer to the bwriter_shader structure inside the bc_writer structure.
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-25 22:30:40 +01:00
Zebediah Figura 5a73777e32 d3dcompiler: Store the shader version using separate integer fields.
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-24 20:31:18 +01:00
Zebediah Figura 45aa147945 d3dcompiler: Get rid of the "dxversion" argument to SlWriteBytecode().
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-24 19:43:38 +01:00
Zebediah Figura b52497c53f d3dcompiler: Get rid of the "dxversion" argument to create_writer().
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-24 19:43:38 +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
Alexandre Julliard c8d34ef088 d3dcompiler: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 14:59:40 +02: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
Alexandre Julliard 8a9483400a d3dcompiler_43: Add a helper function for register token to avoid compiler warnings. 2015-06-26 20:35:07 +09:00
Matteo Bruni aa167f92d7 d3dcompiler: Free the relative addressing data of destination registers (Valgrind). 2014-08-26 16:44:47 +02:00
Andrew Talbot 80e4d899ed d3dcompiler_43: Avoid signed-unsigned integer comparisons. 2013-01-02 13:35:53 +01: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 233101b0ca d3dcompiler: Use a separate bytecodewriter debug channel. 2012-06-05 10:20:07 +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
Henri Verbeet 72d5b9ddab d3dcompiler: Move some bytecode output functions to bytecodewriter.c. 2010-10-18 19:08:37 +02:00
Matteo Bruni 422d57e2fc d3dcompiler: Don't store instruction length in DEF opcode in PS 1.x. 2010-10-14 17:54:52 +02:00
Francois Gouget aaf78f1a0b d3dcompiler_43: Don't use nameless unions in our private structures to avoid trouble with compilers where they are not supported. 2010-08-30 11:26:46 +02:00
Matteo Bruni 5dcb2e4b7e d3dcompiler: Move shader assembler implementation from d3dx9_36. 2010-08-25 17:34:24 +02:00