Home
last modified time | relevance | path

Searched refs:new_inst (Results 1 – 24 of 24) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_lowering.c135 struct tgsi_full_instruction new_inst; in create_mov() local
137 new_inst = tgsi_default_full_instruction(); in create_mov()
138 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in create_mov()
139 new_inst.Instruction.Saturate = saturate; in create_mov()
140 new_inst.Instruction.NumDstRegs = 1; in create_mov()
141 reg_dst(&new_inst.Dst[0], dst, mask); in create_mov()
142 new_inst.Instruction.NumSrcRegs = 1; in create_mov()
143 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in create_mov()
144 tctx->emit_instruction(tctx, &new_inst); in create_mov()
203 struct tgsi_full_instruction new_inst; in transform_dst() local
[all …]
Dtgsi_emulate.c66 struct tgsi_full_instruction new_inst; in passthrough_edgeflag() local
84 new_inst = tgsi_default_full_instruction(); in passthrough_edgeflag()
85 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in passthrough_edgeflag()
87 new_inst.Instruction.NumDstRegs = 1; in passthrough_edgeflag()
88 new_inst.Dst[0].Register.File = TGSI_FILE_OUTPUT; in passthrough_edgeflag()
89 new_inst.Dst[0].Register.Index = ctx->info.num_outputs; in passthrough_edgeflag()
90 new_inst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XYZW; in passthrough_edgeflag()
92 new_inst.Instruction.NumSrcRegs = 1; in passthrough_edgeflag()
93 new_inst.Src[0].Register.File = TGSI_FILE_INPUT; in passthrough_edgeflag()
94 new_inst.Src[0].Register.Index = ctx->info.num_inputs; in passthrough_edgeflag()
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs_draw.c226 struct tgsi_full_instruction new_inst; in transform_inst() local
248 new_inst = tgsi_default_full_instruction(); in transform_inst()
249 new_inst.Instruction.Opcode = TGSI_OPCODE_MOV; in transform_inst()
250 new_inst.Instruction.NumDstRegs = 1; in transform_inst()
251 new_inst.Dst[0].Register.File = TGSI_FILE_OUTPUT; in transform_inst()
252 new_inst.Dst[0].Register.Index = vsctx->pos_output; in transform_inst()
253 new_inst.Dst[0].Register.WriteMask = TGSI_WRITEMASK_XYZW; in transform_inst()
254 new_inst.Instruction.NumSrcRegs = 1; in transform_inst()
255 new_inst.Src[0].Register.File = TGSI_FILE_TEMPORARY; in transform_inst()
256 new_inst.Src[0].Register.Index = vsctx->pos_temp; in transform_inst()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_vert_fc.c111 struct rc_instruction * new_inst = in lower_bgnloop() local
129 new_inst->U.I.Opcode = RC_ME_PRED_SEQ; in lower_bgnloop()
130 build_pred_dst(&new_inst->U.I.DstReg, fc_state); in lower_bgnloop()
131 new_inst->U.I.SrcReg[0].Index = 0; in lower_bgnloop()
132 new_inst->U.I.SrcReg[0].File = RC_FILE_NONE; in lower_bgnloop()
133 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop()
141 build_pred_src(&new_inst->U.I.SrcReg[0], fc_state); in lower_bgnloop()
149 new_inst->U.I.Opcode = RC_OPCODE_ADD; in lower_bgnloop()
150 build_pred_dst(&new_inst->U.I.DstReg, fc_state); in lower_bgnloop()
151 new_inst->U.I.SrcReg[1].Index = 0; in lower_bgnloop()
[all …]
Dr3xx_vertprog.c681 struct rc_instruction *new_inst; in transform_nonnative_modifiers() local
688 new_inst = rc_insert_new_instruction(c, inst->Prev); in transform_nonnative_modifiers()
689 new_inst->U.I.Opcode = RC_OPCODE_MAX; in transform_nonnative_modifiers()
690 new_inst->U.I.DstReg.File = RC_FILE_TEMPORARY; in transform_nonnative_modifiers()
691 new_inst->U.I.DstReg.Index = temp; in transform_nonnative_modifiers()
692 new_inst->U.I.SrcReg[0] = inst->U.I.SrcReg[i]; in transform_nonnative_modifiers()
693 new_inst->U.I.SrcReg[1] = inst->U.I.SrcReg[i]; in transform_nonnative_modifiers()
694 new_inst->U.I.SrcReg[1].Negate ^= RC_MASK_XYZW; in transform_nonnative_modifiers()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dflatten_decoration_pass.cpp92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() local
93 new_inst->SetInOperand(0, Words{target}); in Process()
94 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
117 std::unique_ptr<Instruction> new_inst(new Instruction( in Process() local
119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
Ddecoration_manager.cpp112 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() local
114 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom()
115 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom()
405 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local
406 new_inst->SetInOperand(0, {to}); in CloneDecorations()
407 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
460 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local
461 new_inst->SetInOperand(0, {to}); in CloneDecorations()
462 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
Dloop_unroller.cpp120 new_inst.clear(); in NextIterationState()
160 std::unordered_map<uint32_t, uint32_t> new_inst; member
681 state_.ids_to_new_inst[state_.new_inst[master_copy->result_id()]]; in CopyBody()
687 state_.new_inst[master_copy->result_id()] = GetPhiDefID( in CopyBody()
691 state_.new_inst[master_copy->result_id()] = master_copy->result_id(); in CopyBody()
702 state_.new_inst[loop->GetHeaderBlock()->id()] = loop->GetHeaderBlock()->id(); in CopyBody()
763 state_.new_inst.clear(); in CloseUnrolledLoop()
768 state_.new_inst[induction->result_id()] = initalizer_id; in CloseUnrolledLoop()
842 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds()
860 state_.new_inst[old_id] = inst.result_id(); in AssignNewResultIds()
[all …]
Dir_builder.h134 std::unique_ptr<Instruction> new_inst(new Instruction(
137 return AddInstruction(std::move(new_inst));
417 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract()
420 return AddInstruction(std::move(new_inst)); in AddCompositeExtract()
441 std::unique_ptr<Instruction> new_inst( in AddAccessChain()
444 return AddInstruction(std::move(new_inst)); in AddAccessChain()
452 std::unique_ptr<Instruction> new_inst( in AddLoad()
455 return AddInstruction(std::move(new_inst)); in AddLoad()
Dloop_utils.cpp578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() local
579 new_inst != new_bb->end(); ++new_inst, ++old_inst) { in CloneLoop()
580 cloning_result->ptr_map_[&*new_inst] = &*old_inst; in CloneLoop()
581 if (new_inst->HasResultId()) { in CloneLoop()
583 new_inst->SetResultId(context_->TakeNextId()); in CloneLoop()
585 new_inst->result_id(); in CloneLoop()
588 def_use_mgr->AnalyzeInstDef(&*new_inst); in CloneLoop()
Dconstants.cpp170 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule() local
171 if (!new_inst) { in BuildInstructionAndAddToModule()
174 auto* new_inst_ptr = new_inst.get(); in BuildInstructionAndAddToModule()
175 *pos = pos->InsertBefore(std::move(new_inst)); in BuildInstructionAndAddToModule()
Dlocal_access_chain_convert_pass.cpp76 std::vector<std::unique_ptr<Instruction>> new_inst; in ReplaceAccessChainLoad() local
80 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad()
83 original_load->InsertBefore(std::move(new_inst)); in ReplaceAccessChainLoad()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dflatten_decoration_pass.cpp92 std::unique_ptr<Instruction> new_inst(inst_iter->Clone(context())); in Process() local
93 new_inst->SetInOperand(0, Words{target}); in Process()
94 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
117 std::unique_ptr<Instruction> new_inst(new Instruction( in Process() local
119 inst_iter = inst_iter.InsertBefore(std::move(new_inst)); in Process()
Dir_builder.h134 std::unique_ptr<Instruction> new_inst(new Instruction(
137 return AddInstruction(std::move(new_inst));
417 std::unique_ptr<Instruction> new_inst( in AddCompositeExtract()
420 return AddInstruction(std::move(new_inst)); in AddCompositeExtract()
441 std::unique_ptr<Instruction> new_inst( in AddAccessChain()
444 return AddInstruction(std::move(new_inst)); in AddAccessChain()
452 std::unique_ptr<Instruction> new_inst( in AddLoad()
455 return AddInstruction(std::move(new_inst)); in AddLoad()
463 std::unique_ptr<Instruction> new_inst( in AddStore()
465 return AddInstruction(std::move(new_inst)); in AddStore()
Ddecoration_manager.cpp112 std::unique_ptr<Instruction> new_inst( in RemoveDecorationsFrom() local
114 new_inst->SetInOperand(0, {id}); in RemoveDecorationsFrom()
115 module_->AddAnnotationInst(std::move(new_inst)); in RemoveDecorationsFrom()
405 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local
406 new_inst->SetInOperand(0, {to}); in CloneDecorations()
407 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
460 std::unique_ptr<Instruction> new_inst(inst->Clone(module_->context())); in CloneDecorations() local
461 new_inst->SetInOperand(0, {to}); in CloneDecorations()
462 module_->AddAnnotationInst(std::move(new_inst)); in CloneDecorations()
Dloop_unroller.cpp120 new_inst.clear(); in NextIterationState()
160 std::unordered_map<uint32_t, uint32_t> new_inst; member
681 state_.ids_to_new_inst[state_.new_inst[master_copy->result_id()]]; in CopyBody()
687 state_.new_inst[master_copy->result_id()] = GetPhiDefID( in CopyBody()
691 state_.new_inst[master_copy->result_id()] = master_copy->result_id(); in CopyBody()
702 state_.new_inst[loop->GetHeaderBlock()->id()] = loop->GetHeaderBlock()->id(); in CopyBody()
763 state_.new_inst.clear(); in CloseUnrolledLoop()
768 state_.new_inst[induction->result_id()] = initalizer_id; in CloseUnrolledLoop()
842 state_.new_inst[basic_block->GetLabelInst()->result_id()] = new_label_id; in AssignNewResultIds()
860 state_.new_inst[old_id] = inst.result_id(); in AssignNewResultIds()
[all …]
Dloop_utils.cpp578 for (auto new_inst = new_bb->begin(), old_inst = old_bb->begin(); in CloneLoop() local
579 new_inst != new_bb->end(); ++new_inst, ++old_inst) { in CloneLoop()
580 cloning_result->ptr_map_[&*new_inst] = &*old_inst; in CloneLoop()
581 if (new_inst->HasResultId()) { in CloneLoop()
583 new_inst->SetResultId(context_->TakeNextId()); in CloneLoop()
585 new_inst->result_id(); in CloneLoop()
588 def_use_mgr->AnalyzeInstDef(&*new_inst); in CloneLoop()
Dconstants.cpp170 auto new_inst = CreateInstruction(new_id, new_const, type_id); in BuildInstructionAndAddToModule() local
171 if (!new_inst) { in BuildInstructionAndAddToModule()
174 auto* new_inst_ptr = new_inst.get(); in BuildInstructionAndAddToModule()
175 *pos = pos->InsertBefore(std::move(new_inst)); in BuildInstructionAndAddToModule()
Dlocal_access_chain_convert_pass.cpp76 std::vector<std::unique_ptr<Instruction>> new_inst; in ReplaceAccessChainLoad() local
80 BuildAndAppendVarLoad(address_inst, &varId, &varPteTypeId, &new_inst); in ReplaceAccessChainLoad()
83 original_load->InsertBefore(std::move(new_inst)); in ReplaceAccessChainLoad()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c460 struct rc_instruction * new_inst = in add_instruction() local
463 parse_rc_normal_instruction(new_inst, inst_string); in add_instruction()
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_visitor.cpp77 vec4_instruction *new_inst) in emit_before() argument
79 new_inst->ir = inst->ir; in emit_before()
80 new_inst->annotation = inst->annotation; in emit_before()
82 inst->insert_before(block, new_inst); in emit_before()
Dbrw_vec4.h185 vec4_instruction *new_inst);
Dbrw_fs_nir.cpp1664 fs_inst *new_inst = new(mem_ctx) fs_inst(inst); in emit_percomp() local
1665 new_inst->dst = offset(new_inst->dst, bld, i); in emit_percomp()
1666 for (unsigned j = 0; j < new_inst->sources; j++) in emit_percomp()
1667 if (new_inst->src[j].file == VGRF) in emit_percomp()
1668 new_inst->src[j] = offset(new_inst->src[j], bld, i); in emit_percomp()
1670 bld.emit(new_inst); in emit_percomp()
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp3039 glsl_to_tgsi_instruction *inst, *new_inst; in visit() local
3041 new_inst = emit_asm(ir, inst->op, l, inst->src[0], inst->src[1], inst->src[2], inst->src[3]); in visit()
3042 new_inst->saturate = inst->saturate; in visit()
3043 new_inst->resource = inst->resource; in visit()