|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "wine/debug.h"#include "wine/list.h"#include "wine/rbtree.h"#include "wine/heap.h"#include "windef.h"#include "winbase.h"#include "objbase.h"#include "d3dcompiler.h"#include <assert.h>

Go to the source code of this file.
Classes | |
| struct | constant |
| struct | shader_reg |
| struct | instruction |
| struct | declaration |
| struct | samplerdecl |
| struct | bwriter_shader |
| struct | rel_reg |
| struct | src_regs |
| struct | asmparser_backend |
| struct | compilation_messages |
| struct | asm_parser |
| struct | bytecode_buffer |
| struct | bytecode_backend |
| struct | bytecode_backend::instr_handler_table |
| struct | bc_writer |
| struct | hlsl_type |
| struct | hlsl_struct_field |
| struct | source_location |
| struct | hlsl_ir_node |
| struct | reg_reservation |
| struct | hlsl_ir_var |
| struct | hlsl_ir_function |
| struct | hlsl_ir_function_decl |
| struct | hlsl_ir_if |
| struct | hlsl_ir_loop |
| struct | hlsl_ir_assignment |
| struct | hlsl_ir_expr |
| struct | hlsl_ir_jump |
| struct | hlsl_ir_swizzle |
| struct | hlsl_ir_deref |
| struct | hlsl_ir_constant |
| struct | hlsl_ir_constructor |
| struct | hlsl_scope |
| struct | parse_parameter |
| struct | parse_colon_attribute |
| struct | parse_initializer |
| struct | parse_variable_def |
| struct | parse_function |
| struct | parse_if_body |
| struct | hlsl_parse_ctx |
| struct | dxbc_section |
| struct | dxbc |
Typedefs | |
| typedef void(* | instr_writer) (struct bc_writer *This, const struct instruction *instr, struct bytecode_buffer *buffer) |
Variables | |
| struct asm_parser asm_ctx | DECLSPEC_HIDDEN |
| #define BWRITER_SM1_PS 0xffffu |
Definition at line 537 of file d3dcompiler_private.h.
| #define BWRITER_SM1_VS 0xfffeu |
Definition at line 536 of file d3dcompiler_private.h.
Definition at line 539 of file d3dcompiler_private.h.
| #define BWRITERSI_TEXLD_BIAS 2 |
Definition at line 516 of file d3dcompiler_private.h.
| #define BWRITERSI_TEXLD_PROJECT 1 |
Definition at line 515 of file d3dcompiler_private.h.
Definition at line 492 of file d3dcompiler_private.h.
Definition at line 493 of file d3dcompiler_private.h.
Definition at line 494 of file d3dcompiler_private.h.
Definition at line 495 of file d3dcompiler_private.h.
| #define BWRITERSP_WRITEMASK_ALL 0xf /* all */ |
Definition at line 496 of file d3dcompiler_private.h.
| #define BWRITERVS_NOSWIZZLE (BWRITERVS_X_X | BWRITERVS_Y_Y | BWRITERVS_Z_Z | BWRITERVS_W_W) |
Definition at line 565 of file d3dcompiler_private.h.
| #define BWRITERVS_SWIZZLE_MASK (0xFF << BWRITERVS_SWIZZLE_SHIFT) |
Definition at line 543 of file d3dcompiler_private.h.
| #define BWRITERVS_SWIZZLE_SHIFT 16 |
Definition at line 542 of file d3dcompiler_private.h.
| #define BWRITERVS_SWIZZLE_W (BWRITERVS_X_W | BWRITERVS_Y_W | BWRITERVS_Z_W | BWRITERVS_W_W) |
Definition at line 570 of file d3dcompiler_private.h.
| #define BWRITERVS_SWIZZLE_X (BWRITERVS_X_X | BWRITERVS_Y_X | BWRITERVS_Z_X | BWRITERVS_W_X) |
Definition at line 567 of file d3dcompiler_private.h.
| #define BWRITERVS_SWIZZLE_Y (BWRITERVS_X_Y | BWRITERVS_Y_Y | BWRITERVS_Z_Y | BWRITERVS_W_Y) |
Definition at line 568 of file d3dcompiler_private.h.
| #define BWRITERVS_SWIZZLE_Z (BWRITERVS_X_Z | BWRITERVS_Y_Z | BWRITERVS_Z_Z | BWRITERVS_W_Z) |
Definition at line 569 of file d3dcompiler_private.h.
Definition at line 540 of file d3dcompiler_private.h.
| #define BWRITERVS_W_W (3 << (BWRITERVS_SWIZZLE_SHIFT + 6)) |
Definition at line 563 of file d3dcompiler_private.h.
| #define BWRITERVS_W_X (0 << (BWRITERVS_SWIZZLE_SHIFT + 6)) |
Definition at line 560 of file d3dcompiler_private.h.
| #define BWRITERVS_W_Y (1 << (BWRITERVS_SWIZZLE_SHIFT + 6)) |
Definition at line 561 of file d3dcompiler_private.h.
| #define BWRITERVS_W_Z (2 << (BWRITERVS_SWIZZLE_SHIFT + 6)) |
Definition at line 562 of file d3dcompiler_private.h.
| #define BWRITERVS_X_W (3 << BWRITERVS_SWIZZLE_SHIFT) |
Definition at line 548 of file d3dcompiler_private.h.
| #define BWRITERVS_X_X (0 << BWRITERVS_SWIZZLE_SHIFT) |
Definition at line 545 of file d3dcompiler_private.h.
| #define BWRITERVS_X_Y (1 << BWRITERVS_SWIZZLE_SHIFT) |
Definition at line 546 of file d3dcompiler_private.h.
| #define BWRITERVS_X_Z (2 << BWRITERVS_SWIZZLE_SHIFT) |
Definition at line 547 of file d3dcompiler_private.h.
| #define BWRITERVS_Y_W (3 << (BWRITERVS_SWIZZLE_SHIFT + 2)) |
Definition at line 553 of file d3dcompiler_private.h.
| #define BWRITERVS_Y_X (0 << (BWRITERVS_SWIZZLE_SHIFT + 2)) |
Definition at line 550 of file d3dcompiler_private.h.
| #define BWRITERVS_Y_Y (1 << (BWRITERVS_SWIZZLE_SHIFT + 2)) |
Definition at line 551 of file d3dcompiler_private.h.
| #define BWRITERVS_Y_Z (2 << (BWRITERVS_SWIZZLE_SHIFT + 2)) |
Definition at line 552 of file d3dcompiler_private.h.
| #define BWRITERVS_Z_W (3 << (BWRITERVS_SWIZZLE_SHIFT + 4)) |
Definition at line 558 of file d3dcompiler_private.h.
| #define BWRITERVS_Z_X (0 << (BWRITERVS_SWIZZLE_SHIFT + 4)) |
Definition at line 555 of file d3dcompiler_private.h.
| #define BWRITERVS_Z_Y (1 << (BWRITERVS_SWIZZLE_SHIFT + 4)) |
Definition at line 556 of file d3dcompiler_private.h.
| #define BWRITERVS_Z_Z (2 << (BWRITERVS_SWIZZLE_SHIFT + 4)) |
Definition at line 557 of file d3dcompiler_private.h.
| #define BYTECODEBUFFER_INITIAL_SIZE 32 |
Definition at line 299 of file d3dcompiler_private.h.
| #define COBJMACROS |
Definition at line 30 of file d3dcompiler_private.h.
| #define D3DERR_INVALIDCALL 0x8876086c |
Definition at line 44 of file d3dcompiler_private.h.
| #define HLSL_MODIFIER_COLUMN_MAJOR 0x00000400 |
Definition at line 739 of file d3dcompiler_private.h.
| #define HLSL_MODIFIER_CONST 0x00000100 |
Definition at line 737 of file d3dcompiler_private.h.
| #define HLSL_MODIFIER_IN 0x00000800 |
Definition at line 740 of file d3dcompiler_private.h.
| #define HLSL_MODIFIER_OUT 0x00001000 |
Definition at line 741 of file d3dcompiler_private.h.
| #define HLSL_MODIFIER_PRECISE 0x00000004 |
Definition at line 731 of file d3dcompiler_private.h.
| #define HLSL_MODIFIER_ROW_MAJOR 0x00000200 |
Definition at line 738 of file d3dcompiler_private.h.
| #define HLSL_MODIFIERS_COMPARISON_MASK (HLSL_MODIFIER_ROW_MAJOR | HLSL_MODIFIER_COLUMN_MAJOR) |
Definition at line 747 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_EXTERN 0x00000001 |
Definition at line 729 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_GROUPSHARED 0x00000010 |
Definition at line 733 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_NOINTERPOLATION 0x00000002 |
Definition at line 730 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_SHARED 0x00000008 |
Definition at line 732 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_STATIC 0x00000020 |
Definition at line 734 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_UNIFORM 0x00000040 |
Definition at line 735 of file d3dcompiler_private.h.
| #define HLSL_STORAGE_VOLATILE 0x00000080 |
Definition at line 736 of file d3dcompiler_private.h.
| #define HLSL_TYPE_MODIFIERS_MASK |
Definition at line 743 of file d3dcompiler_private.h.
| #define INSTRARRAY_INITIAL_SIZE 8 |
Definition at line 118 of file d3dcompiler_private.h.
| #define MAKE_TAG | ( | ch0, | |
| ch1, | |||
| ch2, | |||
| ch3 | |||
| ) |
Definition at line 1175 of file d3dcompiler_private.h.
| #define MAX_SRC_REGS 4 |
Definition at line 190 of file d3dcompiler_private.h.
| #define MESSAGEBUFFER_INITIAL_SIZE 256 |
Definition at line 234 of file d3dcompiler_private.h.
Definition at line 285 of file d3dcompiler_private.h.
| #define SWIZZLE_ERR ~0U |
Definition at line 367 of file d3dcompiler_private.h.
| #define T0_REG 2 |
Definition at line 591 of file d3dcompiler_private.h.
| #define T1_REG 3 |
Definition at line 592 of file d3dcompiler_private.h.
| #define T2_REG 4 |
Definition at line 593 of file d3dcompiler_private.h.
| #define T3_REG 5 |
Definition at line 594 of file d3dcompiler_private.h.
Definition at line 1178 of file d3dcompiler_private.h.
Definition at line 1179 of file d3dcompiler_private.h.
Definition at line 1180 of file d3dcompiler_private.h.
Definition at line 1182 of file d3dcompiler_private.h.
Definition at line 1181 of file d3dcompiler_private.h.
Definition at line 1183 of file d3dcompiler_private.h.
Definition at line 1184 of file d3dcompiler_private.h.
Definition at line 1185 of file d3dcompiler_private.h.
Definition at line 1186 of file d3dcompiler_private.h.
Definition at line 1187 of file d3dcompiler_private.h.
Definition at line 1188 of file d3dcompiler_private.h.
Definition at line 1189 of file d3dcompiler_private.h.
Definition at line 1190 of file d3dcompiler_private.h.
| typedef void(* instr_writer) (struct bc_writer *This, const struct instruction *instr, struct bytecode_buffer *buffer) |
Definition at line 312 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| BWRITER_COMPARISON_NONE | |
| BWRITER_COMPARISON_GT | |
| BWRITER_COMPARISON_EQ | |
| BWRITER_COMPARISON_GE | |
| BWRITER_COMPARISON_LT | |
| BWRITER_COMPARISON_NE | |
| BWRITER_COMPARISON_LE | |
Definition at line 58 of file d3dcompiler_private.h.
Definition at line 572 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| BWRITERSTT_UNKNOWN | |
| BWRITERSTT_1D | |
| BWRITERSTT_2D | |
| BWRITERSTT_CUBE | |
| BWRITERSTT_VOLUME | |
Definition at line 506 of file d3dcompiler_private.h.
Definition at line 371 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| BWRITERSPDM_NONE | |
| BWRITERSPDM_SATURATE | |
| BWRITERSPDM_PARTIALPRECISION | |
| BWRITERSPDM_MSAMPCENTROID | |
Definition at line 498 of file d3dcompiler_private.h.
Definition at line 463 of file d3dcompiler_private.h.
Definition at line 518 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| BWRITERSRO_POSITION | |
| BWRITERSRO_FOG | |
| BWRITERSRO_POINT_SIZE | |
Definition at line 485 of file d3dcompiler_private.h.
Definition at line 637 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_LEVEL_ERROR | |
| HLSL_LEVEL_WARNING | |
| HLSL_LEVEL_NOTE | |
Definition at line 1058 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_IR_DEREF_VAR | |
| HLSL_IR_DEREF_ARRAY | |
| HLSL_IR_DEREF_RECORD | |
Definition at line 907 of file d3dcompiler_private.h.
Definition at line 810 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_IR_JUMP_BREAK | |
| HLSL_IR_JUMP_CONTINUE | |
| HLSL_IR_JUMP_DISCARD | |
| HLSL_IR_JUMP_RETURN | |
Definition at line 885 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_IR_ASSIGNMENT | |
| HLSL_IR_CONSTANT | |
| HLSL_IR_CONSTRUCTOR | |
| HLSL_IR_DEREF | |
| HLSL_IR_EXPR | |
| HLSL_IR_IF | |
| HLSL_IR_LOOP | |
| HLSL_IR_JUMP | |
| HLSL_IR_SWIZZLE | |
Definition at line 707 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_COLUMN_MAJOR | |
| HLSL_ROW_MAJOR | |
Definition at line 663 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_SAMPLER_DIM_GENERIC | |
| HLSL_SAMPLER_DIM_1D | |
| HLSL_SAMPLER_DIM_2D | |
| HLSL_SAMPLER_DIM_3D | |
| HLSL_SAMPLER_DIM_CUBE | |
Definition at line 654 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| HLSL_CLASS_SCALAR | |
| HLSL_CLASS_VECTOR | |
| HLSL_CLASS_MATRIX | |
| HLSL_CLASS_LAST_NUMERIC | |
| HLSL_CLASS_STRUCT | |
| HLSL_CLASS_ARRAY | |
| HLSL_CLASS_OBJECT | |
Definition at line 626 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| ASSIGN_OP_ASSIGN | |
| ASSIGN_OP_ADD | |
| ASSIGN_OP_SUB | |
| ASSIGN_OP_MUL | |
| ASSIGN_OP_DIV | |
| ASSIGN_OP_MOD | |
| ASSIGN_OP_LSHIFT | |
| ASSIGN_OP_RSHIFT | |
| ASSIGN_OP_AND | |
| ASSIGN_OP_OR | |
| ASSIGN_OP_XOR | |
Definition at line 1021 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| PARSE_SUCCESS | |
| PARSE_WARN | |
| PARSE_ERR | |
Definition at line 236 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| UNARY_OP_PLUS | |
| UNARY_OP_MINUS | |
| UNARY_OP_LOGICNOT | |
| UNARY_OP_BITNOT | |
Definition at line 1013 of file d3dcompiler_private.h.
| Enumerator | |
|---|---|
| ST_UNKNOWN | |
| ST_VERTEX | |
| ST_PIXEL | |
Definition at line 51 of file d3dcompiler_private.h.
| BOOL add_constB | ( | struct bwriter_shader * | shader, |
| DWORD | reg, | ||
| BOOL | x | ||
| ) |
Definition at line 178 of file bytecodewriter.c.
Referenced by asmparser_constB().
Definition at line 106 of file bytecodewriter.c.
Referenced by asmparser_constF().
Definition at line 142 of file bytecodewriter.c.
Referenced by asmparser_constI().
| BOOL add_declaration | ( | struct hlsl_scope * | scope, |
| struct hlsl_ir_var * | decl, | ||
| BOOL | local_var | ||
| ) |
Definition at line 761 of file utils.c.
| void add_function_decl | ( | struct wine_rb_tree * | funcs, |
| char * | name, | ||
| struct hlsl_ir_function_decl * | decl, | ||
| BOOL | intrinsic | ||
| ) |
Definition at line 2282 of file utils.c.
| BOOL add_instruction | ( | struct bwriter_shader * | shader, |
| struct instruction * | instr | ||
| ) |
Definition at line 75 of file bytecodewriter.c.
Referenced by asmparser_instr(), asmparser_sincos(), asmparser_texcoord(), asmparser_texcrd(), asmparser_texhelper(), asmparser_texkill(), and asmparser_texld14().
| struct instruction * alloc_instr | ( | unsigned int | srcs | ) |
Definition at line 44 of file bytecodewriter.c.
Referenced by asmparser_instr(), asmparser_sincos(), asmparser_texcoord(), asmparser_texcrd(), asmparser_texhelper(), asmparser_texkill(), and asmparser_texld14().
Referenced by asmparser_coissue_supported(), asmparser_coissue_unsupported(), asmparser_dcl_input(), asmparser_dcl_input_unsupported(), asmparser_dcl_output(), asmparser_dcl_output_unsupported(), asmparser_dcl_sampler(), asmparser_dcl_sampler_unsupported(), asmparser_dstreg_ps_1_0123(), asmparser_dstreg_ps_1_4(), asmparser_dstreg_ps_2(), asmparser_dstreg_ps_2_x(), asmparser_dstreg_ps_3(), asmparser_dstreg_vs_1(), asmparser_dstreg_vs_2(), asmparser_dstreg_vs_3(), asmparser_instr(), asmparser_predicate_unsupported(), asmparser_sincos(), asmparser_srcreg_ps_1_0123(), asmparser_srcreg_ps_1_4(), asmparser_srcreg_ps_2(), asmparser_srcreg_ps_2_x(), asmparser_srcreg_ps_3(), asmparser_srcreg_vs_1(), asmparser_srcreg_vs_2(), asmparser_srcreg_vs_3(), asmparser_texcoord(), asmparser_texcrd(), asmparser_texld14(), check_abs_srcmod(), check_legacy_srcmod(), check_loop_swizzle(), check_ps_dstmod(), and check_shift_dstmod().
|
inlinestatic |
Definition at line 1093 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), and free_instr().
Definition at line 929 of file utils.c.
Referenced by clone_hlsl_type().
Definition at line 883 of file utils.c.
Referenced by compare_hlsl_types(), compatible_data_types(), expr_common_type(), implicit_compatible_data_types(), implicit_conversion(), make_assignment(), and new_expr().
Definition at line 1007 of file utils.c.
| void compilation_message | ( | struct compilation_messages * | msg, |
| const char * | fmt, | ||
| __ms_va_list | args | ||
| ) |
Definition at line 719 of file utils.c.
Definition at line 857 of file utils.c.
Referenced by compatible_data_types(), components_count_type(), expr_compatible_data_types(), and implicit_compatible_data_types().
|
inlinestatic |
Definition at line 1081 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), and free_instr().
|
inlinestatic |
Definition at line 1105 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), and free_instr().
| void create_ps10_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1426 of file asmparser.c.
| void create_ps11_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1442 of file asmparser.c.
| void create_ps12_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1458 of file asmparser.c.
| void create_ps13_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1474 of file asmparser.c.
| void create_ps14_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1490 of file asmparser.c.
| void create_ps20_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1506 of file asmparser.c.
| void create_ps2x_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1522 of file asmparser.c.
| void create_ps30_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1538 of file asmparser.c.
| void create_vs10_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1347 of file asmparser.c.
| void create_vs11_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1363 of file asmparser.c.
| void create_vs20_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1379 of file asmparser.c.
| void create_vs2x_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1395 of file asmparser.c.
| void create_vs30_parser | ( | struct asm_parser * | ret | ) |
Definition at line 1411 of file asmparser.c.
Definition at line 147 of file d3dcompiler_private.h.
Referenced by add_constB(), add_constF(), add_constI(), add_function_decl(), add_instruction(), alloc_instr(), allocate_buffer(), clone_hlsl_type(), compilation_message(), create_ps10_parser(), create_ps11_parser(), create_ps12_parser(), create_ps13_parser(), create_ps14_parser(), create_ps20_parser(), create_ps2x_parser(), create_ps30_parser(), create_vs10_parser(), create_vs11_parser(), create_vs20_parser(), create_vs2x_parser(), create_vs30_parser(), create_writer(), d3dcompiler_strdup(), make_assignment(), new_expr(), new_func_decl(), new_hlsl_type(), new_record_deref(), new_var_deref(), push_scope(), record_declaration(), and record_sampler().
Definition at line 157 of file d3dcompiler_private.h.
Referenced by add_function_decl(), alloc_instr(), allocate_buffer(), clone_hlsl_type(), create_writer(), free_declaration(), free_function(), free_function_decl(), free_hlsl_type(), free_instr_list(), free_ir_assignment(), free_ir_constant(), free_ir_constructor(), free_ir_deref(), free_ir_expr(), free_ir_if(), free_ir_jump(), free_ir_swizzle(), make_assignment(), new_expr(), SlDeleteShader(), and SlWriteBytecode().
Definition at line 152 of file d3dcompiler_private.h.
Referenced by add_constB(), add_constF(), add_constI(), add_instruction(), compilation_message(), put_dword(), record_declaration(), and record_sampler().
Definition at line 162 of file d3dcompiler_private.h.
Referenced by clone_hlsl_type().
| const char * debug_d3dcompiler_d3d_blob_part | ( | D3D_BLOB_PART | part | ) |
Definition at line 106 of file utils.c.
Referenced by check_blob_part(), d3dcompiler_get_blob_part(), and D3DGetBlobPart().
| const char * debug_d3dcompiler_shader_variable_class | ( | D3D_SHADER_VARIABLE_CLASS | c | ) |
Definition at line 32 of file utils.c.
Referenced by d3dcompiler_parse_type().
| const char * debug_d3dcompiler_shader_variable_type | ( | D3D_SHADER_VARIABLE_TYPE | t | ) |
Definition at line 50 of file utils.c.
Referenced by d3dcompiler_parse_type().
| void debug_dump_ir_function_decl | ( | const struct hlsl_ir_function_decl * | func | ) |
Definition at line 2086 of file utils.c.
Definition at line 1695 of file utils.c.
Referenced by components_count_type(), debug_dump_ir_constructor(), debug_dump_ir_var(), debug_expr_op(), implicit_conversion(), make_assignment(), and new_expr().
Definition at line 1722 of file utils.c.
Referenced by debug_dump_ir_var().
Definition at line 401 of file utils.c.
Referenced by asmparser_instr().
Definition at line 153 of file utils.c.
Referenced by asmparser_instr(), and check_ps_dstmod().
| const char * debug_print_dstreg | ( | const struct shader_reg * | reg | ) |
Definition at line 330 of file utils.c.
Referenced by asmparser_dstreg_ps_1_0123(), asmparser_dstreg_ps_1_4(), asmparser_dstreg_ps_2(), asmparser_dstreg_ps_2_x(), asmparser_dstreg_ps_3(), asmparser_dstreg_vs_1(), asmparser_dstreg_vs_2(), asmparser_dstreg_vs_3(), and asmparser_instr().
Definition at line 416 of file utils.c.
Referenced by asmparser_instr(), and call_instr_handler().
Definition at line 178 of file utils.c.
Referenced by asmparser_instr().
Definition at line 128 of file utils.c.
Referenced by check_abs_srcmod(), and check_legacy_srcmod().
| const char * debug_print_srcreg | ( | const struct shader_reg * | reg | ) |
Definition at line 337 of file utils.c.
Referenced by asmparser_instr(), asmparser_srcreg_ps_1_0123(), asmparser_srcreg_ps_1_4(), asmparser_srcreg_ps_2(), asmparser_srcreg_ps_2_x(), asmparser_srcreg_ps_3(), asmparser_srcreg_vs_1(), asmparser_srcreg_vs_2(), and asmparser_srcreg_vs_3().
|
inlinestatic |
Definition at line 1075 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), free_instr(), and make_assignment().
Definition at line 529 of file utils.c.
Referenced by d3dcompiler_get_blob_part(), d3dcompiler_strip_shader(), and dxbc_parse().
Definition at line 648 of file utils.c.
Referenced by d3dcompiler_get_blob_part(), d3dcompiler_shader_reflection_init(), and d3dcompiler_strip_shader().
Definition at line 557 of file utils.c.
Referenced by d3dcompiler_get_blob_part(), d3dcompiler_strip_shader(), and dxbc_parse().
Definition at line 577 of file utils.c.
Referenced by d3dcompiler_get_blob_part(), d3dcompiler_shader_reflection_init(), and d3dcompiler_strip_shader().
Definition at line 655 of file utils.c.
Referenced by d3dcompiler_get_blob_part(), and d3dcompiler_strip_shader().
|
inlinestatic |
Definition at line 1069 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), free_instr(), and new_cast().
| void free_declaration | ( | struct hlsl_ir_var * | decl | ) |
Definition at line 798 of file utils.c.
| void free_function_rb | ( | struct wine_rb_entry * | entry, |
| void * | context | ||
| ) |
| void free_instr | ( | struct hlsl_ir_node * | node | ) |
Definition at line 2224 of file utils.c.
Referenced by free_instr_list(), free_ir_assignment(), free_ir_constructor(), free_ir_deref(), free_ir_expr(), free_ir_if(), free_ir_jump(), free_ir_swizzle(), and make_assignment().
Definition at line 2122 of file utils.c.
Referenced by free_function_decl(), free_ir_expr(), and free_ir_if().
Definition at line 841 of file utils.c.
Referenced by get_type(), type_apicontract_declare(), type_coclass_declare(), type_delegate_declare(), type_dispinterface_declare(), type_interface_declare(), type_module_declare(), type_parameterized_delegate_declare(), type_parameterized_interface_declare(), and type_runtimeclass_declare().
| struct hlsl_ir_var * get_variable | ( | struct hlsl_scope * | scope, |
| const char * | name | ||
| ) |
Definition at line 784 of file utils.c.
Referenced by get_variable().
| void WINAPIV hlsl_report_message | ( | const char * | filename, |
| DWORD | line, | ||
| DWORD | column, | ||
| enum hlsl_error_level | level, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
Referenced by expr_common_type(), make_assignment(), and new_expr().
|
inlinestatic |
Definition at line 1111 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), and free_instr().
| void init_functions_tree | ( | struct wine_rb_tree * | funcs | ) |
Definition at line 1662 of file utils.c.
|
inlinestatic |
Definition at line 1087 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), and free_instr().
|
inlinestatic |
Definition at line 1117 of file d3dcompiler_private.h.
| struct hlsl_ir_node * make_assignment | ( | struct hlsl_ir_node * | left, |
| enum parse_assign_op | assign_op, | ||
| DWORD | writemask, | ||
| struct hlsl_ir_node * | right | ||
| ) |
Definition at line 1407 of file utils.c.
|
inlinestatic |
Definition at line 1168 of file d3dcompiler_private.h.
Referenced by make_assignment().
| struct hlsl_ir_expr * new_cast | ( | struct hlsl_ir_node * | node, |
| struct hlsl_type * | type, | ||
| struct source_location * | loc | ||
| ) |
Definition at line 1343 of file utils.c.
Referenced by implicit_conversion().
| struct hlsl_ir_expr * new_expr | ( | enum hlsl_ir_expr_op | op, |
| struct hlsl_ir_node ** | operands, | ||
| struct source_location * | loc | ||
| ) |
Definition at line 1286 of file utils.c.
Referenced by new_binary_expr(), and new_unary_expr().
| struct hlsl_ir_function_decl * new_func_decl | ( | struct hlsl_type * | return_type, |
| struct list * | parameters | ||
| ) |
Definition at line 1562 of file utils.c.
| struct hlsl_type * new_hlsl_type | ( | const char * | name, |
| enum hlsl_type_class | type_class, | ||
| enum hlsl_base_type | base_type, | ||
| unsigned | dimx, | ||
| unsigned | dimy | ||
| ) |
Definition at line 806 of file utils.c.
Referenced by expr_common_type(), make_assignment(), and new_array_type().
| struct hlsl_ir_deref * new_record_deref | ( | struct hlsl_ir_node * | record, |
| struct hlsl_struct_field * | field | ||
| ) |
|
inlinestatic |
| struct hlsl_ir_deref * new_var_deref | ( | struct hlsl_ir_var * | var | ) |
Definition at line 1354 of file utils.c.
Referenced by make_assignment().
| struct bwriter_shader * parse_asm_shader | ( | char ** | messages | ) |
| struct bwriter_shader * parse_hlsl_shader | ( | const char * | text, |
| enum shader_type | type, | ||
| DWORD | major, | ||
| DWORD | minor, | ||
| const char * | entrypoint, | ||
| char ** | messages | ||
| ) |
Referenced by compile_shader().
| BOOL pop_scope | ( | struct hlsl_parse_ctx * | ctx | ) |
Definition at line 1551 of file utils.c.
| void push_scope | ( | struct hlsl_parse_ctx * | ctx | ) |
Definition at line 1534 of file utils.c.
Definition at line 1212 of file d3dcompiler_private.h.
Referenced by d3dcompiler_parse_rdef(), d3dcompiler_parse_shdr(), d3dcompiler_parse_signature(), d3dcompiler_parse_stat(), d3dcompiler_parse_type(), d3dcompiler_parse_type_members(), d3dcompiler_parse_variables(), dxbc_parse(), and skip_dword_unknown().
| BOOL record_declaration | ( | struct bwriter_shader * | shader, |
| DWORD | usage, | ||
| DWORD | usage_idx, | ||
| DWORD | mod, | ||
| BOOL | output, | ||
| DWORD | regnum, | ||
| DWORD | writemask, | ||
| BOOL | builtin | ||
| ) |
Definition at line 211 of file bytecodewriter.c.
Referenced by asmparser_dcl_input(), asmparser_dcl_input_ps_2(), asmparser_dcl_output(), gen_oldps_input(), and gen_oldvs_output().
Definition at line 262 of file bytecodewriter.c.
Referenced by asmparser_dcl_sampler().
|
inlinestatic |
Definition at line 290 of file d3dcompiler_private.h.
Referenced by asmparser_coissue_supported(), asmparser_coissue_unsupported(), asmparser_constB(), asmparser_constF(), asmparser_constI(), asmparser_dcl_input(), asmparser_dcl_input_ps_2(), asmparser_dcl_input_unsupported(), asmparser_dcl_output(), asmparser_dcl_output_unsupported(), asmparser_dcl_sampler(), asmparser_dcl_sampler_unsupported(), asmparser_dstreg_ps_1_0123(), asmparser_dstreg_ps_1_4(), asmparser_dstreg_ps_2(), asmparser_dstreg_ps_2_x(), asmparser_dstreg_ps_3(), asmparser_dstreg_vs_1(), asmparser_dstreg_vs_2(), asmparser_dstreg_vs_3(), asmparser_instr(), asmparser_predicate_unsupported(), asmparser_sincos(), asmparser_srcreg_ps_1_0123(), asmparser_srcreg_ps_1_4(), asmparser_srcreg_ps_2(), asmparser_srcreg_ps_2_x(), asmparser_srcreg_ps_3(), asmparser_srcreg_vs_1(), asmparser_srcreg_vs_2(), asmparser_srcreg_vs_3(), asmparser_texcoord(), asmparser_texcrd(), asmparser_texhelper(), asmparser_texkill(), asmparser_texld14(), check_abs_srcmod(), check_legacy_srcmod(), check_loop_swizzle(), check_ps_dstmod(), check_shift_dstmod(), create_ps10_parser(), create_ps11_parser(), create_ps12_parser(), create_ps13_parser(), create_ps14_parser(), create_ps20_parser(), create_ps2x_parser(), create_ps30_parser(), create_vs10_parser(), create_vs11_parser(), create_vs20_parser(), create_vs2x_parser(), and create_vs30_parser().
Definition at line 510 of file utils.c.
Referenced by d3dcompiler_parse_rdef(), d3dcompiler_parse_signature(), d3dcompiler_parse_stat(), d3dcompiler_parse_type(), d3dcompiler_parse_variables(), and dxbc_parse().
| struct bwriter_shader * SlAssembleShader | ( | const char * | text, |
| char ** | messages | ||
| ) |
Referenced by assemble_shader().
| void SlDeleteShader | ( | struct bwriter_shader * | shader | ) |
Definition at line 2543 of file bytecodewriter.c.
Referenced by assemble_shader(), and compile_shader().
| HRESULT SlWriteBytecode | ( | const struct bwriter_shader * | shader, |
| int | dxversion, | ||
| DWORD ** | result, | ||
| DWORD * | size | ||
| ) |
Definition at line 2473 of file bytecodewriter.c.
Referenced by assemble_shader(), and compile_shader().
|
inlinestatic |
Definition at line 1099 of file d3dcompiler_private.h.
Referenced by debug_dump_instr(), and free_instr().
Definition at line 1218 of file d3dcompiler_private.h.
Referenced by dxbc_write_blob(), and write_dword_unknown().
Definition at line 289 of file d3dcompiler_private.h.