/third_party/glslang/SPIRV/ |
D | disassemble.cpp | 104 void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands); 187 Id resultId = 0; in processInstructions() local 189 resultId = stream[word++]; in processInstructions() 193 idInstruction[resultId] = instructionStart; in processInstructions() 196 outputResultId(resultId); in processInstructions() 201 disassembleInstruction(resultId, typeId, opCode, numOperands); in processInstructions() 320 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands) in disassembleInstruction() argument 334 idDescriptor[resultId] = (const char*)(&stream[word]); in disassembleInstruction() 337 if (resultId != 0 && idDescriptor[resultId].size() == 0) { in disassembleInstruction() 341 case 8: idDescriptor[resultId] = "int8_t"; break; in disassembleInstruction() [all …]
|
D | SpvBuilder.h | 191 Id getTypeId(Id resultId) const { return module.getTypeId(resultId); } in getTypeId() argument 192 Id getDerefTypeId(Id resultId) const; 196 int getNumComponents(Id resultId) const { return getNumTypeComponents(getTypeId(resultId)); } in getNumComponents() argument 206 bool isPointer(Id resultId) const { return isPointerType(getTypeId(resultId)); } in isPointer() argument 207 bool isScalar(Id resultId) const { return isScalarType(getTypeId(resultId)); } in isScalar() argument 208 bool isVector(Id resultId) const { return isVectorType(getTypeId(resultId)); } in isVector() argument 209 bool isMatrix(Id resultId) const { return isMatrixType(getTypeId(resultId)); } in isMatrix() argument 210 …bool isCooperativeMatrix(Id resultId)const { return isCooperativeMatrixType(getTypeId(resultId)); } in isCooperativeMatrix() argument 211 bool isAggregate(Id resultId) const { return isAggregateType(getTypeId(resultId)); } in isAggregate() argument 212 bool isSampledImage(Id resultId) const { return isSampledImageType(getTypeId(resultId)); } in isSampledImage() argument [all …]
|
D | spvIR.h | 96 …Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode… in Instruction() argument 97 …explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode), block(nullpt… in Instruction() 147 Id getResultId() const { return resultId; } in getResultId() 165 if (resultId) in dump() 173 if (resultId) in dump() 174 out.push_back(resultId); in dump() 183 Id resultId; variable 421 spv::Id resultId = instruction->getResultId(); in mapInstruction() local 423 if (resultId >= idToInstruction.size()) in mapInstruction() 424 idToInstruction.resize(resultId + 16); in mapInstruction() [all …]
|
D | SpvPostProcess.cpp | 420 Id resultId = inst.getResultId(); in postProcessFeatures() local 421 if (containsPhysicalStorageBufferOrArray(getDerefTypeId(resultId))) { in postProcessFeatures() 424 if (decoration.get()->getIdOperand(0) == resultId && in postProcessFeatures() 433 addDecoration(resultId, spv::DecorationAliasedPointerEXT); in postProcessFeatures()
|
D | SpvBuilder.cpp | 637 Id Builder::getDerefTypeId(Id resultId) const in getDerefTypeId() 639 Id typeId = getTypeId(resultId); in getDerefTypeId() 2166 Id resultId = textureInst->getResultId(); in createTextureCall() local 2173 createStore(createCompositeExtract(resultId, typeId1, 1), parameters.texelOut); in createTextureCall() 2174 resultId = createCompositeExtract(resultId, typeId0, 0); in createTextureCall() 2175 setPrecision(resultId, precision); in createTextureCall() 2180 resultId = smearScalar(precision, resultId, smearedType); in createTextureCall() 2183 return resultId; in createTextureCall() 2257 Id resultId = NoResult; in createCompositeCompare() local 2284 resultId = createBinOp(op, boolType, value1, value2); in createCompositeCompare() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | SpirvShaderMemory.cpp | 29 Object::ID resultId = insn.word(2); in EmitLoad() local 31 auto &result = getObject(resultId); in EmitLoad() 45 state->createPointer(resultId, ptr); in EmitLoad() 58 auto &dst = state->createIntermediate(resultId, resultTy.componentCount); in EmitLoad() 123 Object::ID resultId = insn.word(2); in EmitVariable() local 124 auto &object = getObject(resultId); in EmitVariable() 134 auto base = &routine->getVariable(resultId)[0]; in EmitVariable() 137 state->createPointer(resultId, SIMD::Pointer(base, size)); in EmitVariable() 145 state->createPointer(resultId, SIMD::Pointer(base, size, workgroupMemory.offsetOf(resultId))); in EmitVariable() 152 auto &dst = routine->getVariable(resultId); in EmitVariable() [all …]
|
D | SpirvShader.cpp | 266 Object::ID resultId = insn.word(2); local 269 auto &object = defs[resultId]; 280 if(interfaceIds.count(resultId)) 301 workgroupMemory.allocate(resultId, sizeInBytes); 530 Object::ID resultId = insn.word(2); local 536 descriptorDecorations[resultId] = d->second; 544 …ApplyDecorationsForAccessChain(&dd, &descriptorDecorations[resultId], pointerId, insn.wordCount() … 547 decorations[resultId].Apply(dd); 792 Type::ID resultId = insn.word(1); in DeclareType() local 794 auto &type = types[resultId]; in DeclareType() [all …]
|
D | SpirvShaderArithmetic.cpp | 27 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitVectorTimesScalar() 42 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitMatrixTimesVector() 62 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitVectorTimesMatrix() 82 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitMatrixTimesMatrix() 109 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitOuterProduct() 130 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitTranspose() 150 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitUnaryOp() 312 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitBinaryOp() 520 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitDot() 527 SPIRV_SHADER_DBG("{0}: {1}", insn.resultId(), dst); in EmitDot()
|
D | SpirvShaderImage.cpp | 104 resultId = insn.resultId(); // word(2) in ImageInstruction() 312 auto &result = state->createIntermediate(instruction.resultId, resultType.componentCount); in EmitImageSample() 455 auto &dst = state->createIntermediate(insn.resultId(), resultTy.componentCount); in EmitImageQuerySizeLod() 467 auto &dst = state->createIntermediate(insn.resultId(), resultTy.componentCount); in EmitImageQuerySize() 558 auto &dst = state->createIntermediate(insn.resultId(), 1); in EmitImageQueryLevels() 593 auto &dst = state->createIntermediate(insn.resultId(), 1); in EmitImageQuerySamples() 710 auto &resultType = getObjectType(instruction.resultId); in EmitImageRead() 737 auto &dst = state->createIntermediate(instruction.resultId, resultType.componentCount); in EmitImageRead() 1426 state->createPointer(instruction.resultId, ptr); in EmitImageTexelPointer() 1436 Object::ID resultId = insn.word(2); in EmitSampledImageCombineOrSplit() local [all …]
|
/third_party/spirv-tools/source/opt/ |
D | strength_reduction_pass.cpp | 159 uint32_t resultId = TakeNextId(); in GetConstantId() local 164 resultId, {constant})); in GetConstantId() 172 constant_ids_[val] = resultId; in GetConstantId()
|
D | inline_pass.cpp | 37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() local 38 if (resultId == 0) { in AddPointerToType() 39 return resultId; in AddPointerToType() 43 new Instruction(context(), SpvOpTypePointer, 0, resultId, in AddPointerToType() 53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 54 return resultId; in AddPointerToType() 101 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument 106 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
|
D | local_access_chain_convert_pass.h | 67 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
|
D | local_access_chain_convert_pass.cpp | 36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst() argument 40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | strength_reduction_pass.cpp | 159 uint32_t resultId = TakeNextId(); in GetConstantId() local 164 resultId, {constant})); in GetConstantId() 172 constant_ids_[val] = resultId; in GetConstantId()
|
D | inline_pass.cpp | 37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() local 38 if (resultId == 0) { in AddPointerToType() 39 return resultId; in AddPointerToType() 43 new Instruction(context(), SpvOpTypePointer, 0, resultId, in AddPointerToType() 53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 54 return resultId; in AddPointerToType() 101 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument 106 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
|
D | local_access_chain_convert_pass.h | 67 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
|
D | local_access_chain_convert_pass.cpp | 36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst() argument 40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | strength_reduction_pass.cpp | 159 uint32_t resultId = TakeNextId(); in GetConstantId() local 164 resultId, {constant})); in GetConstantId() 172 constant_ids_[val] = resultId; in GetConstantId()
|
D | inline_pass.cpp | 37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() local 38 if (resultId == 0) { in AddPointerToType() 39 return resultId; in AddPointerToType() 43 new Instruction(context(), SpvOpTypePointer, 0, resultId, in AddPointerToType() 53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 54 return resultId; in AddPointerToType() 101 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument 106 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
|
D | local_access_chain_convert_pass.h | 67 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
|
D | local_access_chain_convert_pass.cpp | 36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst() argument 40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGFe.cpp | 113 SkSVGStringType resultId; in parse() local 119 } else if (parse(&resultId)) { in parse() 120 *type = SkSVGFeInputType(resultId); in parse()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/ |
D | inline_pass.cpp | 50 uint32_t resultId = TakeNextId(); in AddPointerToType() local 52 SpvOpTypePointer, 0, resultId, in AddPointerToType() 57 return resultId; in AddPointerToType() 96 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument 99 SpvOpLoad, type_id, resultId, in AddLoad()
|
D | local_access_chain_convert_pass.h | 89 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
|
D | local_access_chain_convert_pass.cpp | 140 uint32_t resultId, in BuildAndAppendInst() argument 144 opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
|