| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/ |
| H A D | r700_asm.c | 37 int r700_bytecode_alu_build(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, unsigned id) argument 39 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) | 40 S_SQ_ALU_WORD0_SRC0_REL(alu->src[0].rel) | 41 S_SQ_ALU_WORD0_SRC0_CHAN(alu->src[0].chan) | 42 S_SQ_ALU_WORD0_SRC0_NEG(alu->src[0].neg) | 43 S_SQ_ALU_WORD0_SRC1_SEL(alu->src[1].sel) | 44 S_SQ_ALU_WORD0_SRC1_REL(alu->src[1].rel) | 45 S_SQ_ALU_WORD0_SRC1_CHAN(alu->src[1].chan) | 46 S_SQ_ALU_WORD0_SRC1_NEG(alu->src[1].neg) | 47 S_SQ_ALU_WORD0_PRED_SEL(alu 80 r700_bytecode_alu_read(struct r600_bytecode * bc,struct r600_bytecode_alu * alu,uint32_t word0,uint32_t word1) argument [all...] |
| H A D | eg_asm.c | 179 struct r600_bytecode_alu alu; local in function:egcm_load_index_reg 189 memset(&alu, 0, sizeof(alu)); 190 alu.op = ALU_OP1_MOVA_INT; 191 alu.src[0].sel = bc->index_reg[id]; 192 alu.src[0].chan = 0; 194 alu.dst.sel = id == 0 ? CM_V_SQ_MOVA_DST_CF_IDX0 : CM_V_SQ_MOVA_DST_CF_IDX1; 196 alu.last = 1; 197 r = r600_bytecode_add_alu(bc, &alu); 204 memset(&alu, 259 eg_bytecode_alu_build(struct r600_bytecode * bc,struct r600_bytecode_alu * alu,unsigned id) argument [all...] |
| H A D | r600_shader.c | 507 struct r600_bytecode_alu alu; local in function:evergreen_interp_alu 516 memset(&alu, 0, sizeof(struct r600_bytecode_alu)); 519 alu.op = ALU_OP2_INTERP_ZW; 521 alu.op = ALU_OP2_INTERP_XY; 524 alu.dst.sel = ctx->shader->input[input].gpr; 525 alu.dst.write = 1; 528 alu.dst.chan = i % 4; 530 alu.src[0].sel = gpr; 531 alu.src[0].chan = (base_chan - (i % 2)); 533 alu 548 struct r600_bytecode_alu alu; local in function:evergreen_interp_flat 695 struct r600_bytecode_alu alu; local in function:select_twoside_color 728 struct r600_bytecode_alu alu; local in function:single_alu_op2 785 struct r600_bytecode_alu alu; local in function:single_alu_op3 865 struct r600_bytecode_alu alu; local in function:tgsi_barrier 1141 struct r600_bytecode_alu alu; local in function:tgsi_declaration 1154 struct r600_bytecode_alu alu; local in function:tgsi_declaration 1350 struct r600_bytecode_alu alu; local in function:load_sample_position 1389 struct r600_bytecode_alu alu; local in function:eg_load_helper_invocation 1427 struct r600_bytecode_alu alu; local in function:cm_load_helper_invocation 1466 struct r600_bytecode_alu alu; local in function:load_block_grid_size 1731 struct r600_bytecode_alu alu; local in function:tgsi_fetch_rel_const 1799 struct r600_bytecode_alu alu; local in function:fetch_gs_input 2048 struct r600_bytecode_alu alu; local in function:do_lds_fetch_values 2218 struct r600_bytecode_alu alu; local in function:tgsi_split_constant 2274 struct r600_bytecode_alu alu; local in function:tgsi_split_literal_constant 2359 struct r600_bytecode_alu alu; local in function:emit_streamout 2445 struct r600_bytecode_alu alu; local in function:convert_edgeflag_to_int 2480 struct r600_bytecode_alu alu; local in function:generate_gs_copy_shader 2786 struct r600_bytecode_alu alu; local in function:emit_inc_ring_offset 2971 struct r600_bytecode_alu alu; local in function:emit_lds_vs_writes 3019 struct r600_bytecode_alu alu; local in function:r600_store_tcs_output 3132 struct r600_bytecode_alu alu; local in function:r600_emit_tess_factor 3281 struct r600_bytecode_alu alu; local in function:load_thread_id_gpr 3732 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3765 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3779 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3795 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3935 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 4435 struct r600_bytecode_alu alu; local in function:tgsi_op2_64_params 4584 struct r600_bytecode_alu alu; local in function:tgsi_op3_64 4617 struct r600_bytecode_alu alu; local in function:tgsi_op2_s 4696 struct r600_bytecode_alu alu; local in function:tgsi_ineg 4727 struct r600_bytecode_alu alu; local in function:tgsi_dneg 4758 struct r600_bytecode_alu alu; local in function:tgsi_dfracexp 4822 struct r600_bytecode_alu alu; local in function:egcm_int_to_double 4934 struct r600_bytecode_alu alu; local in function:egcm_double_to_int 4971 struct r600_bytecode_alu alu; local in function:cayman_emit_unary_double_raw 5004 struct r600_bytecode_alu alu; local in function:cayman_emit_double_instr 5045 struct r600_bytecode_alu alu; local in function:cayman_emit_float_instr 5075 struct r600_bytecode_alu alu; local in function:cayman_mul_int_instr 5124 struct r600_bytecode_alu alu; local in function:cayman_mul_double_instr 5177 struct r600_bytecode_alu alu; local in function:cayman_ddiv_instr 5235 struct r600_bytecode_alu alu; local in function:tgsi_setup_trig 5306 struct r600_bytecode_alu alu; local in function:cayman_trig 5337 struct r600_bytecode_alu alu; local in function:tgsi_trig 5380 struct r600_bytecode_alu alu; local in function:tgsi_kill 5414 struct r600_bytecode_alu alu; local in function:tgsi_lit 5564 struct r600_bytecode_alu alu; local in function:tgsi_rsq 5588 struct r600_bytecode_alu alu; local in function:tgsi_helper_tempx_replicate 5610 struct r600_bytecode_alu alu; local in function:tgsi_trans_srcx_replicate 5632 struct r600_bytecode_alu alu; local in function:cayman_pow 5680 struct r600_bytecode_alu alu; local in function:tgsi_pow 5720 struct r600_bytecode_alu alu; local in function:emit_mul_int_op 5745 struct r600_bytecode_alu alu; local in function:tgsi_divmod 6532 struct r600_bytecode_alu alu; local in function:tgsi_f2i 6581 struct r600_bytecode_alu alu; local in function:tgsi_iabs 6637 struct r600_bytecode_alu alu; local in function:tgsi_issg 6702 struct r600_bytecode_alu alu; local in function:tgsi_ssg 6758 struct r600_bytecode_alu alu; local in function:tgsi_bfi 6876 struct r600_bytecode_alu alu; local in function:tgsi_msb 6962 struct r600_bytecode_alu alu; local in function:tgsi_interp_egcm 7124 struct r600_bytecode_alu alu; local in function:tgsi_helper_copy 7153 struct r600_bytecode_alu alu; local in function:tgsi_make_src_for_op3 7192 struct r600_bytecode_alu alu; local in function:tgsi_op3_dst 7245 struct r600_bytecode_alu alu; local in function:tgsi_dp 7310 struct r600_bytecode_alu alu; local in function:do_vtx_fetch_inst 7412 struct r600_bytecode_alu alu; local in function:r600_do_buffer_txq 7454 struct r600_bytecode_alu alu; local in function:tgsi_tex 8580 struct r600_bytecode_alu alu; local in function:tgsi_set_gds_temp 8657 struct r600_bytecode_alu alu; local in function:load_index_src 8724 struct r600_bytecode_alu alu; local in function:load_buffer_coord 8872 struct r600_bytecode_alu alu; local in function:tgsi_load_lds 8925 struct r600_bytecode_alu alu; local in function:tgsi_store_buffer_rat 8940 struct r600_bytecode_alu alu; local in function:tgsi_store_buffer_rat 9000 struct r600_bytecode_alu alu; local in function:tgsi_store_rat 9041 struct r600_bytecode_alu alu; local in function:tgsi_store_lds 9122 struct r600_bytecode_alu alu; local in function:tgsi_atomic_op_rat 9280 struct r600_bytecode_alu alu; local in function:tgsi_atomic_op_gds 9413 struct r600_bytecode_alu alu; local in function:tgsi_atomic_op_lds 9491 struct r600_bytecode_alu alu; local in function:tgsi_resq 9534 struct r600_bytecode_alu alu; local in function:tgsi_lrp 9642 struct r600_bytecode_alu alu; local in function:tgsi_cmp 9690 struct r600_bytecode_alu alu; local in function:tgsi_ucmp 9719 struct r600_bytecode_alu alu; local in function:tgsi_exp 9848 struct r600_bytecode_alu alu; local in function:tgsi_log 10108 struct r600_bytecode_alu alu; local in function:tgsi_eg_arl 10154 struct r600_bytecode_alu alu; local in function:tgsi_r600_arl 10231 struct r600_bytecode_alu alu; local in function:tgsi_opdst 10263 struct r600_bytecode_alu alu; local in function:emit_logic_pred 10675 struct r600_bytecode_alu alu; local in function:tgsi_umad 10728 struct r600_bytecode_alu alu; local in function:tgsi_pk2h 10776 struct r600_bytecode_alu alu; local in function:tgsi_up2h 10827 struct r600_bytecode_alu alu; local in function:tgsi_bfe 10886 struct r600_bytecode_alu alu; local in function:tgsi_clock 10912 struct r600_bytecode_alu alu; local in function:emit_u64add 10983 struct r600_bytecode_alu alu; local in function:egcm_u64add 11059 struct r600_bytecode_alu alu; local in function:egcm_u64mul 11213 struct r600_bytecode_alu alu; local in function:egcm_u64div 11544 struct r600_bytecode_alu alu; local in function:egcm_u64sne [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/ |
| H A D | r700_asm.c | 37 int r700_bytecode_alu_build(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, unsigned id) argument 39 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) | 40 S_SQ_ALU_WORD0_SRC0_REL(alu->src[0].rel) | 41 S_SQ_ALU_WORD0_SRC0_CHAN(alu->src[0].chan) | 42 S_SQ_ALU_WORD0_SRC0_NEG(alu->src[0].neg) | 43 S_SQ_ALU_WORD0_SRC1_SEL(alu->src[1].sel) | 44 S_SQ_ALU_WORD0_SRC1_REL(alu->src[1].rel) | 45 S_SQ_ALU_WORD0_SRC1_CHAN(alu->src[1].chan) | 46 S_SQ_ALU_WORD0_SRC1_NEG(alu->src[1].neg) | 47 S_SQ_ALU_WORD0_PRED_SEL(alu 80 r700_bytecode_alu_read(struct r600_bytecode * bc,struct r600_bytecode_alu * alu,uint32_t word0,uint32_t word1) argument [all...] |
| H A D | eg_asm.c | 179 struct r600_bytecode_alu alu; local in function:egcm_load_index_reg 189 memset(&alu, 0, sizeof(alu)); 190 alu.op = ALU_OP1_MOVA_INT; 191 alu.src[0].sel = bc->index_reg[id]; 192 alu.src[0].chan = bc->index_reg_chan[id]; 194 alu.dst.sel = id == 0 ? CM_V_SQ_MOVA_DST_CF_IDX0 : CM_V_SQ_MOVA_DST_CF_IDX1; 196 alu.last = 1; 197 r = r600_bytecode_add_alu(bc, &alu); 204 memset(&alu, 259 eg_bytecode_alu_build(struct r600_bytecode * bc,struct r600_bytecode_alu * alu,unsigned id) argument [all...] |
| H A D | r600_shader.c | 591 struct r600_bytecode_alu alu; local in function:evergreen_interp_alu 600 memset(&alu, 0, sizeof(struct r600_bytecode_alu)); 603 alu.op = ALU_OP2_INTERP_ZW; 605 alu.op = ALU_OP2_INTERP_XY; 608 alu.dst.sel = ctx->shader->input[input].gpr; 609 alu.dst.write = 1; 612 alu.dst.chan = i % 4; 614 alu.src[0].sel = gpr; 615 alu.src[0].chan = (base_chan - (i % 2)); 617 alu 632 struct r600_bytecode_alu alu; local in function:evergreen_interp_flat 783 struct r600_bytecode_alu alu; local in function:select_twoside_color 816 struct r600_bytecode_alu alu; local in function:single_alu_op2 873 struct r600_bytecode_alu alu; local in function:single_alu_op3 953 struct r600_bytecode_alu alu; local in function:tgsi_barrier 1229 struct r600_bytecode_alu alu; local in function:tgsi_declaration 1242 struct r600_bytecode_alu alu; local in function:tgsi_declaration 1438 struct r600_bytecode_alu alu; local in function:load_sample_position 1477 struct r600_bytecode_alu alu; local in function:eg_load_helper_invocation 1515 struct r600_bytecode_alu alu; local in function:cm_load_helper_invocation 1554 struct r600_bytecode_alu alu; local in function:load_block_grid_size 1819 struct r600_bytecode_alu alu; local in function:tgsi_fetch_rel_const 1887 struct r600_bytecode_alu alu; local in function:fetch_gs_input 2136 struct r600_bytecode_alu alu; local in function:do_lds_fetch_values 2306 struct r600_bytecode_alu alu; local in function:tgsi_split_constant 2362 struct r600_bytecode_alu alu; local in function:tgsi_split_literal_constant 2447 struct r600_bytecode_alu alu; local in function:emit_streamout 2533 struct r600_bytecode_alu alu; local in function:convert_edgeflag_to_int 2568 struct r600_bytecode_alu alu; local in function:generate_gs_copy_shader 2874 struct r600_bytecode_alu alu; local in function:emit_inc_ring_offset 3059 struct r600_bytecode_alu alu; local in function:emit_lds_vs_writes 3108 struct r600_bytecode_alu alu; local in function:r600_store_tcs_output 3221 struct r600_bytecode_alu alu; local in function:r600_emit_tess_factor 3370 struct r600_bytecode_alu alu; local in function:load_thread_id_gpr 3821 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3854 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3868 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 3884 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 4024 struct r600_bytecode_alu alu; local in function:r600_shader_from_tgsi 4524 struct r600_bytecode_alu alu; local in function:tgsi_op2_64_params 4673 struct r600_bytecode_alu alu; local in function:tgsi_op3_64 4706 struct r600_bytecode_alu alu; local in function:tgsi_op2_s 4794 struct r600_bytecode_alu alu; local in function:tgsi_ineg 4825 struct r600_bytecode_alu alu; local in function:tgsi_dneg 4856 struct r600_bytecode_alu alu; local in function:tgsi_dfracexp 4920 struct r600_bytecode_alu alu; local in function:egcm_int_to_double 5032 struct r600_bytecode_alu alu; local in function:egcm_double_to_int 5069 struct r600_bytecode_alu alu; local in function:cayman_emit_unary_double_raw 5102 struct r600_bytecode_alu alu; local in function:cayman_emit_double_instr 5143 struct r600_bytecode_alu alu; local in function:cayman_emit_float_instr 5173 struct r600_bytecode_alu alu; local in function:cayman_mul_int_instr 5222 struct r600_bytecode_alu alu; local in function:cayman_mul_double_instr 5275 struct r600_bytecode_alu alu; local in function:cayman_ddiv_instr 5333 struct r600_bytecode_alu alu; local in function:tgsi_setup_trig 5404 struct r600_bytecode_alu alu; local in function:cayman_trig 5435 struct r600_bytecode_alu alu; local in function:tgsi_trig 5478 struct r600_bytecode_alu alu; local in function:tgsi_kill 5512 struct r600_bytecode_alu alu; local in function:tgsi_lit 5662 struct r600_bytecode_alu alu; local in function:tgsi_rsq 5686 struct r600_bytecode_alu alu; local in function:tgsi_helper_tempx_replicate 5708 struct r600_bytecode_alu alu; local in function:tgsi_trans_srcx_replicate 5730 struct r600_bytecode_alu alu; local in function:cayman_pow 5778 struct r600_bytecode_alu alu; local in function:tgsi_pow 5818 struct r600_bytecode_alu alu; local in function:emit_mul_int_op 5843 struct r600_bytecode_alu alu; local in function:tgsi_divmod 6630 struct r600_bytecode_alu alu; local in function:tgsi_f2i 6679 struct r600_bytecode_alu alu; local in function:tgsi_iabs 6735 struct r600_bytecode_alu alu; local in function:tgsi_issg 6800 struct r600_bytecode_alu alu; local in function:tgsi_ssg 6856 struct r600_bytecode_alu alu; local in function:tgsi_bfi 6974 struct r600_bytecode_alu alu; local in function:tgsi_msb 7060 struct r600_bytecode_alu alu; local in function:tgsi_interp_egcm 7223 struct r600_bytecode_alu alu; local in function:tgsi_helper_copy 7252 struct r600_bytecode_alu alu; local in function:tgsi_make_src_for_op3 7291 struct r600_bytecode_alu alu; local in function:tgsi_op3_dst 7344 struct r600_bytecode_alu alu; local in function:tgsi_dp 7409 struct r600_bytecode_alu alu; local in function:do_vtx_fetch_inst 7511 struct r600_bytecode_alu alu; local in function:r600_do_buffer_txq 7553 struct r600_bytecode_alu alu; local in function:tgsi_tex 8679 struct r600_bytecode_alu alu; local in function:tgsi_set_gds_temp 8756 struct r600_bytecode_alu alu; local in function:load_index_src 8823 struct r600_bytecode_alu alu; local in function:load_buffer_coord 8971 struct r600_bytecode_alu alu; local in function:tgsi_load_lds 9024 struct r600_bytecode_alu alu; local in function:tgsi_store_buffer_rat 9039 struct r600_bytecode_alu alu; local in function:tgsi_store_buffer_rat 9099 struct r600_bytecode_alu alu; local in function:tgsi_store_rat 9140 struct r600_bytecode_alu alu; local in function:tgsi_store_lds 9221 struct r600_bytecode_alu alu; local in function:tgsi_atomic_op_rat 9379 struct r600_bytecode_alu alu; local in function:tgsi_atomic_op_gds 9512 struct r600_bytecode_alu alu; local in function:tgsi_atomic_op_lds 9590 struct r600_bytecode_alu alu; local in function:tgsi_resq 9633 struct r600_bytecode_alu alu; local in function:tgsi_lrp 9741 struct r600_bytecode_alu alu; local in function:tgsi_cmp 9789 struct r600_bytecode_alu alu; local in function:tgsi_ucmp 9818 struct r600_bytecode_alu alu; local in function:tgsi_exp 9947 struct r600_bytecode_alu alu; local in function:tgsi_log 10207 struct r600_bytecode_alu alu; local in function:tgsi_eg_arl 10253 struct r600_bytecode_alu alu; local in function:tgsi_r600_arl 10330 struct r600_bytecode_alu alu; local in function:tgsi_opdst 10362 struct r600_bytecode_alu alu; local in function:emit_logic_pred 10774 struct r600_bytecode_alu alu; local in function:tgsi_umad 10827 struct r600_bytecode_alu alu; local in function:tgsi_pk2h 10875 struct r600_bytecode_alu alu; local in function:tgsi_up2h 10926 struct r600_bytecode_alu alu; local in function:tgsi_bfe 10985 struct r600_bytecode_alu alu; local in function:tgsi_clock 11011 struct r600_bytecode_alu alu; local in function:emit_u64add 11082 struct r600_bytecode_alu alu; local in function:egcm_u64add 11155 struct r600_bytecode_alu alu; local in function:egcm_i64neg 11228 struct r600_bytecode_alu alu; local in function:egcm_u64mul 11382 struct r600_bytecode_alu alu; local in function:egcm_u64div 11713 struct r600_bytecode_alu alu; local in function:egcm_u64sne [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| H A D | nir_lower_bool_to_float.c | 46 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) argument 48 const nir_op_info *op_info = &nir_op_infos[alu->op]; 50 b->cursor = nir_before_instr(&alu->instr); 54 switch (alu->op) { 61 case nir_op_b2f32: alu->op = nir_op_fmov; break; 62 case nir_op_b2i32: alu->op = nir_op_fmov; break; 65 rep = nir_sne(b, nir_ssa_for_alu_src(b, alu, 0), 69 case nir_op_flt: alu->op = nir_op_slt; break; 70 case nir_op_fge: alu->op = nir_op_sge; break; 71 case nir_op_feq: alu [all...] |
| H A D | nir_lower_to_source_mods.c | 46 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:nir_lower_to_source_mods_block 48 bool lower_abs = (nir_op_infos[alu->op].num_inputs < 3) || 51 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 52 if (!alu->src[i].src.is_ssa) 55 if (alu->src[i].src.ssa->parent_instr->type != nir_instr_type_alu) 58 nir_alu_instr *parent = nir_instr_as_alu(alu->src[i].src.ssa->parent_instr); 63 switch (nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[i])) { 90 nir_instr_rewrite_src(instr, &alu->src[i].src, parent->src[0].src); 91 if (alu->src[i].abs) { 94 alu [all...] |
| H A D | nir_lower_bool_to_int32.c | 45 lower_alu_instr(nir_alu_instr *alu) argument 47 const nir_op_info *op_info = &nir_op_infos[alu->op]; 49 assert(alu->dest.dest.is_ssa); 51 switch (alu->op) { 63 case nir_op_f2b1: alu->op = nir_op_f2b32; break; 64 case nir_op_i2b1: alu->op = nir_op_i2b32; break; 66 case nir_op_flt: alu->op = nir_op_flt32; break; 67 case nir_op_fge: alu->op = nir_op_fge32; break; 68 case nir_op_feq: alu->op = nir_op_feq32; break; 69 case nir_op_fne: alu [all...] |
| H A D | nir_opt_undef.c | 78 opt_undef_vecN(nir_builder *b, nir_alu_instr *alu) argument 80 if (alu->op != nir_op_vec2 && 81 alu->op != nir_op_vec3 && 82 alu->op != nir_op_vec4 && 83 alu->op != nir_op_fmov && 84 alu->op != nir_op_imov) 87 assert(alu->dest.dest.is_ssa); 89 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 90 if (!alu->src[i].src.is_ssa || 91 alu 146 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:nir_opt_undef [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| H A D | nir_lower_bool_to_int32.c | 45 lower_alu_instr(nir_alu_instr *alu) argument 47 const nir_op_info *op_info = &nir_op_infos[alu->op]; 49 assert(alu->dest.dest.is_ssa); 51 switch (alu->op) { 63 if (alu->dest.dest.ssa.bit_size != 1) 68 case nir_op_f2b1: alu->op = nir_op_f2b32; break; 69 case nir_op_i2b1: alu->op = nir_op_i2b32; break; 76 assert(nir_src_bit_size(alu->src[0].src) == 32); 77 alu->op = nir_op_mov; 80 case nir_op_flt: alu [all...] |
| H A D | nir_lower_int_to_float.c | 37 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) argument 39 const nir_op_info *info = &nir_op_infos[alu->op]; 41 bool is_bool_only = alu->dest.dest.ssa.bit_size == 1; 43 if (alu->src[i].src.ssa->bit_size != 1) 52 b->cursor = nir_before_instr(&alu->instr); 56 switch (alu->op) { 65 case nir_op_b2i32: alu->op = nir_op_b2f32; break; 66 case nir_op_i2f32: alu->op = nir_op_mov; break; 67 case nir_op_u2f32: alu->op = nir_op_mov; break; 68 case nir_op_f2i32: alu [all...] |
| H A D | nir_lower_flrp.c | 37 append_flrp_to_dead_list(struct u_vector *dead_flrp, struct nir_alu_instr *alu) argument 40 *tail = alu; 48 struct nir_alu_instr *alu) 50 nir_ssa_def *const a = nir_ssa_for_alu_src(bld, alu, 0); 51 nir_ssa_def *const b = nir_ssa_for_alu_src(bld, alu, 1); 52 nir_ssa_def *const c = nir_ssa_for_alu_src(bld, alu, 2); 55 nir_instr_as_alu(neg_a->parent_instr)->exact = alu->exact; 58 nir_instr_as_alu(inner_ffma->parent_instr)->exact = alu->exact; 61 nir_instr_as_alu(outer_ffma->parent_instr)->exact = alu->exact; 63 nir_ssa_def_rewrite_uses(&alu 47 replace_with_strict_ffma(struct nir_builder * bld,struct u_vector * dead_flrp,struct nir_alu_instr * alu) argument 76 replace_with_single_ffma(struct nir_builder * bld,struct u_vector * dead_flrp,struct nir_alu_instr * alu) argument 109 replace_with_strict(struct nir_builder * bld,struct u_vector * dead_flrp,struct nir_alu_instr * alu) argument 145 replace_with_fast(struct nir_builder * bld,struct u_vector * dead_flrp,struct nir_alu_instr * alu) argument 179 replace_with_expanded_ffma_and_add(struct nir_builder * bld,struct u_vector * dead_flrp,struct nir_alu_instr * alu,bool subtract_c) argument 330 get_similar_flrp_stats(nir_alu_instr * alu,struct similar_flrp_stats * st) argument 364 convert_flrp_instruction(nir_builder * bld,struct u_vector * dead_flrp,nir_alu_instr * alu,bool always_precise) argument 608 nir_alu_instr *const alu = nir_instr_as_alu(instr); local in function:lower_flrp_impl [all...] |
| H A D | nir_lower_bool_to_float.c | 46 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) argument 48 const nir_op_info *op_info = &nir_op_infos[alu->op]; 50 b->cursor = nir_before_instr(&alu->instr); 54 switch (alu->op) { 62 if (alu->dest.dest.ssa.bit_size != 1) 67 case nir_op_b2f32: alu->op = nir_op_mov; break; 68 case nir_op_b2i32: alu->op = nir_op_mov; break; 71 rep = nir_sne(b, nir_ssa_for_alu_src(b, alu, 0), 74 case nir_op_b2b1: alu->op = nir_op_mov; break; 76 case nir_op_flt: alu [all...] |
| H A D | nir_opt_intrinsics.c | 56 try_opt_bcsel_of_shuffle(nir_builder *b, nir_alu_instr *alu, argument 59 assert(alu->op == nir_op_bcsel); 69 if (!nir_alu_src_is_trivial_ssa(alu, 0)) 73 if (!nir_alu_src_is_trivial_ssa(alu, 1) || 74 alu->src[1].src.ssa->parent_instr->block != alu->instr.block || 75 !src_is_single_use_shuffle(alu->src[1].src, &data1, &index1)) 79 if (!nir_alu_src_is_trivial_ssa(alu, 2) || 80 alu->src[2].src.ssa->parent_instr->block != alu 94 opt_intrinsics_alu(nir_builder * b,nir_alu_instr * alu,bool block_has_discard) argument 134 nir_alu_instr *alu = nir_instr_as_alu(use_src->parent_instr); local in function:opt_intrinsics_intrin [all...] |
| H A D | nir_lower_to_source_mods.c | 60 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:nir_lower_to_source_mods_block 62 bool lower_abs = (nir_op_infos[alu->op].num_inputs < 3) || 65 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 66 if (!alu->src[i].src.is_ssa) 69 if (alu->src[i].src.ssa->parent_instr->type != nir_instr_type_alu) 72 nir_alu_instr *parent = nir_instr_as_alu(alu->src[i].src.ssa->parent_instr); 77 switch (nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[i])) { 94 if (nir_src_bit_size(alu->src[i].src) == 64 && 110 nir_instr_rewrite_src(instr, &alu->src[i].src, parent->src[0].src); 114 alu_src_consume_negate(&alu [all...] |
| H A D | nir_opt_rematerialize_compares.c | 82 nir_alu_instr *const alu = nir_instr_as_alu(use->parent_instr); local in function:all_uses_are_bcsel 83 if (alu->op != nir_op_bcsel && 84 alu->op != nir_op_b32csel) 90 if (alu->src[0].src.ssa != &instr->dest.dest.ssa) 107 nir_alu_instr *const alu = nir_instr_as_alu(instr); local in function:nir_opt_rematerialize_compares_impl 108 if (!is_two_src_comparison(alu)) 111 if (!all_srcs_are_ssa(alu)) 114 if (!all_uses_are_bcsel(alu)) 117 /* At this point it is known that alu is a comparison instruction 127 nir_foreach_use_safe(use, &alu [all...] |
| H A D | nir_opt_undef.c | 77 opt_undef_vecN(nir_builder *b, nir_alu_instr *alu) argument 79 if (!nir_op_is_vec(alu->op)) 82 assert(alu->dest.dest.is_ssa); 84 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 85 if (!alu->src[i].src.is_ssa || 86 alu->src[i].src.ssa->parent_instr->type != nir_instr_type_ssa_undef) 90 b->cursor = nir_before_instr(&alu->instr); 91 nir_ssa_def *undef = nir_ssa_undef(b, alu->dest.dest.ssa.num_components, 92 nir_dest_bit_size(alu->dest.dest)); 93 nir_ssa_def_rewrite_uses(&alu 109 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:nir_get_undef_mask 174 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:nir_opt_undef_instr [all...] |
| H A D | nir_lower_alu_to_scalar.c | 44 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:inst_is_vector_alu 49 assert(alu->dest.dest.is_ssa); 50 assert(alu->src[0].src.is_ssa); 51 return alu->dest.dest.ssa.num_components > 1 || 52 nir_op_infos[alu->op].input_sizes[0] > 1; 56 nir_alu_ssa_dest_init(nir_alu_instr *alu, unsigned num_components, argument 59 nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, 61 alu->dest.write_mask = (1 << num_components) - 1; 65 lower_reduction(nir_alu_instr *alu, nir_o argument 111 lower_fdot(nir_alu_instr * alu,nir_builder * builder) argument 146 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:lower_alu_instr_scalar [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/ir/ |
| H A D | lima_nir_split_load_input.c | 37 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:lima_nir_split_load_input_instr 38 if (alu->op != nir_op_mov) 41 if (!alu->dest.dest.is_ssa) 44 if (!alu->src[0].src.is_ssa) 47 nir_ssa_def *ssa = alu->src[0].src.ssa; 55 uint8_t swizzle = alu->src[0].swizzle[0]; 58 for (i = 1; i < nir_dest_num_components(alu->dest.dest); i++) 59 if (alu->src[0].swizzle[i] != (swizzle + i)) 62 if (i != nir_dest_num_components(alu->dest.dest)) 66 if (nir_dest_num_components(alu [all...] |
| /xsrc/external/mit/MesaLib/dist/src/panfrost/util/ |
| H A D | nir_mod_helpers.c | 45 nir_alu_instr *alu = nir_instr_as_alu(src->src.ssa->parent_instr); local in function:pan_has_source_mod 47 if (alu->op != op) 54 if (!alu->src[0].src.is_ssa) 63 .src = alu->src[0].src, 68 nsrc.swizzle[i] = alu->src[0].swizzle[src->swizzle[i]]; 106 nir_alu_instr *alu = nir_instr_as_alu(parent); local in function:pan_has_dest_mod 107 if (alu->op != op) 111 unsigned nr_components = nir_dest_num_components(alu->dest.dest); 118 if (alu->src[0].swizzle[i] != i) 122 if (!alu [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| H A D | brw_nir_lower_conversions.c | 54 split_conversion(nir_builder *b, nir_alu_instr *alu, nir_op op1, nir_op op2) argument 56 b->cursor = nir_before_instr(&alu->instr); 57 assert(alu->dest.write_mask == 1); 58 nir_ssa_def *src = nir_ssa_for_alu_src(b, alu, 0); 61 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, nir_src_for_ssa(res)); 62 nir_instr_remove(&alu->instr); 66 lower_instr(nir_builder *b, nir_alu_instr *alu) argument 68 unsigned src_bit_size = nir_src_bit_size(alu->src[0].src); 69 nir_alu_type src_type = nir_op_infos[alu->op].input_types[0]; 72 unsigned dst_bit_size = nir_dest_bit_size(alu 140 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:lower_impl [all...] |
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| H A D | brw_nir_lower_conversions.c | 54 split_conversion(nir_builder *b, nir_alu_instr *alu, nir_op op1, nir_op op2) argument 56 b->cursor = nir_before_instr(&alu->instr); 57 assert(alu->dest.write_mask == 1); 58 nir_ssa_def *src = nir_ssa_for_alu_src(b, alu, 0); 61 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, res); 62 nir_instr_remove(&alu->instr); 66 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) argument 68 unsigned src_bit_size = nir_src_bit_size(alu->src[0].src); 69 nir_alu_type src_type = nir_op_infos[alu->op].input_types[0]; 72 unsigned dst_bit_size = nir_dest_bit_size(alu 134 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:lower_instr [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| H A D | sfn_nir_lower_alu.cpp | 17 auto alu = nir_instr_as_alu(instr); local in function:r600::Lower2x16::filter 18 switch (alu->op) { 29 nir_alu_instr *alu = nir_instr_as_alu(instr); local in function:r600::Lower2x16::lower 31 switch (alu->op) { 33 nir_ssa_def *packed = nir_ssa_for_alu_src(b, alu, 0); 39 nir_ssa_def *src_vec2 = nir_ssa_for_alu_src(b, alu, 0); 59 auto alu = nir_instr_as_alu(instr); local in function:r600::LowerSinCos::filter 60 switch (alu->op) { 71 auto alu = nir_instr_as_alu(instr); local in function:r600::LowerSinCos::lower 73 assert(alu [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/ |
| H A D | ssa_def_bits_used_tests.cpp | 66 nir_alu_instr *alu = nir_instr_as_alu(def->parent_instr); local in function:ssa_def_bits_used_test::build_alu_instr 68 if (alu == NULL) 71 alu->dest.write_mask = 1; 72 alu->dest.dest.ssa.num_components = 1; 74 return alu; 86 nir_alu_instr *alu = build_alu_instr(nir_op_iand, src0, src1); local in function:TEST_F 88 ASSERT_NE((void *) 0, alu); 97 alu->src[0].swizzle[0] = i; 99 const uint64_t bits_used = nir_ssa_def_bits_used(alu->src[1].src.ssa); 115 nir_alu_instr *alu local in function:TEST_F 147 nir_alu_instr *alu = build_alu_instr(nir_op_extract_i16, src0, src1); local in function:TEST_F 178 nir_alu_instr *alu = build_alu_instr(nir_op_extract_u16, src0, src1); local in function:TEST_F 209 nir_alu_instr *alu = build_alu_instr(nir_op_extract_i8, src0, src1); local in function:TEST_F 240 nir_alu_instr *alu = build_alu_instr(nir_op_extract_u8, src0, src1); local in function:TEST_F [all...] |