/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | inst_buff_addr_check_pass.cpp | 23 Instruction* ref_inst, InstructionBuilder* builder) { in CloneOriginalReference() argument 26 (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) && in CloneOriginalReference() 28 std::unique_ptr<Instruction> new_ref_inst(ref_inst->Clone(context())); in CloneOriginalReference() 29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference() 37 uid2offset_[added_inst->unique_id()] = uid2offset_[ref_inst->unique_id()]; in CloneOriginalReference() 43 bool InstBuffAddrCheckPass::IsPhysicalBuffAddrReference(Instruction* ref_inst) { in IsPhysicalBuffAddrReference() argument 44 if (ref_inst->opcode() != SpvOpLoad && ref_inst->opcode() != SpvOpStore) in IsPhysicalBuffAddrReference() 46 uint32_t ptr_id = ref_inst->GetSingleWordInOperand(0); in IsPhysicalBuffAddrReference() 61 uint32_t stage_idx, Instruction* ref_inst, in GenCheckCode() argument 81 uint32_t new_ref_id = CloneOriginalReference(ref_inst, &builder); in GenCheckCode() [all …]
|
D | inst_bindless_check_pass.cpp | 99 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference() 100 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference() 112 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference() 168 bool InstBindlessCheckPass::AnalyzeDescriptorReference(Instruction* ref_inst, in AnalyzeDescriptorReference() argument 170 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference() 171 if (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) { in AnalyzeDescriptorReference() 173 ref->ptr_id = ref_inst->GetSingleWordInOperand(kSpvLoadPtrIdInIdx); in AnalyzeDescriptorReference() 208 ref->image_id = GetImageId(ref_inst); in AnalyzeDescriptorReference() 283 GenDebugStreamWrite(uid2offset_[ref->ref_inst->unique_id()], stage_idx, in GenCheckCode() 288 uint32_t ref_type_id = ref->ref_inst->type_id(); in GenCheckCode() [all …]
|
D | inst_buff_addr_check_pass.h | 62 uint32_t GenSearchAndTest(Instruction* ref_inst, InstructionBuilder* builder, 103 bool IsPhysicalBuffAddrReference(Instruction* ref_inst); 106 uint32_t CloneOriginalReference(Instruction* ref_inst, 117 uint32_t stage_idx, Instruction* ref_inst,
|
D | inst_bindless_check_pass.h | 129 Instruction* ref_inst; member 146 bool AnalyzeDescriptorReference(Instruction* ref_inst, ref_analysis* ref);
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | inst_buff_addr_check_pass.cpp | 23 Instruction* ref_inst, InstructionBuilder* builder) { in CloneOriginalReference() argument 26 (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) && in CloneOriginalReference() 28 std::unique_ptr<Instruction> new_ref_inst(ref_inst->Clone(context())); in CloneOriginalReference() 29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference() 37 uid2offset_[added_inst->unique_id()] = uid2offset_[ref_inst->unique_id()]; in CloneOriginalReference() 43 bool InstBuffAddrCheckPass::IsPhysicalBuffAddrReference(Instruction* ref_inst) { in IsPhysicalBuffAddrReference() argument 44 if (ref_inst->opcode() != SpvOpLoad && ref_inst->opcode() != SpvOpStore) in IsPhysicalBuffAddrReference() 46 uint32_t ptr_id = ref_inst->GetSingleWordInOperand(0); in IsPhysicalBuffAddrReference() 61 uint32_t stage_idx, Instruction* ref_inst, in GenCheckCode() argument 81 uint32_t new_ref_id = CloneOriginalReference(ref_inst, &builder); in GenCheckCode() [all …]
|
D | inst_bindless_check_pass.cpp | 99 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference() 100 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference() 112 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference() 168 bool InstBindlessCheckPass::AnalyzeDescriptorReference(Instruction* ref_inst, in AnalyzeDescriptorReference() argument 170 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference() 171 if (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) { in AnalyzeDescriptorReference() 173 ref->ptr_id = ref_inst->GetSingleWordInOperand(kSpvLoadPtrIdInIdx); in AnalyzeDescriptorReference() 208 ref->image_id = GetImageId(ref_inst); in AnalyzeDescriptorReference() 283 GenDebugStreamWrite(uid2offset_[ref->ref_inst->unique_id()], stage_idx, in GenCheckCode() 288 uint32_t ref_type_id = ref->ref_inst->type_id(); in GenCheckCode() [all …]
|
D | inst_buff_addr_check_pass.h | 62 uint32_t GenSearchAndTest(Instruction* ref_inst, InstructionBuilder* builder, 103 bool IsPhysicalBuffAddrReference(Instruction* ref_inst); 106 uint32_t CloneOriginalReference(Instruction* ref_inst, 117 uint32_t stage_idx, Instruction* ref_inst,
|
D | inst_bindless_check_pass.h | 129 Instruction* ref_inst; member 146 bool AnalyzeDescriptorReference(Instruction* ref_inst, ref_analysis* ref);
|
/external/angle/third_party/spirv-tools/src/source/opt/ |
D | inst_buff_addr_check_pass.cpp | 23 Instruction* ref_inst, InstructionBuilder* builder) { in CloneOriginalReference() argument 26 (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) && in CloneOriginalReference() 28 std::unique_ptr<Instruction> new_ref_inst(ref_inst->Clone(context())); in CloneOriginalReference() 29 uint32_t ref_result_id = ref_inst->result_id(); in CloneOriginalReference() 37 uid2offset_[added_inst->unique_id()] = uid2offset_[ref_inst->unique_id()]; in CloneOriginalReference() 43 bool InstBuffAddrCheckPass::IsPhysicalBuffAddrReference(Instruction* ref_inst) { in IsPhysicalBuffAddrReference() argument 44 if (ref_inst->opcode() != SpvOpLoad && ref_inst->opcode() != SpvOpStore) in IsPhysicalBuffAddrReference() 46 uint32_t ptr_id = ref_inst->GetSingleWordInOperand(0); in IsPhysicalBuffAddrReference() 61 uint32_t stage_idx, Instruction* ref_inst, in GenCheckCode() argument 81 uint32_t new_ref_id = CloneOriginalReference(ref_inst, &builder); in GenCheckCode() [all …]
|
D | inst_bindless_check_pass.cpp | 99 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference() 100 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference() 112 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference() 168 bool InstBindlessCheckPass::AnalyzeDescriptorReference(Instruction* ref_inst, in AnalyzeDescriptorReference() argument 170 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference() 171 if (ref_inst->opcode() == SpvOpLoad || ref_inst->opcode() == SpvOpStore) { in AnalyzeDescriptorReference() 173 ref->ptr_id = ref_inst->GetSingleWordInOperand(kSpvLoadPtrIdInIdx); in AnalyzeDescriptorReference() 208 ref->image_id = GetImageId(ref_inst); in AnalyzeDescriptorReference() 283 GenDebugStreamWrite(uid2offset_[ref->ref_inst->unique_id()], stage_idx, in GenCheckCode() 288 uint32_t ref_type_id = ref->ref_inst->type_id(); in GenCheckCode() [all …]
|
D | inst_buff_addr_check_pass.h | 62 uint32_t GenSearchAndTest(Instruction* ref_inst, InstructionBuilder* builder, 103 bool IsPhysicalBuffAddrReference(Instruction* ref_inst); 106 uint32_t CloneOriginalReference(Instruction* ref_inst, 117 uint32_t stage_idx, Instruction* ref_inst,
|
D | inst_bindless_check_pass.h | 129 Instruction* ref_inst; member 146 bool AnalyzeDescriptorReference(Instruction* ref_inst, ref_analysis* ref);
|