Home
last modified time | relevance | path

Searched refs:emit_instruction (Results 1 – 25 of 36) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instr_mem.cpp199 shader.emit_instruction(new AluInstr(op1_mov, temp_src_val, src_val, AluInstr::last_write)); in emit_atomic_op2()
216 …shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal(4), vf.literal(… in emit_atomic_op2()
219 … shader.emit_instruction(new AluInstr(op1_mov, tmp[0], vf.literal(4 * offset), AluInstr::write)); in emit_atomic_op2()
220 shader.emit_instruction(new AluInstr(op1_mov, tmp[1], src_val, AluInstr::last_write)); in emit_atomic_op2()
223 shader.emit_instruction(ir); in emit_atomic_op2()
244 …shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal(4), vf.literal(… in emit_atomic_read()
247 … shader.emit_instruction(new AluInstr(op1_mov, tmp[0], vf.literal(4 * offset), AluInstr::write)); in emit_atomic_read()
252 shader.emit_instruction(ir); in emit_atomic_read()
276 …shader.emit_instruction(new AluInstr(op3_muladd_uint24, tmp[0], uav_id, vf.literal(4), vf.literal(… in emit_atomic_inc()
279 … shader.emit_instruction(new AluInstr(op1_mov, tmp[0], vf.literal(4 * offset), AluInstr::write)); in emit_atomic_inc()
[all …]
Dsfn_shader_fs.cpp92 emit_instruction(ir); in load_input()
104 emit_instruction(ir); in load_input()
169 emit_instruction(new AluInstr(op2_killne_int, nullptr, in process_stage_intrinsic()
177 emit_instruction(new AluInstr(op2_kille_int, nullptr, in process_stage_intrinsic()
316emit_instruction(new AluInstr(op2_lshl_int, tmp, vf.one_i(), m_sample_id_reg, AluInstr::last_write… in emit_load_sample_mask_in()
317 emit_instruction(new AluInstr(op2_and_int, dest, tmp, m_sample_mask_reg, AluInstr::last_write)); in emit_load_sample_mask_in()
325emit_instruction(new AluInstr(op1_mov, m_helper_invocation, vf.literal(-1), AluInstr::last_write)); in emit_load_helper_invocation()
336 emit_instruction(vtx); in emit_load_helper_invocation()
337 emit_instruction(ir); in emit_load_helper_invocation()
530 emit_instruction(m_last_pixel_export); in emit_export_pixel()
[all …]
Dsfn_instr_tex.cpp408 shader.emit_instruction(irt); in emit_tex_tex()
433 shader.emit_instruction(irt); in emit_tex_txl_txb()
461 shader.emit_instruction(new AluInstr(op2_add_int, src_coord[k], src.coord[i], in emit_tex_txf()
465 shader.emit_instruction(new AluInstr(op1_mov, src_coord[k], src.coord[i],AluInstr::write)); in emit_tex_txf()
469 shader.emit_instruction(new AluInstr(op1_mov, src_coord[3], src.lod, AluInstr::last_write)); in emit_tex_txf()
484 shader.emit_instruction(tex_ir); in emit_tex_txf()
509 shader.emit_instruction(ir); in emit_buf_txf()
521 shader.emit_instruction(ir); in emit_buf_txf()
525 shader.emit_instruction(new AluInstr(op2_or_int, dst[3], tmp_w, in emit_buf_txf()
552 shader.emit_instruction(new AluInstr(op1_mov, temp2[k], in emit_tex_tex_ms_direct()
[all …]
Dsfn_shader.cpp230 emit_instruction(ir); in emit_instruction_from_string()
385 emit_instruction(alu); in allocate_reserved_registers()
397 emit_instruction(group); in allocate_reserved_registers()
398emit_instruction(new AluInstr(op3_muladd_uint24, temp2, value_factory().inline_const(ALU_SRC_SE_ID… in allocate_reserved_registers()
400 emit_instruction(new AluInstr(op3_muladd_uint24, m_rat_return_address, in allocate_reserved_registers()
695 emit_instruction(ir); in emit_if_start()
703 emit_instruction(ir); in emit_control_flow()
853 emit_instruction(new AluInstr(op1_mov, dest, src, AluInstr::last_write)); in emit_load_to_register()
875 emit_instruction(new LDSAtomicInstr(op, dest_value, address, src)); in emit_atomic_local_shared()
895 emit_instruction(new AluInstr(op1_mov, uav_id, uav_id_val, in evaluate_resource_offset()
[all …]
Dsfn_shader_gs.cpp177 emit_instruction(new AluInstr(op1_mov, m_export_base[i], zero, AluInstr::last_write)); in do_allocate_reserved_registers()
185 emit_instruction(new EmitVertexInstr(0, true)); in do_allocate_reserved_registers()
227 emit_instruction(v.second); in emit_vertex()
233 emit_instruction(cut_instr); in emit_vertex()
240 emit_instruction(ir); in emit_vertex()
279 emit_instruction(ir); in store_output()
303 emit_instruction(ir); in store_output()
356 emit_instruction(fetch); in emit_load_per_vertex_input()
388 emit_instruction(new AluInstr(op2_and_int, adjhelp0, in emit_adj_fix()
408 emit_instruction(ir); in emit_adj_fix()
Dsfn_instr_alu.cpp1452 shader.emit_instruction(group); in emit_alu_op1_64bit()
1468 shader.emit_instruction(ir); in emit_alu_mov_64bit()
1498 shader.emit_instruction(group); in emit_alu_neg()
1508 shader.emit_instruction(new AluInstr(op1_mov, value_factory.dest(alu.dest, 0, pin_chan), in emit_alu_abs64()
1516 shader.emit_instruction(ir); in emit_alu_abs64()
1572 shader.emit_instruction(group); in emit_alu_op2_64bit()
1604 shader.emit_instruction(ir); in emit_alu_op2_64bit_one_dst()
1632 shader.emit_instruction(group); in emit_alu_op1_64bit_trans()
1666 shader.emit_instruction(group); in emit_alu_fma_64bit()
1693 shader.emit_instruction(group); in emit_alu_b2f64()
[all …]
Dsfn_shader_vs.cpp154 …m_parent->emit_instruction(new AluInstr(op1_mov, primid[0], m_parent->primitive_id(), AluInstr::la… in finalize()
158 m_parent->emit_instruction(m_last_param_export); in finalize()
169 m_parent->emit_instruction(m_last_pos_export); in finalize()
175 m_parent->emit_instruction(m_last_param_export); in finalize()
217 …m_parent->emit_instruction(new AluInstr(op1_mov, clamped, src, {alu_write, alu_dst_clamp, alu_last… in emit_varying_pos()
221 m_parent->emit_instruction(alu); in emit_varying_pos()
257 m_parent->emit_instruction(m_last_pos_export); in emit_varying_pos()
282 m_parent->emit_instruction(alu); in emit_varying_param()
291 m_parent->emit_instruction(m_last_param_export); in emit_varying_param()
357 m_parent->emit_instruction(alu); in emit_stream()
[all …]
Dsfn_shader_tess.cpp120 emit_instruction(new AluInstr(op1_mov, value0[0], value_factory().src(instr->src[0], 0), in store_tess_factor()
122 emit_instruction(new AluInstr(op1_mov, value0[1], value_factory().src(instr->src[0], 1), in store_tess_factor()
128 emit_instruction(new AluInstr(op1_mov, value1[0], value_factory().src(instr->src[0], 2), in store_tess_factor()
130 emit_instruction(new AluInstr(op1_mov, value1[1], value_factory().src(instr->src[0], 3), in store_tess_factor()
132 emit_instruction(new WriteTFInstr(value1)); in store_tess_factor()
135 emit_instruction(new WriteTFInstr(value0)); in store_tess_factor()
Dsfn_instrfactory.cpp147 shader.emit_instruction(new AluInstr(op1_mov, dest0, src0, {alu_write})); in load_const()
151 shader.emit_instruction(new AluInstr(op1_mov, dest1, src1, AluInstr::last_write)); in load_const()
169 shader.emit_instruction(ir); in load_const()
196 shader.emit_instruction(new ControlFlowInstr(type)); in process_jump()
206 shader.emit_instruction(new AluInstr(op1_mov, dest, in process_undef()
Dsfn_shader_cs.cpp94 emit_instruction(new AluInstr(op1_mov, zero, value_factory().inline_const(ALU_SRC_0, 0), in emit_load_num_workgroups()
105 emit_instruction(ir); in emit_load_num_workgroups()
116emit_instruction(new AluInstr(op1_mov, dest, src[i], i == 2 ? AluInstr::last_write : AluInstr::wri… in emit_load_3vec()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_lowering.c145 tctx->emit_instruction(tctx, &new_inst); in create_mov()
225 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
236 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
247 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
258 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
299 tctx->emit_instruction(tctx, &new_inst); in transform_lrp()
311 tctx->emit_instruction(tctx, &new_inst); in transform_lrp()
344 tctx->emit_instruction(tctx, &new_inst); in transform_frc()
355 tctx->emit_instruction(tctx, &new_inst); in transform_frc()
390 tctx->emit_instruction(tctx, &new_inst); in transform_pow()
[all …]
Dtgsi_dynamic_indexing.c146 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
159 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
216 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
226 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
243 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
249 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
269 ctx->emit_instruction(ctx, &inst); in remove_dynamic_indexes()
308 ctx->emit_instruction(ctx, inst); in dIndexing_inst()
Dtgsi_point_sprite.c281 ctx->emit_instruction(ctx, &inst); in psprite_prolog()
333 ctx->emit_instruction(ctx, &inst); in psprite_emit_vertex_inst()
390 ctx->emit_instruction(ctx, &inst); in psprite_emit_vertex_inst()
410 ctx->emit_instruction(ctx, &inst); in psprite_emit_vertex_inst()
424 ctx->emit_instruction(ctx, vert_inst); in psprite_emit_vertex_inst()
433 ctx->emit_instruction(ctx, &inst); in psprite_emit_vertex_inst()
458 ctx->emit_instruction(ctx, inst); in psprite_inst()
480 ctx->emit_instruction(ctx, inst); in psprite_inst()
488 ctx->emit_instruction(ctx, inst); in psprite_inst()
491 ctx->emit_instruction(ctx, inst); in psprite_inst()
Dtgsi_transform.c78 emit_instruction(struct tgsi_transform_context *ctx, in emit_instruction() function
172 ctx->emit_instruction = emit_instruction; in tgsi_transform_shader()
250 ctx->emit_instruction(ctx, fullinst); in tgsi_transform_shader()
281 ctx->emit_instruction(ctx, fullinst); in tgsi_transform_shader()
Dtgsi_transform.h80 void (*emit_instruction)(struct tgsi_transform_context *ctx, member
309 ctx->emit_instruction(ctx, &inst); in tgsi_transform_op1_inst()
338 ctx->emit_instruction(ctx, &inst); in tgsi_transform_op2_inst()
368 ctx->emit_instruction(ctx, &inst); in tgsi_transform_op3_inst()
410 ctx->emit_instruction(ctx, &inst); in tgsi_transform_op1_swz_inst()
461 ctx->emit_instruction(ctx, &inst); in tgsi_transform_op2_swz_inst()
520 ctx->emit_instruction(ctx, &inst); in tgsi_transform_op3_swz_inst()
544 ctx->emit_instruction(ctx, &inst); in tgsi_transform_kill_inst()
572 ctx->emit_instruction(ctx, &inst); in tgsi_transform_tex_inst()
Dtgsi_two_side.c163 ctx->emit_instruction(ctx, &inst); in emit_prolog()
195 ctx->emit_instruction(ctx, inst); in xform_inst()
Dtgsi_vpos.c76 ctx->emit_instruction(ctx, &inst); in write_vpos_prolog()
Dtgsi_aa_point.c234 ctx->emit_instruction(ctx, inst); in aa_inst()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_insn.c353 return (emit_instruction(emit, inst) && in emit_op1()
367 return (emit_instruction(emit, inst) && in emit_op2()
383 return (emit_instruction(emit, inst) && in emit_op3()
401 return (emit_instruction(emit, inst) && in emit_op4()
492 return (emit_instruction( emit, inst ) && in submit_op0()
766 if (!emit_instruction(emit, opcode) || in emit_def_const()
1076 return (emit_instruction( emit, if_token ) && in emit_if()
1086 return emit_instruction(emit, inst_token(SVGA3DOP_ELSE)); in emit_else()
1096 return emit_instruction(emit, inst_token(SVGA3DOP_ENDIF)); in emit_endif()
1934 return (emit_instruction( emit, inst ) && in emit_bgnloop()
[all …]
Dsvga_tgsi_decl_sm30.c120 return (emit_instruction(emit, opcode) && in emit_decl()
414 return (emit_instruction(emit, opcode) && in vs30_input()
513 return (emit_instruction(emit, opcode) && in vs30_output()
555 return (emit_instruction(emit, opcode) && in ps30_sampler()
Dsvga_tgsi_emit.h183 emit_instruction(struct svga_shader_emitter *emit, in emit_instruction() function
/third_party/mesa3d/src/amd/compiler/
Daco_assembler.cpp76 emit_instruction(asm_context& ctx, std::vector<uint32_t>& out, Instruction* instr) in emit_instruction() function
682 emit_instruction(ctx, out, instr); in emit_instruction()
704 emit_instruction(ctx, out, instr); in emit_instruction()
718 emit_instruction(ctx, out, instr); in emit_instruction()
780 emit_instruction(ctx, out, instr.get()); in emit_block()
919 emit_instruction(ctx, out, instr.get()); in emit_long_jump()
924 emit_instruction(ctx, out, instr.get()); in emit_long_jump()
928 emit_instruction(ctx, out, instr.get()); in emit_long_jump()
935 emit_instruction(ctx, out, instr.get()); in emit_long_jump()
937 emit_instruction(ctx, out, instr.get()); in emit_long_jump()
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_vs_draw.c257 ctx->emit_instruction(ctx, &new_inst); in transform_inst()
269 ctx->emit_instruction(ctx, &new_inst); in transform_inst()
308 ctx->emit_instruction(ctx, inst); in transform_inst()
/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_tgsi.c249 ctx->emit_instruction(ctx, &inst); in virgl_tgsi_transform_prolog()
378 ctx->emit_instruction(ctx, &temp_inst); in virgl_tgsi_transform_instruction()
401 ctx->emit_instruction(ctx, &op_to_temp); in virgl_tgsi_transform_instruction()
414 ctx->emit_instruction(ctx, inst); in virgl_tgsi_transform_instruction()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_aaline.c216 ctx->emit_instruction(ctx, &inst); in aa_transform_epilog()
266 ctx->emit_instruction(ctx, inst); in aa_transform_inst()

12