Commit Graph

147 Commits

Author SHA1 Message Date
Jactry Zeng 622422e67b d3dcompiler: Implement D3DReadFileToBlob().
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 16:42:37 -05: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
Gerald Pfeifer 8bb4525ee0 d3dcompiler_43: Define BWRITER_SM1_VS and BWRITER_SM1_PS as unsigned constants. 2015-08-17 14:40:37 +09:00
Matteo Bruni bd7e83f292 d3dcompiler: Parse ": register()" syntax. 2015-06-19 19:11:03 +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
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
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
Christian Costa 6e77816301 d3dcompiler: Add a LUT to find compilation targets info. 2013-05-13 11:08:36 +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 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 5fc67931b8 d3dcompiler: Parse "while" loops. 2012-09-21 18:29:26 +02:00
Matteo Bruni ca701b7d69 d3dcompiler: Parse casts. 2012-09-19 23:54:25 +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 47e931823c d3dcompiler: Only a few modifiers are relevant in type comparison. 2012-09-18 19:05:36 +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 f2b5f71218 d3dcompiler: Parse unary and prefix operators. 2012-07-20 21:30:06 +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 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 29ba39face d3dcompiler: Carry around both shader major and minor version. 2012-07-10 11:00:53 -05: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 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 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
Francois Gouget 4d29b9716e d3dcompiler_43: Make write_dword_unknown() static. 2011-05-03 14:38:06 +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 4d54360765 d3dcompiler: Move D3DCreateBlob() to blob.c. 2011-04-04 13:43:01 +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
Rico Schüller 5861deaefc d3dcompiler: Move some code from header to source file. 2011-03-02 12:50:58 +01:00
Rico Schüller a300481187 d3dcompiler: Parse member types. 2011-03-01 13:21:58 +01:00
Rico Schüller e8c6ea220d d3dcompiler: Implement ID3D11ShaderReflectionVariable::GetBuffer(). 2011-02-22 12:28:59 +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 3f6c54f263 d3dcompiler: Parse reflection constant buffers. 2011-02-21 12:58:50 +01:00
Rico Schüller 5ad824a178 d3dcompiler: Parse bound resources. 2011-02-14 12:26:00 +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 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 f8e4771be4 d3dcompiler: Parse ISGN in the reflection interface. 2010-12-21 15:49:19 +01:00
Rico Schüller 984ed6e9ac d3dcompiler: Parse reflection STAT tag. 2010-12-21 15:49:00 +01:00
Rico Schüller 8f08d38520 d3dcompiler: Use an iface instead of a vtbl pointer in d3dcompiler_shader_reflection. 2010-12-21 15:48:40 +01:00
Rico Schüller 806961ec28 d3dcompiler: Use an iface instead of a vtbl pointer in d3dcompiler_blob. 2010-12-21 15:48:33 +01:00
Rico Schüller cc6699f09d d3dcompiler: Handle TAG_OSG5 in D3DGetBlobPart(). 2010-12-13 12:43:31 +01:00
Rico Schüller 5b2286a5bd d3dcompiler: Add initial reflection parsing. 2010-12-09 19:27:11 +01:00
Rico Schüller a7cf4d16fa d3dcompiler: Add stub ID3D11ShaderReflection interface. 2010-11-02 13:49:30 +01:00
Henri Verbeet 1f437a9349 d3dcompiler: Mark some internal symbols hidden. 2010-10-18 19:08:38 +02:00
Henri Verbeet 72d5b9ddab d3dcompiler: Move some bytecode output functions to bytecodewriter.c. 2010-10-18 19:08:37 +02:00
Henri Verbeet ac8f8c02a6 d3dcompiler: Remove some stray tabs. 2010-10-15 16:20:06 +02:00
Rico Schüller 2c9b24b054 d3dcompiler: Implement D3DStripShader(). 2010-10-13 16:29:46 +02:00
Rico Schüller a36f51b1b2 d3dcompiler: Add D3D_BLOB_XNA_SHADER to D3DGetBlobPart(). 2010-10-13 16:29:23 +02:00
Rico Schüller cdfdfe59ee d3dcompiler: Add D3D_BLOB_XNA_PREPASS_SHADER to D3DGetBlobPart(). 2010-10-13 16:29:19 +02:00
Rico Schüller 976b4e96bd d3dcompiler: Add D3D_BLOB_LEGACY_SHADER to D3DGetBlobPart(). 2010-10-13 16:29:14 +02:00
Rico Schüller 3cbb72667b d3dcompiler: Add D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB to D3DGetBlobPart(). 2010-10-13 16:28:59 +02:00
Rico Schüller d52f2b63c0 d3dcompiler: Implement D3DGetDebugInfo(). 2010-10-07 15:58:11 +02:00
Rico Schüller 164dcc7973 d3dcompiler: Implement D3DGetOutputSignatureBlob(). 2010-10-07 15:58:11 +02:00
Rico Schüller 5946201d19 d3dcompiler: Implement D3DGetInputSignatureBlob(). 2010-10-07 15:58:11 +02:00
Rico Schüller ec698dea66 d3dcompiler: Implement D3DGetBlobPart(). 2010-10-07 15:58:11 +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
Francois Gouget ea67356998 d3dcompiler_43: Make debug_print_{relarg,swizzle,writemask}() static. 2010-08-26 13:40:29 +02:00
Matteo Bruni 5dcb2e4b7e d3dcompiler: Move shader assembler implementation from d3dx9_36. 2010-08-25 17:34:24 +02:00
Rico Schüller d511f18f9e d3dcompiler: Implement D3DCreateBlob(). 2010-08-17 11:42:26 +02:00