/external/swiftshader/src/Pipeline/ |
D | SpirvShaderMemory.cpp | 41 if(pointerTy.storageClass == spv::StorageClassUniformConstant) in EmitLoad() 62 auto p = GetElementPointer(ptr, el.offset, pointerTy.storageClass); in EmitLoad() 72 auto p = GetElementPointer(ptr, el.offset, pointerTy.storageClass); in EmitLoad() 111 if(shader.StoresInHelperInvocationsHaveNoEffect(pointerTy.storageClass)) in Store() 122 auto p = GetElementPointer(ptr, el.offset, pointerTy.storageClass); in Store() 129 auto p = GetElementPointer(ptr, el.offset, pointerTy.storageClass); in Store() 141 switch(objectTy.storageClass) in EmitVariable() 220 UNREACHABLE("Storage class %d", objectTy.storageClass); in EmitVariable() 232 switch(objectTy.storageClass) in EmitVariable() 243 auto p = GetElementPointer(ptr, el.offset, objectTy.storageClass); in EmitVariable() [all …]
|
D | SpirvShader.cpp | 262 auto storageClass = static_cast<spv::StorageClass>(insn.word(3)); local 269 ASSERT(getType(typeId).storageClass == storageClass); 271 switch(storageClass) 303 UNSUPPORTED("StorageClass %d not yet supported", (int)storageClass); 315 UNREACHABLE("Unexpected StorageClass %d", storageClass); // See Appendix A of the Vulkan spec. 869 type.storageClass = static_cast<spv::StorageClass>(insn.word(2)); in DeclareType() 902 …ASSERT(objectTy.storageClass == spv::StorageClassInput || objectTy.storageClass == spv::StorageCla… in ProcessInterfaceVariable() 907 …auto &builtinInterface = (objectTy.storageClass == spv::StorageClassInput) ? inputBuiltins : outpu… in ProcessInterfaceVariable() 908 auto &userDefinedInterface = (objectTy.storageClass == spv::StorageClassInput) ? inputs : outputs; in ProcessInterfaceVariable() 1363 auto storageClass = shader.getType(baseObject).storageClass; in WalkAccessChain() local [all …]
|
D | SpirvShader.hpp | 335 spv::StorageClass storageClass = static_cast<spv::StorageClass>(-1); member in sw::Spirv::Type 963 static bool StoresInHelperInvocationsHaveNoEffect(spv::StorageClass storageClass); 964 static bool IsExplicitLayout(spv::StorageClass storageClass); 1432 static bool IsStorageInterleavedByLane(spv::StorageClass storageClass); 1433 …ointer GetElementPointer(SIMD::Pointer structure, uint32_t offset, spv::StorageClass storageClass);
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | spv_utils.cpp | 1268 spv::StorageClass storageClass, 1273 spv::StorageClass storageClass, 1360 spv::StorageClass storageClass, in transformTypePointer() argument 1382 if (storageClass != spv::StorageClassOutput && storageClass != spv::StorageClassInput) in transformTypePointer() 1403 spv::StorageClass storageClass, in transformVariable() argument 1406 ASSERT(storageClass == spv::StorageClassOutput || storageClass == spv::StorageClassInput); in transformVariable() 1426 void visitTypePointer(spirv::IdResult id, spv::StorageClass storageClass, spirv::IdRef typeId); 1431 spv::StorageClass storageClass, 1437 spv::StorageClass storageClass, 1472 spv::StorageClass storageClass, in visitTypePointer() argument [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeCooperativeMatrixTests.cpp | 101 StorageClass storageClass; member 164 …if ((m_data.storageClass == SC_WORKGROUP_VARIABLE_POINTERS || m_data.storageClass == SC_BUFFER_VAR… in checkSupport() 170 if (m_data.storageClass == SC_PHYSICAL_STORAGE_BUFFER && !context.isBufferDeviceAddressSupported()) in checkSupport() 305 …if (m_data.storageClass == SC_BUFFER_VARIABLE_POINTERS || m_data.storageClass == SC_WORKGROUP_VARI… in initPrograms() 345 if (m_data.storageClass == SC_PHYSICAL_STORAGE_BUFFER) in initPrograms() 361 if (m_data.storageClass == SC_WORKGROUP || m_data.storageClass == SC_WORKGROUP_VARIABLE_POINTERS) in initPrograms() 394 if (m_data.storageClass == SC_PHYSICAL_STORAGE_BUFFER) in initPrograms() 418 if (m_data.storageClass == SC_WORKGROUP || m_data.storageClass == SC_WORKGROUP_VARIABLE_POINTERS) in initPrograms() 457 if (m_data.storageClass == SC_WORKGROUP || m_data.storageClass == SC_WORKGROUP_VARIABLE_POINTERS) in initPrograms() 546 if (m_data.storageClass == SC_WORKGROUP || m_data.storageClass == SC_WORKGROUP_VARIABLE_POINTERS) in initPrograms() [all …]
|
/external/angle/src/compiler/translator/spirv/ |
D | BuildSPIRV.h | 129 spv::StorageClass storageClass; member 133 return id == other.id && storageClass == other.storageClass; 211 ASSERT(key.storageClass < 16); in operator() 212 return key.storageClass | key.id << 4; in operator() 321 spirv::IdRef getTypePointerId(spirv::IdRef typeId, spv::StorageClass storageClass); 410 spv::StorageClass storageClass,
|
D | BuildSPIRV.cpp | 671 spirv::IdRef SPIRVBuilder::getTypePointerId(spirv::IdRef typeId, spv::StorageClass storageClass) in getTypePointerId() argument 673 SpirvIdAndStorageClass key{typeId, storageClass}; in getTypePointerId() 684 spirv::WriteTypePointer(&mSpirvTypePointerDecls, typePointerId, storageClass, typeId); in getTypePointerId() 865 spv::StorageClass storageClass; in predefineCommonTypes() member 890 SpirvIdAndStorageClass key{typeId, info.storageClass}; in predefineCommonTypes() 892 spirv::WriteTypePointer(&mSpirvTypePointerDecls, typePointerId, info.storageClass, in predefineCommonTypes() 1674 spv::StorageClass storageClass, in declareVariable() argument 1680 const bool isFunctionLocal = storageClass == spv::StorageClassFunction; in declareVariable() 1691 const spirv::IdRef typePointerId = getTypePointerId(typeId, storageClass); in declareVariable() 1711 spirv::WriteVariable(spirvSection, typePointerId, variableId, storageClass, initializerId); in declareVariable()
|
D | OutputSPIRV.cpp | 74 spv::StorageClass storageClass = spv::StorageClassMax; member 175 return accessChain.storageClass == spv::StorageClassMax; in IsAccessChainRValue() 214 spv::StorageClass *storageClass); 245 spv::StorageClass storageClass, 524 spv::StorageClass *storageClass) in getSymbolIdAndStorageClass() argument 526 *storageClass = GetStorageClass(type, mCompiler->getShaderType()); in getSymbolIdAndStorageClass() 702 typeId, *storageClass, mBuilder.getDecorations(type), nullptr, name, uniqueId); in getSymbolIdAndStorageClass() 739 spv::StorageClass storageClass, in nodeDataInitLValue() argument 749 data->accessChain.storageClass = storageClass; in nodeDataInitLValue() 902 ASSERT(accessChain.storageClass != spv::StorageClassMax); in accessChainCollapse() [all …]
|
/external/skia/src/sksl/codegen/ |
D | SkSLSPIRVCodeGenerator.cpp | 694 void SPIRVCodeGenerator::writeOpStore(SpvStorageClass_ storageClass, in writeOpStore() argument 701 if (storageClass == SpvStorageClassFunction) { in writeOpStore() 1198 SpvStorageClass_ storageClass; in getFunctionParameterType() local 1202 storageClass = SpvStorageClassUniformConstant; in getFunctionParameterType() 1204 storageClass = SpvStorageClassFunction; in getFunctionParameterType() 1206 return this->getPointerType(parameterType, storageClass); in getFunctionParameterType() 1209 SpvId SPIRVCodeGenerator::getPointerType(const Type& type, SpvStorageClass_ storageClass) { in getPointerType() argument 1211 type, this->memoryLayoutForStorageClass(storageClass), storageClass); in getPointerType() 1215 SpvStorageClass_ storageClass) { in getPointerType() argument 1218 Words{Word::Result(), Word::Number(storageClass), this->getType(type, layout)}, in getPointerType() [all …]
|
D | SkSLSPIRVCodeGenerator.h | 169 SpvId getPointerType(const Type& type, SpvStorageClass_ storageClass); 172 SpvStorageClass_ storageClass); 443 void writeOpStore(SpvStorageClass_ storageClass, SpvId pointer, SpvId value, OutputStream& out); 493 MemoryLayout memoryLayoutForStorageClass(SpvStorageClass_ storageClass);
|
/external/angle/third_party/vulkan-deps/glslang/src/SPIRV/ |
D | SpvPostProcess.cpp | 84 StorageClass storageClass = getStorageClass(inst.getIdOperand(0)); in postProcessType() local 86 switch (storageClass) { in postProcessType() 97 switch (storageClass) { in postProcessType()
|
D | SpvBuilder.cpp | 228 Id Builder::makePointer(StorageClass storageClass, Id pointee) in makePointer() argument 234 if (type->getImmediateOperand(0) == (unsigned)storageClass && in makePointer() 241 type->addImmediateOperand(storageClass); in makePointer() 250 Id Builder::makeForwardPointer(StorageClass storageClass) in makeForwardPointer() argument 256 type->addImmediateOperand(storageClass); in makeForwardPointer() 263 Id Builder::makePointerFromForwardPointer(StorageClass storageClass, Id forwardPointerType, Id poin… in makePointerFromForwardPointer() argument 269 if (type->getImmediateOperand(0) == (unsigned)storageClass && in makePointerFromForwardPointer() 275 type->addImmediateOperand(storageClass); in makePointerFromForwardPointer() 2301 Id Builder::createVariable(Decoration precision, StorageClass storageClass, Id type, const char* na… in createVariable() argument 2304 Id pointerType = makePointer(storageClass, type); in createVariable() [all …]
|
/external/deqp-deps/glslang/SPIRV/ |
D | SpvPostProcess.cpp | 84 StorageClass storageClass = getStorageClass(inst.getIdOperand(0)); in postProcessType() local 86 switch (storageClass) { in postProcessType() 97 switch (storageClass) { in postProcessType()
|
D | SpvBuilder.cpp | 228 Id Builder::makePointer(StorageClass storageClass, Id pointee) in makePointer() argument 234 if (type->getImmediateOperand(0) == (unsigned)storageClass && in makePointer() 241 type->addImmediateOperand(storageClass); in makePointer() 250 Id Builder::makeForwardPointer(StorageClass storageClass) in makeForwardPointer() argument 256 type->addImmediateOperand(storageClass); in makeForwardPointer() 263 Id Builder::makePointerFromForwardPointer(StorageClass storageClass, Id forwardPointerType, Id poin… in makePointerFromForwardPointer() argument 269 if (type->getImmediateOperand(0) == (unsigned)storageClass && in makePointerFromForwardPointer() 275 type->addImmediateOperand(storageClass); in makePointerFromForwardPointer() 2261 Id Builder::createVariable(Decoration precision, StorageClass storageClass, Id type, const char* na… in createVariable() argument 2264 Id pointerType = makePointer(storageClass, type); in createVariable() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 1032 const auto storageClass = words[3]; in CheckDecorationsOfBuffers() local 1033 const bool uniform = storageClass == SpvStorageClassUniform; in CheckDecorationsOfBuffers() 1035 storageClass == SpvStorageClassUniformConstant; in CheckDecorationsOfBuffers() 1036 const bool push_constant = storageClass == SpvStorageClassPushConstant; in CheckDecorationsOfBuffers() 1037 const bool storage_buffer = storageClass == SpvStorageClassStorageBuffer; in CheckDecorationsOfBuffers() 1101 storageClass == SpvStorageClassPhysicalStorageBuffer; in CheckDecorationsOfBuffers() 1103 storageClass == SpvStorageClassWorkgroup && in CheckDecorationsOfBuffers()
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmVariablePointersTests.cpp | 490 std::string storageClass = storageClasses[classId]; in addPhysicalOrVariablePointersComputeGroup() local 491 std::string name = "stores_" + string(de::toLower(storageClass)) + "_" + bufferType; in addPhysicalOrVariablePointersComputeGroup() 492 std::string description = "Test storing variable pointer into " + storageClass + " variable."; in addPhysicalOrVariablePointersComputeGroup() 493 … std::string extraVariable = "%mux_output_copy = OpVariable %sb_f32ptrptr " + storageClass + "\n"; in addPhysicalOrVariablePointersComputeGroup() 494 specs["ExtraTypes"] = "%sb_f32ptrptr = OpTypePointer " + storageClass + " %sb_f32ptr\n"; in addPhysicalOrVariablePointersComputeGroup() 1699 std::string storageClass = storageClasses[classId]; in addVariablePointersGraphicsGroup() local 1700 std::string name = "stores_" + string(de::toLower(storageClass)) + "_" + bufferType; in addVariablePointersGraphicsGroup() 1701 … std::string extraVariable = "%mux_output_copy = OpVariable %sb_f32ptrptr " + storageClass + "\n"; in addVariablePointersGraphicsGroup() 1702 specs["ExtraTypes"] = "%sb_f32ptrptr = OpTypePointer " + storageClass + " %sb_f32\n"; in addVariablePointersGraphicsGroup()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | aggressive_dead_code_elim_pass.h | 68 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass);
|
D | aggressive_dead_code_elim_pass.cpp | 89 bool AggressiveDCEPass::IsVarOfStorage(uint32_t varId, uint32_t storageClass) { in IsVarOfStorage() argument 98 storageClass; in IsVarOfStorage()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | aggressive_dead_code_elim_pass.h | 75 bool IsVarOfStorage(uint32_t varId, spv::StorageClass storageClass);
|
D | aggressive_dead_code_elim_pass.cpp | 87 spv::StorageClass storageClass) { in IsVarOfStorage() argument 96 kTypePointerStorageClassInIdx)) == storageClass; in IsVarOfStorage()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | aggressive_dead_code_elim_pass.h | 75 bool IsVarOfStorage(uint32_t varId, spv::StorageClass storageClass);
|
D | aggressive_dead_code_elim_pass.cpp | 89 spv::StorageClass storageClass) { in IsVarOfStorage() argument 98 kTypePointerStorageClassInIdx)) == storageClass; in IsVarOfStorage()
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 1038 const auto storageClass = inst.GetOperandAs<spv::StorageClass>(2); in CheckDecorationsOfBuffers() local 1039 const bool uniform = storageClass == spv::StorageClass::Uniform; in CheckDecorationsOfBuffers() 1041 storageClass == spv::StorageClass::UniformConstant; in CheckDecorationsOfBuffers() 1043 storageClass == spv::StorageClass::PushConstant; in CheckDecorationsOfBuffers() 1045 storageClass == spv::StorageClass::StorageBuffer; in CheckDecorationsOfBuffers() 1109 storageClass == spv::StorageClass::PhysicalStorageBuffer; in CheckDecorationsOfBuffers() 1111 storageClass == spv::StorageClass::Workgroup && in CheckDecorationsOfBuffers()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/ |
D | validate_decorations.cpp | 1048 const auto storageClass = inst.GetOperandAs<spv::StorageClass>(2); in CheckDecorationsOfBuffers() local 1049 const bool uniform = storageClass == spv::StorageClass::Uniform; in CheckDecorationsOfBuffers() 1051 storageClass == spv::StorageClass::UniformConstant; in CheckDecorationsOfBuffers() 1053 storageClass == spv::StorageClass::PushConstant; in CheckDecorationsOfBuffers() 1055 storageClass == spv::StorageClass::StorageBuffer; in CheckDecorationsOfBuffers() 1119 storageClass == spv::StorageClass::PhysicalStorageBuffer; in CheckDecorationsOfBuffers() 1121 storageClass == spv::StorageClass::Workgroup && in CheckDecorationsOfBuffers()
|
/external/vulkan-validation-layers/layers/ |
D | shader_validation.cpp | 735 uint32_t storageClass) { in CollectBuiltinBlockMembers() argument 780 if (def.word(3) == storageClass) variables.push_back(def.word(1)); in CollectBuiltinBlockMembers() 1859 uint32_t storageClass; in ValidateShaderStageInputOutputLimits() member 1881 var.storageClass = insn.word(3); in ValidateShaderStageInputOutputLimits() 1882 … if (var.storageClass == spv::StorageClassInput || var.storageClass == spv::StorageClassOutput) { in ValidateShaderStageInputOutputLimits() 1918 if (var.storageClass == spv::StorageClassInput) { in ValidateShaderStageInputOutputLimits()
|