/external/angle/third_party/vulkan-deps/spirv-tools/src/test/val/ |
D | val_function_test.cpp | 34 std::string GenerateShader(const std::string& storage_class, in GenerateShader() argument 49 %ptr = OpTypePointer )" + storage_class + R"( %int in GenerateShader() 54 if (storage_class != "Function") { in GenerateShader() 55 spirv += "%var = OpVariable %ptr " + storage_class; in GenerateShader() 63 if (storage_class == "Function") { in GenerateShader() 81 std::string GenerateShaderParameter(const std::string& storage_class, in GenerateShaderParameter() argument 96 %ptr = OpTypePointer )" + storage_class + R"( %int in GenerateShaderParameter() 114 std::string GenerateShaderAccessChain(const std::string& storage_class, in GenerateShaderAccessChain() argument 132 %ptr = OpTypePointer )" + storage_class + R"( %int2 in GenerateShaderAccessChain() 134 storage_class + R"( %int in GenerateShaderAccessChain() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/val/ |
D | val_function_test.cpp | 34 std::string GenerateShader(const std::string& storage_class, in GenerateShader() argument 49 %ptr = OpTypePointer )" + storage_class + R"( %int in GenerateShader() 54 if (storage_class != "Function") { in GenerateShader() 55 spirv += "%var = OpVariable %ptr " + storage_class; in GenerateShader() 63 if (storage_class == "Function") { in GenerateShader() 81 std::string GenerateShaderParameter(const std::string& storage_class, in GenerateShaderParameter() argument 96 %ptr = OpTypePointer )" + storage_class + R"( %int in GenerateShaderParameter() 114 std::string GenerateShaderAccessChain(const std::string& storage_class, in GenerateShaderAccessChain() argument 132 %ptr = OpTypePointer )" + storage_class + R"( %int2 in GenerateShaderAccessChain() 134 storage_class + R"( %int in GenerateShaderAccessChain() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/val/ |
D | val_function_test.cpp | 34 std::string GenerateShader(const std::string& storage_class, in GenerateShader() argument 49 %ptr = OpTypePointer )" + storage_class + R"( %int in GenerateShader() 54 if (storage_class != "Function") { in GenerateShader() 55 spirv += "%var = OpVariable %ptr " + storage_class; in GenerateShader() 63 if (storage_class == "Function") { in GenerateShader() 81 std::string GenerateShaderParameter(const std::string& storage_class, in GenerateShaderParameter() argument 96 %ptr = OpTypePointer )" + storage_class + R"( %int in GenerateShaderParameter() 114 std::string GenerateShaderAccessChain(const std::string& storage_class, in GenerateShaderAccessChain() argument 132 %ptr = OpTypePointer )" + storage_class + R"( %int2 in GenerateShaderAccessChain() 134 storage_class + R"( %int in GenerateShaderAccessChain() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | transformation_add_global_variable.cpp | 27 uint32_t fresh_id, uint32_t type_id, SpvStorageClass storage_class, in TransformationAddGlobalVariable() argument 31 message_.set_storage_class(storage_class); in TransformationAddGlobalVariable() 44 auto storage_class = static_cast<SpvStorageClass>(message_.storage_class()); in IsApplicable() local 45 switch (storage_class) { in IsApplicable() 64 if (pointer_type->storage_class() != storage_class) { in IsApplicable() 69 if (storage_class == SpvStorageClassWorkgroup) { in IsApplicable() 98 static_cast<SpvStorageClass>(message_.storage_class()), in Apply()
|
D | transformation_add_copy_memory.cpp | 30 uint32_t fresh_id, uint32_t source_id, SpvStorageClass storage_class, in TransformationAddCopyMemory() argument 35 message_.set_storage_class(storage_class); in TransformationAddCopyMemory() 68 if (message_.storage_class() != SpvStorageClassFunction && in IsApplicable() 69 message_.storage_class() != SpvStorageClassPrivate) { in IsApplicable() 79 static_cast<SpvStorageClass>(message_.storage_class()))) { in IsApplicable() 113 auto storage_class = static_cast<SpvStorageClass>(message_.storage_class()); in Apply() local 118 storage_class); in Apply() 120 if (storage_class == SpvStorageClassPrivate) { in Apply() 122 storage_class, message_.initializer_id()); in Apply() 124 assert(storage_class == SpvStorageClassFunction && in Apply()
|
D | fuzzer_pass_add_function_calls.cpp | 173 auto storage_class = param_type->AsPointer()->storage_class(); in ChooseFunctionCallArguments() local 176 if (storage_class == SpvStorageClassFunction) { in ChooseFunctionCallArguments() 183 assert((storage_class == SpvStorageClassPrivate || in ChooseFunctionCallArguments() 184 storage_class == SpvStorageClassWorkgroup) && in ChooseFunctionCallArguments() 191 fresh_variable_id, param->type_id(), storage_class, in ChooseFunctionCallArguments() 192 storage_class == SpvStorageClassPrivate in ChooseFunctionCallArguments()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_add_global_variable.cpp | 27 uint32_t fresh_id, uint32_t type_id, SpvStorageClass storage_class, in TransformationAddGlobalVariable() argument 31 message_.set_storage_class(storage_class); in TransformationAddGlobalVariable() 44 auto storage_class = static_cast<SpvStorageClass>(message_.storage_class()); in IsApplicable() local 45 switch (storage_class) { in IsApplicable() 64 if (pointer_type->storage_class() != storage_class) { in IsApplicable() 69 if (storage_class == SpvStorageClassWorkgroup) { in IsApplicable() 98 static_cast<SpvStorageClass>(message_.storage_class()), in Apply()
|
D | transformation_add_copy_memory.cpp | 30 uint32_t fresh_id, uint32_t source_id, SpvStorageClass storage_class, in TransformationAddCopyMemory() argument 35 message_.set_storage_class(storage_class); in TransformationAddCopyMemory() 68 if (message_.storage_class() != SpvStorageClassFunction && in IsApplicable() 69 message_.storage_class() != SpvStorageClassPrivate) { in IsApplicable() 79 static_cast<SpvStorageClass>(message_.storage_class()))) { in IsApplicable() 113 auto storage_class = static_cast<SpvStorageClass>(message_.storage_class()); in Apply() local 118 storage_class); in Apply() 120 if (storage_class == SpvStorageClassPrivate) { in Apply() 122 storage_class, message_.initializer_id()); in Apply() 124 assert(storage_class == SpvStorageClassFunction && in Apply()
|
D | fuzzer_pass_add_function_calls.cpp | 173 auto storage_class = param_type->AsPointer()->storage_class(); in ChooseFunctionCallArguments() local 176 if (storage_class == SpvStorageClassFunction) { in ChooseFunctionCallArguments() 183 assert((storage_class == SpvStorageClassPrivate || in ChooseFunctionCallArguments() 184 storage_class == SpvStorageClassWorkgroup) && in ChooseFunctionCallArguments() 191 fresh_variable_id, param->type_id(), storage_class, in ChooseFunctionCallArguments() 192 storage_class == SpvStorageClassPrivate in ChooseFunctionCallArguments()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/ |
D | transformation_add_global_variable.cpp | 27 uint32_t fresh_id, uint32_t type_id, SpvStorageClass storage_class, in TransformationAddGlobalVariable() argument 31 message_.set_storage_class(storage_class); in TransformationAddGlobalVariable() 44 auto storage_class = static_cast<SpvStorageClass>(message_.storage_class()); in IsApplicable() local 45 switch (storage_class) { in IsApplicable() 64 if (pointer_type->storage_class() != storage_class) { in IsApplicable() 69 if (storage_class == SpvStorageClassWorkgroup) { in IsApplicable() 98 static_cast<SpvStorageClass>(message_.storage_class()), in Apply()
|
D | transformation_add_copy_memory.cpp | 30 uint32_t fresh_id, uint32_t source_id, SpvStorageClass storage_class, in TransformationAddCopyMemory() argument 35 message_.set_storage_class(storage_class); in TransformationAddCopyMemory() 68 if (message_.storage_class() != SpvStorageClassFunction && in IsApplicable() 69 message_.storage_class() != SpvStorageClassPrivate) { in IsApplicable() 79 static_cast<SpvStorageClass>(message_.storage_class()))) { in IsApplicable() 106 auto storage_class = static_cast<SpvStorageClass>(message_.storage_class()); in Apply() local 111 storage_class); in Apply() 113 if (storage_class == SpvStorageClassPrivate) { in Apply() 116 storage_class, message_.initializer_id()); in Apply() 119 assert(storage_class == SpvStorageClassFunction && in Apply()
|
D | fuzzer_pass_add_function_calls.cpp | 171 auto storage_class = param_type->AsPointer()->storage_class(); in ChooseFunctionCallArguments() local 174 if (storage_class == SpvStorageClassFunction) { in ChooseFunctionCallArguments() 181 assert((storage_class == SpvStorageClassPrivate || in ChooseFunctionCallArguments() 182 storage_class == SpvStorageClassWorkgroup) && in ChooseFunctionCallArguments() 189 fresh_variable_id, param->type_id(), storage_class, in ChooseFunctionCallArguments() 190 storage_class == SpvStorageClassPrivate in ChooseFunctionCallArguments()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/ |
D | validate_atomics.cpp | 32 bool IsStorageClassAllowedByUniversalRules(uint32_t storage_class) { in IsStorageClassAllowedByUniversalRules() argument 33 switch (storage_class) { in IsStorageClassAllowedByUniversalRules() 179 uint32_t storage_class = 0; in AtomicsPass() local 180 if (!_.GetPointerTypeInfo(pointer_type, &data_type, &storage_class)) { in AtomicsPass() 195 if (!IsStorageClassAllowedByUniversalRules(storage_class)) { in AtomicsPass() 205 if ((storage_class != SpvStorageClassUniform) && in AtomicsPass() 206 (storage_class != SpvStorageClassStorageBuffer) && in AtomicsPass() 207 (storage_class != SpvStorageClassWorkgroup) && in AtomicsPass() 208 (storage_class != SpvStorageClassImage) && in AtomicsPass() 209 (storage_class != SpvStorageClassPhysicalStorageBuffer)) { in AtomicsPass() [all …]
|
D | validate_memory.cpp | 437 auto storage_class = inst->GetOperandAs<SpvStorageClass>(storage_class_index); in ValidateVariable() local 438 if (storage_class != SpvStorageClassWorkgroup && in ValidateVariable() 439 storage_class != SpvStorageClassCrossWorkgroup && in ValidateVariable() 440 storage_class != SpvStorageClassPrivate && in ValidateVariable() 441 storage_class != SpvStorageClassFunction && in ValidateVariable() 442 storage_class != SpvStorageClassRayPayloadNV && in ValidateVariable() 443 storage_class != SpvStorageClassIncomingRayPayloadNV && in ValidateVariable() 444 storage_class != SpvStorageClassHitAttributeNV && in ValidateVariable() 445 storage_class != SpvStorageClassCallableDataNV && in ValidateVariable() 446 storage_class != SpvStorageClassIncomingCallableDataNV) { in ValidateVariable() [all …]
|
D | validate_builtins.cpp | 87 uint32_t storage_class = 0; in GetUnderlyingType() local 88 if (!_.GetPointerTypeInfo(inst.type_id(), underlying_type, &storage_class)) { in GetUnderlyingType() 1139 const SpvStorageClass storage_class = GetStorageClass(referenced_from_inst); in ValidateClipOrCullDistanceAtReference() local 1140 if (storage_class != SpvStorageClassMax && in ValidateClipOrCullDistanceAtReference() 1141 storage_class != SpvStorageClassInput && in ValidateClipOrCullDistanceAtReference() 1142 storage_class != SpvStorageClassOutput) { in ValidateClipOrCullDistanceAtReference() 1155 if (storage_class == SpvStorageClassInput) { in ValidateClipOrCullDistanceAtReference() 1174 if (storage_class == SpvStorageClassOutput) { in ValidateClipOrCullDistanceAtReference() 1317 const SpvStorageClass storage_class = GetStorageClass(referenced_from_inst); in ValidateFragCoordAtReference() local 1318 if (storage_class != SpvStorageClassMax && in ValidateFragCoordAtReference() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_atomics.cpp | 32 bool IsStorageClassAllowedByUniversalRules(uint32_t storage_class) { in IsStorageClassAllowedByUniversalRules() argument 33 switch (storage_class) { in IsStorageClassAllowedByUniversalRules() 200 uint32_t storage_class = 0; in AtomicsPass() local 201 if (!_.GetPointerTypeInfo(pointer_type, &data_type, &storage_class)) { in AtomicsPass() 208 if (!IsStorageClassAllowedByUniversalRules(storage_class)) { in AtomicsPass() 217 if ((storage_class != SpvStorageClassUniform) && in AtomicsPass() 218 (storage_class != SpvStorageClassStorageBuffer) && in AtomicsPass() 219 (storage_class != SpvStorageClassWorkgroup) && in AtomicsPass() 220 (storage_class != SpvStorageClassImage) && in AtomicsPass() 221 (storage_class != SpvStorageClassPhysicalStorageBuffer)) { in AtomicsPass() [all …]
|
D | validate_memory.cpp | 437 auto storage_class = inst->GetOperandAs<SpvStorageClass>(storage_class_index); in ValidateVariable() local 438 if (storage_class != SpvStorageClassWorkgroup && in ValidateVariable() 439 storage_class != SpvStorageClassCrossWorkgroup && in ValidateVariable() 440 storage_class != SpvStorageClassPrivate && in ValidateVariable() 441 storage_class != SpvStorageClassFunction && in ValidateVariable() 442 storage_class != SpvStorageClassRayPayloadNV && in ValidateVariable() 443 storage_class != SpvStorageClassIncomingRayPayloadNV && in ValidateVariable() 444 storage_class != SpvStorageClassHitAttributeNV && in ValidateVariable() 445 storage_class != SpvStorageClassCallableDataNV && in ValidateVariable() 446 storage_class != SpvStorageClassIncomingCallableDataNV) { in ValidateVariable() [all …]
|
D | validate_builtins.cpp | 87 uint32_t storage_class = 0; in GetUnderlyingType() local 88 if (!_.GetPointerTypeInfo(inst.type_id(), underlying_type, &storage_class)) { in GetUnderlyingType() 1139 const SpvStorageClass storage_class = GetStorageClass(referenced_from_inst); in ValidateClipOrCullDistanceAtReference() local 1140 if (storage_class != SpvStorageClassMax && in ValidateClipOrCullDistanceAtReference() 1141 storage_class != SpvStorageClassInput && in ValidateClipOrCullDistanceAtReference() 1142 storage_class != SpvStorageClassOutput) { in ValidateClipOrCullDistanceAtReference() 1155 if (storage_class == SpvStorageClassInput) { in ValidateClipOrCullDistanceAtReference() 1174 if (storage_class == SpvStorageClassOutput) { in ValidateClipOrCullDistanceAtReference() 1317 const SpvStorageClass storage_class = GetStorageClass(referenced_from_inst); in ValidateFragCoordAtReference() local 1318 if (storage_class != SpvStorageClassMax && in ValidateFragCoordAtReference() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_atomics.cpp | 32 bool IsStorageClassAllowedByUniversalRules(uint32_t storage_class) { in IsStorageClassAllowedByUniversalRules() argument 33 switch (storage_class) { in IsStorageClassAllowedByUniversalRules() 200 uint32_t storage_class = 0; in AtomicsPass() local 201 if (!_.GetPointerTypeInfo(pointer_type, &data_type, &storage_class)) { in AtomicsPass() 208 if (!IsStorageClassAllowedByUniversalRules(storage_class)) { in AtomicsPass() 217 if ((storage_class != SpvStorageClassUniform) && in AtomicsPass() 218 (storage_class != SpvStorageClassStorageBuffer) && in AtomicsPass() 219 (storage_class != SpvStorageClassWorkgroup) && in AtomicsPass() 220 (storage_class != SpvStorageClassImage) && in AtomicsPass() 221 (storage_class != SpvStorageClassPhysicalStorageBuffer)) { in AtomicsPass() [all …]
|
D | validate_memory.cpp | 433 auto storage_class = inst->GetOperandAs<SpvStorageClass>(storage_class_index); in ValidateVariable() local 434 if (storage_class != SpvStorageClassWorkgroup && in ValidateVariable() 435 storage_class != SpvStorageClassCrossWorkgroup && in ValidateVariable() 436 storage_class != SpvStorageClassPrivate && in ValidateVariable() 437 storage_class != SpvStorageClassFunction && in ValidateVariable() 438 storage_class != SpvStorageClassRayPayloadNV && in ValidateVariable() 439 storage_class != SpvStorageClassIncomingRayPayloadNV && in ValidateVariable() 440 storage_class != SpvStorageClassHitAttributeNV && in ValidateVariable() 441 storage_class != SpvStorageClassCallableDataNV && in ValidateVariable() 442 storage_class != SpvStorageClassIncomingCallableDataNV) { in ValidateVariable() [all …]
|
D | validate_builtins.cpp | 87 uint32_t storage_class = 0; in GetUnderlyingType() local 88 if (!_.GetPointerTypeInfo(inst.type_id(), underlying_type, &storage_class)) { in GetUnderlyingType() 1139 const SpvStorageClass storage_class = GetStorageClass(referenced_from_inst); in ValidateClipOrCullDistanceAtReference() local 1140 if (storage_class != SpvStorageClassMax && in ValidateClipOrCullDistanceAtReference() 1141 storage_class != SpvStorageClassInput && in ValidateClipOrCullDistanceAtReference() 1142 storage_class != SpvStorageClassOutput) { in ValidateClipOrCullDistanceAtReference() 1155 if (storage_class == SpvStorageClassInput) { in ValidateClipOrCullDistanceAtReference() 1174 if (storage_class == SpvStorageClassOutput) { in ValidateClipOrCullDistanceAtReference() 1317 const SpvStorageClass storage_class = GetStorageClass(referenced_from_inst); in ValidateFragCoordAtReference() local 1318 if (storage_class != SpvStorageClassMax && in ValidateFragCoordAtReference() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | fix_storage_class.cpp | 53 SpvStorageClass storage_class, in PropagateStorageClass() argument 59 if (IsPointerToStorageClass(inst, storage_class)) { in PropagateStorageClass() 71 modified |= PropagateStorageClass(use, storage_class, seen); in PropagateStorageClass() 87 FixInstructionStorageClass(inst, storage_class, seen); in PropagateStorageClass() 113 SpvStorageClass storage_class, in FixInstructionStorageClass() argument 118 ChangeResultStorageClass(inst, storage_class); in FixInstructionStorageClass() 124 PropagateStorageClass(use, storage_class, seen); in FixInstructionStorageClass() 129 Instruction* inst, SpvStorageClass storage_class) const { in ChangeResultStorageClass() 135 type_mgr->FindPointerToType(pointee_type_id, storage_class); in ChangeResultStorageClass() 150 SpvStorageClass storage_class) { in IsPointerToStorageClass() argument [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | fix_storage_class.cpp | 53 SpvStorageClass storage_class, in PropagateStorageClass() argument 59 if (IsPointerToStorageClass(inst, storage_class)) { in PropagateStorageClass() 71 modified |= PropagateStorageClass(use, storage_class, seen); in PropagateStorageClass() 87 FixInstructionStorageClass(inst, storage_class, seen); in PropagateStorageClass() 113 SpvStorageClass storage_class, in FixInstructionStorageClass() argument 118 ChangeResultStorageClass(inst, storage_class); in FixInstructionStorageClass() 124 PropagateStorageClass(use, storage_class, seen); in FixInstructionStorageClass() 129 Instruction* inst, SpvStorageClass storage_class) const { in ChangeResultStorageClass() 135 type_mgr->FindPointerToType(pointee_type_id, storage_class); in ChangeResultStorageClass() 150 SpvStorageClass storage_class) { in IsPointerToStorageClass() argument [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | fix_storage_class.cpp | 53 SpvStorageClass storage_class, in PropagateStorageClass() argument 59 if (IsPointerToStorageClass(inst, storage_class)) { in PropagateStorageClass() 71 modified |= PropagateStorageClass(use, storage_class, seen); in PropagateStorageClass() 87 FixInstructionStorageClass(inst, storage_class, seen); in PropagateStorageClass() 113 SpvStorageClass storage_class, in FixInstructionStorageClass() argument 118 ChangeResultStorageClass(inst, storage_class); in FixInstructionStorageClass() 124 PropagateStorageClass(use, storage_class, seen); in FixInstructionStorageClass() 129 Instruction* inst, SpvStorageClass storage_class) const { in ChangeResultStorageClass() 135 type_mgr->FindPointerToType(pointee_type_id, storage_class); in ChangeResultStorageClass() 150 SpvStorageClass storage_class) { in IsPointerToStorageClass() argument [all …]
|
D | fix_storage_class.h | 51 bool PropagateStorageClass(Instruction* inst, SpvStorageClass storage_class, 61 SpvStorageClass storage_class, 67 SpvStorageClass storage_class) const; 75 SpvStorageClass storage_class);
|