/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_instruction_alu.cpp | 32 const AluModifiers AluInstruction::src_abs_flags[2] = 34 const AluModifiers AluInstruction::src_neg_flags[3] = 36 const AluModifiers AluInstruction::src_rel_flags[3] = 39 AluInstruction::AluInstruction(EAluOp opcode): in AluInstruction() function in r600::AluInstruction 50 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, in AluInstruction() function in r600::AluInstruction 73 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, PValue src0, in AluInstruction() function in r600::AluInstruction 75 AluInstruction(opcode, dest, std::vector<PValue>{src0}, flags) in AluInstruction() 79 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, in AluInstruction() function in r600::AluInstruction 82 AluInstruction(opcode, dest, {src0, src1}, m_flags) in AluInstruction() 86 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, PValue src0, in AluInstruction() function in r600::AluInstruction [all …]
|
D | sfn_emitaluinstruction.cpp | 297 AluInstruction *ir = nullptr; in split_constants() 300 ir = new AluInstruction(op1_mov, v[k], m_src[idx[i]][k], {write}); in split_constants() 316 AluInstruction *ir = nullptr; in emit_alu_inot() 319 ir = new AluInstruction(op1_not_int, from_nir(instr.dest, i), in emit_alu_inot() 331 AluInstruction *ir = nullptr; in emit_alu_op1() 334 ir = new AluInstruction(opcode, from_nir(instr.dest, i), in emit_alu_op1() 385 AluInstruction *ir = nullptr; in emit_alu_trig_op1() 389 ir = new AluInstruction(op3_muladd_ieee, v[i], in emit_alu_trig_op1() 400 ir = new AluInstruction(op1_fract, v[i], v[i], {alu_write}); in emit_alu_trig_op1() 408 ir = new AluInstruction(op2_add, v[i], v[i], Value::zero_dot_5, write); in emit_alu_trig_op1() [all …]
|
D | sfn_emitssboinstruction.cpp | 37 …emit_instruction(new AluInstruction(op1_mbcnt_32lo_accum_prev_int, m_rat_return_address.reg_i(0), … in load_rat_return_address() 38 …emit_instruction(new AluInstruction(op1_mbcnt_32hi_int, m_rat_return_address.reg_i(1), literal(-1)… in load_rat_return_address() 39 …emit_instruction(new AluInstruction(op3_muladd_uint24, m_rat_return_address.reg_i(2), PValue(new I… in load_rat_return_address() 41 emit_instruction(new AluInstruction(op3_muladd_uint24, m_rat_return_address.reg_i(1), in load_rat_return_address() 252 emit_instruction(new AluInstruction(op1_mov, m_atomic_update, literal(1), in load_atomic_inc_limits() 277 emit_instruction(new AluInstruction(op2_sub_int, dest.x(), dest.x(), literal(1), last_write)); in emit_atomic_pre_dec() 291 emit_instruction(new AluInstruction(op2_lshr_int, addr_temp, {addr, PValue(new LiteralValue(2))}, in emit_load_ssbo() 336 emit_instruction(new AluInstruction(op2_lshr_int, addr_vec.reg_i(0), orig_addr, in emit_store_ssbo() 338 emit_instruction(new AluInstruction(op1_mov, addr_vec.reg_i(1), Value::zero, write)); in emit_store_ssbo() 339 emit_instruction(new AluInstruction(op1_mov, addr_vec.reg_i(2), Value::zero, last_write)); in emit_store_ssbo() [all …]
|
D | sfn_instruction_alu.h | 80 class AluInstruction : public Instruction { 87 AluInstruction(EAluOp opcode); 88 AluInstruction(EAluOp opcode, PValue dest, 92 AluInstruction(EAluOp opcode, PValue dest, PValue src0, 95 AluInstruction(EAluOp opcode, PValue dest, 99 AluInstruction(EAluOp opcode, PValue dest, PValue src0, PValue src1,
|
D | sfn_emittexinstruction.cpp | 144 emit_instruction(new AluInstruction(op1_mov, src_elms[3], tex_src.comperator, in emit_cube_txd() 152 …emit_instruction(new AluInstruction(op2_mul_ieee, tex_src.ddx.reg_i(i), {tex_src.ddx.reg_i(i), hal… in emit_cube_txd() 156 …emit_instruction(new AluInstruction(op2_mul_ieee, tex_src.ddy.reg_i(i), {tex_src.ddy.reg_i(i), hal… in emit_cube_txd() 213 auto *ir = new AluInstruction(op1_mov, src_elms[3], tex_src.lod, in emit_cube_txl() 288 emit_instruction(new AluInstruction(op1_mov, src_elms[3], tex_src.bias, in emit_cube_txb() 291 emit_instruction(new AluInstruction(op1_mov, src_elms[3], tex_src.comperator, in emit_cube_txb() 327 emit_instruction(new AluInstruction(op1_mov, src_elms[3], tex_src.comperator, in emit_cube_tex() 351 AluInstruction *ir = nullptr; in emit_cube_prep() 356 ir = new AluInstruction(op2_cube, cubed.reg_i(i), coord.reg_i(src0_chan[i]), in emit_cube_prep() 363 …ir = new AluInstruction(op1_recip_ieee, cubed.reg_i(2), cubed.reg_i(2), {alu_write, alu_last_instr… in emit_cube_prep() [all …]
|
D | sfn_shader_fragment.cpp | 284 … emit_instruction(new AluInstruction(op1_recip_ieee, reg, reg, {alu_write, alu_last_instr})); in emit_shader_start() 292 …emit_instruction(new AluInstruction(op1_mov, m_helper_invocation, literal(-1), {alu_write, alu_las… in emit_shader_start() 376 …emit_instruction(new AluInstruction(op2_lshl_int, dest, Value::one_i, m_sample_id_reg, EmitInstruc… in emit_load_sample_mask_in() 377 …emit_instruction(new AluInstruction(op2_and_int, dest, dest, m_sample_mask_reg, EmitInstruction::l… in emit_load_sample_mask_in() 414 auto ir = new AluInstruction(op2_setge_dx10, m_front_face_reg, m_front_face_reg, in load_front_face() 488 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(0), {grad.reg_i(0), slope.reg_i(2), in… in emit_interp_deref_at_sample() 489 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(1), {grad.reg_i(1), slope.reg_i(2), in… in emit_interp_deref_at_sample() 491 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(0), {grad.reg_i(2), slope.reg_i(3), sl… in emit_interp_deref_at_sample() 492 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(1), {grad.reg_i(3), slope.reg_i(3), sl… in emit_interp_deref_at_sample() 541 …emit_instruction(new AluInstruction(op3_muladd, help.reg_i(0), help.reg_i(0), ofs_x, interpolator.… in emit_interp_deref_at_offset() [all …]
|
D | sfn_shader_base.cpp | 367 void ShaderFromNirProcessor::emit_instruction(AluInstruction *ir) in emit_instruction() 477 AluInstruction *pred = new AluInstruction(op2_pred_setne_int, PValue(new GPRValue(0,0)), in emit_if_start() 539 emit_instruction(new AluInstruction(op1_mov, src, Value::zero, {alu_write, alu_last_instr})); in emit_load_tcs_param_base() 723 AluInstruction *ir = new AluInstruction(op0_group_barrier); in emit_barrier() 733 auto ir = new AluInstruction(op1_mov, from_nir(dest, 0), value, {alu_write}); in load_preloaded_value() 849 AluInstruction *ir = nullptr; in vec_from_nir_with_fetch_constant() 853 ir = new AluInstruction(op1_mov, result[i], from_nir(src, swizzle[i]), in vec_from_nir_with_fetch_constant() 905 AluInstruction *ir = nullptr; in emit_load_ubo_vec4() 913 ir = new AluInstruction(op1_mov, from_nir(instr->dest, i), u, {alu_write}); in emit_load_ubo_vec4() 923 AluInstruction *ir = nullptr; in emit_load_ubo_vec4() [all …]
|
D | sfn_shader_tess_eval.cpp | 107 …emit_instruction(new AluInstruction(op2_add, m_tess_coord[2], Value::one_f, m_tess_coord[0], {alu_… in load_tess_z_coord() 108 …emit_instruction(new AluInstruction(op2_add, m_tess_coord[2], m_tess_coord[2], m_tess_coord[1], {a… in load_tess_z_coord() 153 emit_instruction(new AluInstruction(op2_add, m_tess_coord[2], m_tess_coord[2], in emit_load_tess_coord() 155 emit_instruction(new AluInstruction(op2_add, m_tess_coord[2], m_tess_coord[2], in emit_load_tess_coord()
|
D | sfn_instruction_cf.h | 46 IfInstruction(AluInstruction *pred); 47 const AluInstruction& pred() const {return *m_pred;} in pred() 52 std::shared_ptr<AluInstruction> m_pred;
|
D | sfn_shader_base.h | 74 void emit_instruction(AluInstruction *ir); 164 …AluInstruction *emit_load_literal(const nir_load_const_instr *literal, const nir_src& src, unsigne… 226 AluInstruction *last_emitted_alu;
|
D | sfn_shader_geometry.cpp | 184 …emit_instruction(new AluInstruction(op1_mov, m_export_base, Value::zero, {alu_write, alu_last_inst… in do_allocate_reserved_registers() 210 AluInstruction *ir = nullptr; in emit_adj_fix() 213 ir = new AluInstruction(op3_cnde_int, adjhelp[i], in emit_adj_fix() 282 emit_instruction(new AluInstruction(op2_add_int, m_export_base, m_export_base, in emit_vertex()
|
D | sfn_emitaluinstruction.h | 103 void make_last(AluInstruction *ir) const; 115 inline void EmitAluInstruction::make_last(AluInstruction *ir) const in make_last()
|
D | sfn_vertexstageexport.cpp | 233 AluInstruction *ir = nullptr; in emit_clip_vertices() 235 ir = new AluInstruction(op2_dot4_ieee, clip_dist[oreg].reg_i(j), m_clip_vertex.reg_i(j), in emit_clip_vertices() 336 AluInstruction *alu = nullptr; in emit_stream() 339 alu = new AluInstruction(op1_mov, dst, so_gpr[i]->reg_i(j + sc), {alu_write}); in emit_stream()
|
D | sfn_emitinstruction.h | 73 void emit_instruction(AluInstruction *ir);
|
D | sfn_shader_compute.cpp | 93 emit_instruction(new AluInstruction(op1_mov, a_zero, Value::zero, EmitInstruction::last_write)); in emit_load_num_work_groups()
|
D | sfn_instruction_cf.cpp | 43 IfInstruction::IfInstruction(AluInstruction *pred): in IfInstruction()
|
D | sfn_emitinstruction.cpp | 83 void EmitInstruction::emit_instruction(AluInstruction *ir) in emit_instruction()
|
D | sfn_ir_to_assembly.cpp | 49 bool emit_alu(const AluInstruction& ai, ECFAluOpCode cf_op); 165 return emit_alu(static_cast<const AluInstruction&>(*i), cf_alu_undefined); in emit() 241 bool AssemblyFromShaderLegacyImpl::emit_alu(const AluInstruction& ai, ECFAluOpCode cf_op) in emit_alu() 308 alu.src[i].neg = ai.flag(AluInstruction::src_neg_flags[i]); in emit_alu() 323 alu.src[i].abs = ai.flag(AluInstruction::src_abs_flags[i]); in emit_alu()
|
D | sfn_liverange.cpp | 800 static_cast<const AluInstruction&>(*ir).flag(alu_last_instr)) in run()
|