/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_disasm.c | 39 struct instr { struct 41 uint32_t opc : 6; 42 uint32_t cond : 5; 43 uint32_t sat : 1; 44 uint32_t dst_use : 1; 45 uint32_t dst_amode : 3; 46 uint32_t dst_reg : 7; 47 uint32_t dst_comps : 4; 48 uint32_t tex_id : 5; 51 uint32_t tex_amode : 3; [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_search_helpers.h | 36 is_pos_power_of_two(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_pos_power_of_two() 68 is_neg_power_of_two(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_neg_power_of_two() 124 is_zero_to_one(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_zero_to_one() 155 is_gt_0_and_lt_1(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_gt_0_and_lt_1() 180 is_not_const_zero(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_not_const_zero() 210 is_ult_0xfffc07fc(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_ult_0xfffc07fc() 230 is_not_const(UNUSED struct hash_table *ht, const nir_alu_instr *instr, in is_not_const() 238 is_not_fmul(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, in is_not_fmul() 254 is_fmul(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, in is_fmul() 270 is_fsign(const nir_alu_instr *instr, unsigned src, in is_fsign() [all …]
|
D | nir_opt_shrink_vectors.c | 74 opt_shrink_vectors_alu(nir_builder *b, nir_alu_instr *instr) in opt_shrink_vectors_alu() 170 opt_shrink_vectors_image_store(nir_builder *b, nir_intrinsic_instr *instr) in opt_shrink_vectors_image_store() 194 opt_shrink_vectors_intrinsic(nir_builder *b, nir_intrinsic_instr *instr, bool shrink_image_store) in opt_shrink_vectors_intrinsic() 258 opt_shrink_vectors_load_const(nir_load_const_instr *instr) in opt_shrink_vectors_load_const() 264 opt_shrink_vectors_ssa_undef(nir_ssa_undef_instr *instr) in opt_shrink_vectors_ssa_undef() 270 opt_shrink_vectors_instr(nir_builder *b, nir_instr *instr, bool shrink_image_store) in opt_shrink_vectors_instr()
|
D | nir_lower_discard_or_demote.c | 29 nir_lower_discard_to_demote_instr(nir_builder *b, nir_instr *instr, void *data) in nir_lower_discard_to_demote_instr() 51 nir_lower_demote_to_discard_instr(nir_builder *b, nir_instr *instr, void *data) in nir_lower_demote_to_discard_instr() 80 insert_is_helper(nir_builder *b, nir_instr *instr) in insert_is_helper() 97 nir_lower_load_helper_to_is_helper(nir_builder *b, nir_instr *instr, void *data) in nir_lower_load_helper_to_is_helper()
|
D | nir_lower_mediump.c | 32 get_io_intrinsic(nir_instr *instr, nir_variable_mode modes, in get_io_intrinsic() 358 is_n_to_m_conversion(nir_instr *instr, unsigned n, nir_op m) in is_n_to_m_conversion() 368 is_f16_to_f32_conversion(nir_instr *instr) in is_f16_to_f32_conversion() 374 is_f32_to_f16_conversion(nir_instr *instr) in is_f32_to_f16_conversion() 382 is_i16_to_i32_conversion(nir_instr *instr) in is_i16_to_i32_conversion() 388 is_u16_to_u32_conversion(nir_instr *instr) in is_u16_to_u32_conversion() 394 is_i32_to_i16_conversion(nir_instr *instr) in is_i32_to_i16_conversion() 400 replace_with_mov(nir_builder *b, nir_instr *instr, nir_src *src, in replace_with_mov() 473 nir_instr *instr = src_alu->src[comp].src.ssa->parent_instr; in nir_fold_16bit_sampler_conversions() local 492 nir_instr *instr = new_vec->src[comp].src.ssa->parent_instr; in nir_fold_16bit_sampler_conversions() local
|
D | nir_instr_set.c | 43 instr_each_src_and_dest_is_ssa(const nir_instr *instr) in instr_each_src_and_dest_is_ssa() 59 instr_can_rewrite(const nir_instr *instr) in instr_can_rewrite() 110 hash_alu(uint32_t hash, const nir_alu_instr *instr) in hash_alu() 152 hash_deref(uint32_t hash, const nir_deref_instr *instr) in hash_deref() 192 hash_load_const(uint32_t hash, const nir_load_const_instr *instr) in hash_load_const() 218 hash_phi(uint32_t hash, const nir_phi_instr *instr) in hash_phi() 241 hash_intrinsic(uint32_t hash, const nir_intrinsic_instr *instr) in hash_intrinsic() 260 hash_tex(uint32_t hash, const nir_tex_instr *instr) in hash_tex() 297 const nir_instr *instr = data; in hash_instr() local 761 nir_instr_get_dest_ssa_def(nir_instr *instr) in nir_instr_get_dest_ssa_def() [all …]
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/ |
D | instr.c | 33 gpir_instr *instr = rzalloc(block, gpir_instr); in gpir_instr_create() local 52 static gpir_node *gpir_instr_get_the_other_acc_node(gpir_instr *instr, int slot) in gpir_instr_get_the_other_acc_node() 62 static bool gpir_instr_check_acc_same_op(gpir_instr *instr, gpir_node *node, int slot) in gpir_instr_check_acc_same_op() 75 static int gpir_instr_get_consume_slot(gpir_instr *instr, gpir_node *node) in gpir_instr_get_consume_slot() 90 static bool gpir_instr_insert_alu_check(gpir_instr *instr, gpir_node *node) in gpir_instr_insert_alu_check() 159 static void gpir_instr_remove_alu(gpir_instr *instr, gpir_node *node) in gpir_instr_remove_alu() 184 static bool gpir_instr_insert_reg0_check(gpir_instr *instr, gpir_node *node) in gpir_instr_insert_reg0_check() 208 static void gpir_instr_remove_reg0(gpir_instr *instr, gpir_node *node) in gpir_instr_remove_reg0() 215 static bool gpir_instr_insert_reg1_check(gpir_instr *instr, gpir_node *node) in gpir_instr_insert_reg1_check() 234 static void gpir_instr_remove_reg1(gpir_instr *instr, gpir_node *node) in gpir_instr_remove_reg1() [all …]
|
D | codegen.c | 86 static void gpir_codegen_mul0_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_mul0_slot() 146 static void gpir_codegen_mul1_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_mul1_slot() 198 static void gpir_codegen_add0_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_add0_slot() 283 static void gpir_codegen_add1_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_add1_slot() 368 static void gpir_codegen_complex_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_complex_slot() 413 static void gpir_codegen_pass_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_pass_slot() 458 static void gpir_codegen_reg0_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_reg0_slot() 467 static void gpir_codegen_reg1_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_reg1_slot() 475 static void gpir_codegen_mem_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_mem_slot() 502 static void gpir_codegen_store_slot(gpir_codegen_instr *code, gpir_instr *instr) in gpir_codegen_store_slot() [all …]
|
D | disasm.c | 50 print_dest(gpir_codegen_instr *instr, gp_unit unit, unsigned cur_dest_index, FILE *fp) in print_dest() 119 gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, in print_src() 247 print_mul(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, in print_mul() 395 print_acc(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, in print_acc() 471 print_pass(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, in print_pass() 516 print_complex(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, in print_complex() 561 print_instr(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, in print_instr() 592 for (gpir_codegen_instr *instr = code; cur_instr < num_instr; in gpir_disassemble_program() local
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_emitaluinstruction.cpp | 45 const nir_alu_instr& instr = *nir_instr_as_alu(ir); in do_emit() local 213 void EmitAluInstruction::preload_src(const nir_alu_instr& instr) in preload_src() 236 unsigned EmitAluInstruction::num_src_comp(const nir_alu_instr& instr) in num_src_comp() 286 bool EmitAluInstruction::emit_cube(const nir_alu_instr& instr) in emit_cube() 302 void EmitAluInstruction::split_constants(const nir_alu_instr& instr, unsigned nsrc_comp) in split_constants() 346 bool EmitAluInstruction::emit_alu_inot(const nir_alu_instr& instr) in emit_alu_inot() 365 bool EmitAluInstruction::emit_alu_op1(const nir_alu_instr& instr, EAluOp opcode, in emit_alu_op1() 391 bool EmitAluInstruction::emit_mov(const nir_alu_instr& instr) in emit_mov() 410 bool EmitAluInstruction::emit_alu_trans_op1(const nir_alu_instr& instr, EAluOp opcode, in emit_alu_trans_op1() 445 bool EmitAluInstruction::emit_alu_cm_trig(const nir_alu_instr& instr, EAluOp opcode) in emit_alu_cm_trig() [all …]
|
D | sfn_emittexinstruction.cpp | 38 bool EmitTexInstruction::do_emit(nir_instr* instr) in do_emit() 86 bool EmitTexInstruction::emit_buf_txf(nir_tex_instr* instr, TexInputs &src) in emit_buf_txf() 98 bool EmitTexInstruction::emit_tex_tex(nir_tex_instr* instr, TexInputs& src) in emit_tex_tex() 129 bool EmitTexInstruction::emit_tex_txd(nir_tex_instr* instr, TexInputs& src) in emit_tex_txd() 172 bool EmitTexInstruction::emit_tex_txf(nir_tex_instr* instr, TexInputs& src) in emit_tex_txf() 219 bool EmitTexInstruction::emit_tex_lod(nir_tex_instr* instr, TexInputs& src) in emit_tex_lod() 236 bool EmitTexInstruction::emit_tex_txl(nir_tex_instr* instr, TexInputs& src) in emit_tex_txl() 273 bool EmitTexInstruction::emit_tex_txb(nir_tex_instr* instr, TexInputs& src) in emit_tex_txb() 310 bool EmitTexInstruction::emit_tex_txs(nir_tex_instr* instr, TexInputs& tex_src, in emit_tex_txs() 354 bool EmitTexInstruction::emit_tex_texture_samples(nir_tex_instr* instr, TexInputs& src, in emit_tex_texture_samples() [all …]
|
D | sfn_shader_geometry.cpp | 54 bool GeometryShaderFromNir::emit_store(nir_intrinsic_instr* instr) in emit_store() 76 bool GeometryShaderFromNir::scan_sysvalue_access(UNUSED nir_instr *instr) in scan_sysvalue_access() 94 bool GeometryShaderFromNir::process_store_output(nir_intrinsic_instr* instr) in process_store_output() 145 bool GeometryShaderFromNir::process_load_input(nir_intrinsic_instr* instr) in process_load_input() 262 bool GeometryShaderFromNir::emit_intrinsic_instruction_override(nir_intrinsic_instr* instr) in emit_intrinsic_instruction_override() 283 bool GeometryShaderFromNir::emit_vertex(nir_intrinsic_instr* instr, bool cut) in emit_vertex() 306 bool GeometryShaderFromNir::emit_load_per_vertex_input(nir_intrinsic_instr* instr) in emit_load_per_vertex_input()
|
D | sfn_shader_compute.cpp | 42 bool ComputeShaderFromNir::scan_sysvalue_access(UNUSED nir_instr *instr) in scan_sysvalue_access() 67 bool ComputeShaderFromNir::emit_intrinsic_instruction_override(nir_intrinsic_instr* instr) in emit_intrinsic_instruction_override() 81 bool ComputeShaderFromNir::emit_load_3vec(nir_intrinsic_instr* instr, in emit_load_3vec() 89 bool ComputeShaderFromNir::emit_load_num_workgroups(nir_intrinsic_instr* instr) in emit_load_num_workgroups()
|
D | sfn_shader_base.cpp | 90 bool ShaderFromNirProcessor::scan_instruction(nir_instr *instr) in scan_instruction() 307 void ShaderFromNirProcessor::set_var_address(nir_deref_instr *instr) in set_var_address() 359 bool ShaderFromNirProcessor::emit_tex_instruction(nir_instr* instr) in emit_tex_instruction() 412 bool ShaderFromNirProcessor::emit_jump_instruction(nir_jump_instr *instr) in emit_jump_instruction() 434 bool ShaderFromNirProcessor::emit_alu_instruction(nir_instr* instr) in emit_alu_instruction() 439 bool ShaderFromNirProcessor::emit_deref_instruction_override(UNUSED nir_deref_instr* instr) in emit_deref_instruction_override() 533 bool ShaderFromNirProcessor::emit_load_tcs_param_base(nir_intrinsic_instr* instr, int offset) in emit_load_tcs_param_base() 545 bool ShaderFromNirProcessor::emit_load_local_shared(nir_intrinsic_instr* instr) in emit_load_local_shared() 582 bool ShaderFromNirProcessor::emit_atomic_local_shared(nir_intrinsic_instr* instr) in emit_atomic_local_shared() 599 bool ShaderFromNirProcessor::emit_store_local_shared(nir_intrinsic_instr* instr) in emit_store_local_shared() [all …]
|
D | sfn_ir_to_assembly.cpp | 554 bool AssemblyFromShaderLegacyImpl::visit(UNUSED const LoopBeginInstruction& instr) in visit() 563 bool AssemblyFromShaderLegacyImpl::visit(UNUSED const LoopEndInstruction& instr) in visit() 572 bool AssemblyFromShaderLegacyImpl::visit(UNUSED const LoopBreakInstruction& instr) in visit() 578 bool AssemblyFromShaderLegacyImpl::visit(UNUSED const LoopContInstruction &instr) in visit() 609 bool AssemblyFromShaderLegacyImpl::visit(const MemRingOutIntruction& instr) in visit() 787 bool AssemblyFromShaderLegacyImpl::visit(const EmitVertex &instr) in visit() 797 bool AssemblyFromShaderLegacyImpl::visit(const WaitAck& instr) in visit() 808 bool AssemblyFromShaderLegacyImpl::visit(const WriteScratchInstruction& instr) in visit() 849 bool AssemblyFromShaderLegacyImpl::visit(const GDSInstr& instr) in visit() 889 bool AssemblyFromShaderLegacyImpl::visit(const GDSStoreTessFactor& instr) in visit() [all …]
|
/third_party/mesa3d/src/broadcom/qpu/ |
D | qpu_disasm.c | 60 const struct v3d_qpu_instr *instr, uint8_t mux) in v3d_qpu_disasm_raddr() 102 const struct v3d_qpu_instr *instr) in v3d_qpu_disasm_add() 139 const struct v3d_qpu_instr *instr) in v3d_qpu_disasm_mul() 182 const struct v3d_qpu_instr *instr) in v3d_qpu_disasm_sig_addr() 202 const struct v3d_qpu_instr *instr) in v3d_qpu_disasm_sig() 260 const struct v3d_qpu_instr *instr) in v3d_qpu_disasm_alu() 269 const struct v3d_qpu_instr *instr) in v3d_qpu_disasm_branch() 318 const struct v3d_qpu_instr *instr) in v3d_qpu_decode() 347 struct v3d_qpu_instr instr; in v3d_qpu_disasm() local 356 const struct v3d_qpu_instr *instr) in v3d_qpu_dump()
|
/third_party/mesa3d/src/freedreno/isa/ |
D | encode.c | 40 struct ir3_instruction *instr; member 49 extract_SRC1_R(struct ir3_instruction *instr) in extract_SRC1_R() 59 extract_SRC2_R(struct ir3_instruction *instr) in extract_SRC2_R() 72 __instruction_case(struct encode_state *s, struct ir3_instruction *instr) in __instruction_case() 155 extract_cat5_SRC(struct ir3_instruction *instr, unsigned n) in extract_cat5_SRC() 166 extract_cat5_FULL(struct ir3_instruction *instr) in extract_cat5_FULL() 176 extract_cat5_DESC_MODE(struct ir3_instruction *instr) in extract_cat5_DESC_MODE() 212 extract_cat6_DESC_MODE(struct ir3_instruction *instr) in extract_cat6_DESC_MODE() 232 extract_cat6_SRC(struct ir3_instruction *instr, unsigned n) in extract_cat6_SRC()
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_dce.c | 37 mark_array_use(struct ir3_instruction *instr, struct ir3_register *reg) in mark_array_use() 47 instr_dce(struct ir3_instruction *instr, bool falsedep) in instr_dce() 162 struct ir3_instruction *instr = ir->a0_users[i]; in find_and_remove_unused() local 168 struct ir3_instruction *instr = ir->a1_users[i]; in find_and_remove_unused() local 174 struct ir3_instruction *instr = ir->predicates[i]; in find_and_remove_unused() local
|
D | ir3_sched.c | 45 #define di(instr, fmt, ...) \ argument 123 struct ir3_instruction *instr; member 174 is_scheduled(struct ir3_instruction *instr) in is_scheduled() 181 sched_check_src_cond(struct ir3_instruction *instr, in sched_check_src_cond() 205 is_outstanding_tex_or_prefetch(struct ir3_instruction *instr, in is_outstanding_tex_or_prefetch() 222 is_outstanding_sfu(struct ir3_instruction *instr, struct ir3_sched_ctx *ctx) in is_outstanding_sfu() 238 cycle_count(struct ir3_instruction *instr) in cycle_count() 256 schedule(struct ir3_sched_ctx *ctx, struct ir3_instruction *instr) in schedule() 353 could_sched(struct ir3_instruction *instr, struct ir3_instruction *src) in could_sched() 369 struct ir3_instruction *instr) in check_instr() [all …]
|
D | ir3_nir_analyze_ubo_ranges.c | 31 get_ubo_load_range(nir_shader *nir, nir_intrinsic_instr *instr, in get_ubo_load_range() 56 get_ubo_info(nir_intrinsic_instr *instr, struct ir3_ubo_info *ubo) in get_ubo_info() 79 get_existing_range(nir_intrinsic_instr *instr, in get_existing_range() 136 gather_ubo_ranges(nir_shader *nir, nir_intrinsic_instr *instr, in gather_ubo_ranges() 258 track_ubo_use(nir_intrinsic_instr *instr, nir_builder *b, int *num_ubos) in track_ubo_use() 274 lower_ubo_load_to_uniform(nir_intrinsic_instr *instr, nir_builder *b, in lower_ubo_load_to_uniform() 346 instr_is_load_ubo(nir_instr *instr) in instr_is_load_ubo() 456 fixup_load_uniform_filter(const nir_instr *instr, const void *arg) in fixup_load_uniform_filter() 465 fixup_load_uniform_instr(struct nir_builder *b, nir_instr *instr, void *arg) in fixup_load_uniform_instr() 530 nir_intrinsic_instr *instr = nir_instr_as_intrinsic(in_instr); in ir3_nir_lower_load_const_instr() local [all …]
|
D | ir3.c | 71 collect_reg_info(struct ir3_instruction *instr, struct ir3_register *reg, in collect_reg_info() 346 insert_instr(struct ir3_block *block, struct ir3_instruction *instr) in insert_instr() 434 struct ir3_instruction *instr; in instr_create() local 455 struct ir3_instruction *instr = instr_create(block, opc, ndst, nsrc); in ir3_instr_create() local 463 ir3_instr_clone(struct ir3_instruction *instr) in ir3_instr_clone() 503 ir3_instr_add_dep(struct ir3_instruction *instr, struct ir3_instruction *dep) in ir3_instr_add_dep() 514 ir3_src_create(struct ir3_instruction *instr, int num, int flags) in ir3_src_create() 526 ir3_dst_create(struct ir3_instruction *instr, int num, int flags) in ir3_dst_create() 546 ir3_reg_set_last_array(struct ir3_instruction *instr, struct ir3_register *reg, in ir3_reg_set_last_array() 557 ir3_instr_set_address(struct ir3_instruction *instr, in ir3_instr_set_address() [all …]
|
D | ir3_cp.c | 61 is_eligible_mov(struct ir3_instruction *instr, in is_eligible_mov() 160 lower_immed(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr, unsigned n, in lower_immed() 249 unuse(struct ir3_instruction *instr) in unuse() 274 try_swap_mad_two_srcs(struct ir3_instruction *instr, unsigned new_flags) in try_swap_mad_two_srcs() 314 reg_cp(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr, in reg_cp() 495 eliminate_output_mov(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr) in eliminate_output_mov() 514 instr_cp(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr) in instr_cp()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | v3d_nir_lower_robust_buffer_access.c | 29 nir_intrinsic_instr *instr, in rewrite_offset() 57 nir_intrinsic_instr *instr) in lower_load() 76 nir_intrinsic_instr *instr) in lower_store() 85 nir_intrinsic_instr *instr) in lower_atomic() 94 nir_intrinsic_instr *instr) in lower_shared() 105 lower_instr(struct v3d_compile *c, nir_builder *b, struct nir_instr *instr) in lower_instr()
|
/third_party/mesa3d/src/panfrost/util/ |
D | pan_sysval.c | 32 panfrost_sysval_for_ssbo(nir_intrinsic_instr *instr) in panfrost_sysval_for_ssbo() 42 panfrost_sysval_for_sampler(nir_intrinsic_instr *instr) in panfrost_sysval_for_sampler() 53 panfrost_sysval_for_image_size(nir_intrinsic_instr *instr) in panfrost_sysval_for_image_size() 66 panfrost_nir_sysval_for_intrinsic(nir_intrinsic_instr *instr) in panfrost_nir_sysval_for_intrinsic() 102 panfrost_sysval_for_instr(nir_instr *instr, nir_dest *dest) in panfrost_sysval_for_instr()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | ir2_nir.c | 258 set_index(struct ir2_context *ctx, nir_dest *dst, struct ir2_instr *instr) in set_index() 277 struct ir2_instr *instr; in ir2_instr_create() local 336 struct ir2_instr *instr = ir2_instr_create(ctx, IR2_ALU); in instr_create_alu() local 351 struct ir2_instr *instr; in instr_create_alu_reg() local 367 struct ir2_instr *instr; in instr_create_alu_dest() local 377 struct ir2_instr *instr = ir2_instr_create(ctx, IR2_FETCH); in ir2_instr_create_fetch() local 388 struct ir2_instr *instr; in make_src_noconst() local 405 struct ir2_instr *instr; in emit_alu() local 492 struct ir2_instr *instr; in load_input() local 561 struct ir2_instr *instr; in store_output() local [all …]
|