Home
last modified time | relevance | path

Searched refs:storageClass (Results 1 – 25 of 34) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderMemory.cpp41 if(pointerTy.storageClass == spv::StorageClassUniformConstant) in EmitLoad()
57 bool interleavedByLane = IsStorageInterleavedByLane(pointerTy.storageClass); in EmitLoad()
59 auto robustness = state->getOutOfBoundsBehavior(pointerTy.storageClass); in EmitLoad()
102 bool interleavedByLane = IsStorageInterleavedByLane(pointerTy.storageClass); in Store()
103 auto robustness = state->getOutOfBoundsBehavior(pointerTy.storageClass); in Store()
106 if(!StoresInHelperInvocation(pointerTy.storageClass)) in Store()
127 switch(objectTy.storageClass) in EmitVariable()
205 UNREACHABLE("Storage class %d", objectTy.storageClass); in EmitVariable()
217 switch(objectTy.storageClass) in EmitVariable()
223 bool interleavedByLane = IsStorageInterleavedByLane(objectTy.storageClass); in EmitVariable()
[all …]
DSpirvShader.cpp267 auto storageClass = static_cast<spv::StorageClass>(insn.word(3)); local
274 ASSERT(getType(typeId).storageClass == storageClass);
276 switch(storageClass)
307 UNSUPPORTED("StorageClass %d not yet supported", (int)storageClass);
319 UNREACHABLE("Unexpected StorageClass %d", storageClass); // See Appendix A of the Vulkan spec.
823 type.storageClass = static_cast<spv::StorageClass>(insn.word(2)); in DeclareType()
856 …ASSERT(objectTy.storageClass == spv::StorageClassInput || objectTy.storageClass == spv::StorageCla… in ProcessInterfaceVariable()
861 …auto &builtinInterface = (objectTy.storageClass == spv::StorageClassInput) ? inputBuiltins : outpu… in ProcessInterfaceVariable()
862 auto &userDefinedInterface = (objectTy.storageClass == spv::StorageClassInput) ? inputs : outputs; in ProcessInterfaceVariable()
1324 if(getType(baseObject).storageClass == spv::StorageClassUniformConstant) in WalkAccessChain()
[all …]
DSpirvShader.hpp313 spv::StorageClass storageClass = static_cast<spv::StorageClass>(-1); member in sw::SpirvShader::Type
960 static bool IsStorageInterleavedByLane(spv::StorageClass storageClass);
961 static bool IsExplicitLayout(spv::StorageClass storageClass);
966 static bool StoresInHelperInvocation(spv::StorageClass storageClass);
1075 OutOfBoundsBehavior getOutOfBoundsBehavior(spv::StorageClass storageClass) const;
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Dglslang_wrapper_utils.cpp1065 void visitTypePointer(spirv::IdResult id, spv::StorageClass storageClass, spirv::IdRef typeId);
1071 spv::StorageClass storageClass,
1284 spv::StorageClass storageClass, in visitTypePointer() argument
1294 if ((typeId == mOutputPerVertex.typeId && storageClass == spv::StorageClassInput) || in visitTypePointer()
1295 (typeId == mInputPerVertex.typeId && storageClass == spv::StorageClassOutput)) in visitTypePointer()
1301 if (storageClass == spv::StorageClassOutput) in visitTypePointer()
1309 if (typeId == mVec4Id && storageClass == spv::StorageClassOutput) in visitTypePointer()
1334 spv::StorageClass storageClass, in visitVariable() argument
1343 storageClass == spv::StorageClassUniform || storageClass == spv::StorageClassStorageBuffer; in visitVariable()
1344 const bool isOpaqueUniform = storageClass == spv::StorageClassUniformConstant; in visitVariable()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/
DvktComputeCooperativeMatrixTests.cpp101 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 …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DBuildSPIRV.h127 spv::StorageClass storageClass; member
131 return id == other.id && storageClass == other.storageClass;
209 ASSERT(key.storageClass < 16); in operator()
210 return key.storageClass | key.id << 4; in operator()
313 spirv::IdRef getTypePointerId(spirv::IdRef typeId, spv::StorageClass storageClass);
400 spv::StorageClass storageClass,
DOutputSPIRV.cpp74 spv::StorageClass storageClass = spv::StorageClassMax; member
175 return accessChain.storageClass == spv::StorageClassMax; in IsAccessChainRValue()
217 spv::StorageClass *storageClass);
248 spv::StorageClass storageClass,
510 spv::StorageClass *storageClass) in getSymbolIdAndStorageClass() argument
512 *storageClass = GetStorageClass(type, mCompiler->getShaderType()); in getSymbolIdAndStorageClass()
671 typeId, *storageClass, mBuilder.getDecorations(type), nullptr, name); in getSymbolIdAndStorageClass()
690 spv::StorageClass storageClass, in nodeDataInitLValue() argument
700 data->accessChain.storageClass = storageClass; in nodeDataInitLValue()
853 ASSERT(accessChain.storageClass != spv::StorageClassMax); in accessChainCollapse()
[all …]
DBuildSPIRV.cpp626 spirv::IdRef SPIRVBuilder::getTypePointerId(spirv::IdRef typeId, spv::StorageClass storageClass) in getTypePointerId() argument
628 SpirvIdAndStorageClass key{typeId, storageClass}; in getTypePointerId()
635 spirv::WriteTypePointer(&mSpirvTypePointerDecls, typePointerId, storageClass, typeId); in getTypePointerId()
1486 spv::StorageClass storageClass, in declareVariable() argument
1491 const bool isFunctionLocal = storageClass == spv::StorageClassFunction; in declareVariable()
1502 const spirv::IdRef typePointerId = getTypePointerId(typeId, storageClass); in declareVariable()
1505 spirv::WriteVariable(spirvSection, typePointerId, variableId, storageClass, initializerId); in declareVariable()
/third_party/glslang/SPIRV/
DSpvPostProcess.cpp85 StorageClass storageClass = getStorageClass(inst.getIdOperand(0)); in postProcessType() local
87 switch (storageClass) { in postProcessType()
98 switch (storageClass) { in postProcessType()
DSpvBuilder.cpp178 Id Builder::makePointer(StorageClass storageClass, Id pointee) in makePointer() argument
184 if (type->getImmediateOperand(0) == (unsigned)storageClass && in makePointer()
191 type->addImmediateOperand(storageClass); in makePointer()
200 Id Builder::makeForwardPointer(StorageClass storageClass) in makeForwardPointer() argument
206 type->addImmediateOperand(storageClass); in makeForwardPointer()
213 Id Builder::makePointerFromForwardPointer(StorageClass storageClass, Id forwardPointerType, Id poin… in makePointerFromForwardPointer() argument
219 if (type->getImmediateOperand(0) == (unsigned)storageClass && in makePointerFromForwardPointer()
225 type->addImmediateOperand(storageClass); in makePointerFromForwardPointer()
1457 Id Builder::createVariable(Decoration precision, StorageClass storageClass, Id type, const char* na… in createVariable() argument
1459 Id pointerType = makePointer(storageClass, type); in createVariable()
[all …]
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/gen/
Dpermutate.go338 storageClass := fqn.TemplateArguments[0].(sem.FullyQualifiedName).Target.(*sem.EnumEntry).Name
339 switch storageClass {
/third_party/spirv-tools/source/opt/
Daggressive_dead_code_elim_pass.h60 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass);
/third_party/spirv-tools/source/val/
Dvalidate_decorations.cpp914 const auto storageClass = words[3]; in CheckDecorationsOfBuffers() local
915 const bool uniform = storageClass == SpvStorageClassUniform; in CheckDecorationsOfBuffers()
917 storageClass == SpvStorageClassUniformConstant; in CheckDecorationsOfBuffers()
918 const bool push_constant = storageClass == SpvStorageClassPushConstant; in CheckDecorationsOfBuffers()
919 const bool storage_buffer = storageClass == SpvStorageClassStorageBuffer; in CheckDecorationsOfBuffers()
983 storageClass == SpvStorageClassPhysicalStorageBufferEXT; in CheckDecorationsOfBuffers()
984 const bool workgroup = storageClass == SpvStorageClassWorkgroup; in CheckDecorationsOfBuffers()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_decorations.cpp930 const auto storageClass = words[3]; in CheckDecorationsOfBuffers() local
931 const bool uniform = storageClass == SpvStorageClassUniform; in CheckDecorationsOfBuffers()
933 storageClass == SpvStorageClassUniformConstant; in CheckDecorationsOfBuffers()
934 const bool push_constant = storageClass == SpvStorageClassPushConstant; in CheckDecorationsOfBuffers()
935 const bool storage_buffer = storageClass == SpvStorageClassStorageBuffer; in CheckDecorationsOfBuffers()
999 storageClass == SpvStorageClassPhysicalStorageBufferEXT; in CheckDecorationsOfBuffers()
1001 storageClass == SpvStorageClassWorkgroup && in CheckDecorationsOfBuffers()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp930 const auto storageClass = words[3]; in CheckDecorationsOfBuffers() local
931 const bool uniform = storageClass == SpvStorageClassUniform; in CheckDecorationsOfBuffers()
933 storageClass == SpvStorageClassUniformConstant; in CheckDecorationsOfBuffers()
934 const bool push_constant = storageClass == SpvStorageClassPushConstant; in CheckDecorationsOfBuffers()
935 const bool storage_buffer = storageClass == SpvStorageClassStorageBuffer; in CheckDecorationsOfBuffers()
999 storageClass == SpvStorageClassPhysicalStorageBufferEXT; in CheckDecorationsOfBuffers()
1001 storageClass == SpvStorageClassWorkgroup && in CheckDecorationsOfBuffers()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmVariablePointersTests.cpp490 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()
1695 std::string storageClass = storageClasses[classId]; in addVariablePointersGraphicsGroup() local
1696 std::string name = "stores_" + string(de::toLower(storageClass)) + "_" + bufferType; in addVariablePointersGraphicsGroup()
1697 … std::string extraVariable = "%mux_output_copy = OpVariable %sb_f32ptrptr " + storageClass + "\n"; in addVariablePointersGraphicsGroup()
1698 specs["ExtraTypes"] = "%sb_f32ptrptr = OpTypePointer " + storageClass + " %sb_f32\n"; in addVariablePointersGraphicsGroup()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Daggressive_dead_code_elim_pass.h68 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass);
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Daggressive_dead_code_elim_pass.h68 bool IsVarOfStorage(uint32_t varId, uint32_t storageClass);
Daggressive_dead_code_elim_pass.cpp88 bool AggressiveDCEPass::IsVarOfStorage(uint32_t varId, uint32_t storageClass) { in IsVarOfStorage() argument
97 storageClass; in IsVarOfStorage()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DComputeLayoutMemoryBufferTests.cpp114 std::ostream& operator<<(std::ostream& o, StorageClass storageClass) { in operator <<() argument
115 switch (storageClass) { in operator <<()
/third_party/flutter/skia/src/sksl/
DSkSLSPIRVCodeGenerator.cpp637 SpvId SPIRVCodeGenerator::getPointerType(const Type& type, SpvStorageClass_ storageClass) { in getPointerType() argument
638 return this->getPointerType(type, fDefaultLayout, storageClass); in getPointerType()
642 SpvStorageClass_ storageClass) { in getPointerType() argument
644 String key = type.description() + "*" + to_string(layout.fStd) + to_string(storageClass); in getPointerType()
648 this->writeInstruction(SpvOpTypePointer, result, storageClass, in getPointerType()
2688 SpvStorageClass_ storageClass = get_storage_class(intf.fVariable.fModifiers); in writeInterfaceBlock() local
2690 this->writeInstruction(SpvOpTypePointer, ptrType, storageClass, typeId, fConstantBuffer); in writeInterfaceBlock()
2691 this->writeInstruction(SpvOpVariable, ptrType, result, storageClass, fConstantBuffer); in writeInterfaceBlock()
2747 SpvStorageClass_ storageClass; in writeGlobalVars() local
2749 storageClass = SpvStorageClassInput; in writeGlobalVars()
[all …]
DSkSLSPIRVCodeGenerator.h161 SpvId getPointerType(const Type& type, SpvStorageClass_ storageClass);
164 SpvStorageClass_ storageClass);
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.h197 SpvId getPointerType(const Type& type, SpvStorageClass_ storageClass);
200 SpvStorageClass_ storageClass);
DSkSLSPIRVCodeGenerator.cpp746 SpvId SPIRVCodeGenerator::getPointerType(const Type& type, SpvStorageClass_ storageClass) { in getPointerType() argument
747 return this->getPointerType(type, fDefaultLayout, storageClass); in getPointerType()
751 SpvStorageClass_ storageClass) { in getPointerType() argument
753 String key = type.displayName() + "*" + to_string(layout.fStd) + to_string(storageClass); in getPointerType()
757 this->writeInstruction(SpvOpTypePointer, result, storageClass, in getPointerType()
3022 SpvStorageClass_ storageClass = get_storage_class(intf.variable(), SpvStorageClassFunction); in writeInterfaceBlock() local
3072 this->writeInstruction(SpvOpTypePointer, ptrType, storageClass, typeId, fConstantBuffer); in writeInterfaceBlock()
3073 this->writeInstruction(SpvOpVariable, ptrType, result, storageClass, fConstantBuffer); in writeInterfaceBlock()
3112 SpvStorageClass_ storageClass = get_storage_class(var, SpvStorageClassPrivate); in writeGlobalVar() local
3113 if (storageClass == SpvStorageClassUniform) { in writeGlobalVar()
[all …]
/third_party/mesa3d/src/compiler/clc/
Dclc_helpers.cpp206 uint32_t typeId, storageClass; in parseTypePointer() local
217 storageClass = ins->words[op->offset]; in parseTypePointer()
218 switch (storageClass) { in parseTypePointer()

12