/third_party/spirv-tools/source/val/ |
H A D | validate_annotation.cpp | 27 bool DecorationTakesIdParameters(spv::Decoration type) { in DecorationTakesIdParameters() 29 case spv::Decoration::UniformId: in DecorationTakesIdParameters() 30 case spv::Decoration::AlignmentId: in DecorationTakesIdParameters() 31 case spv::Decoration::MaxByteOffsetId: in DecorationTakesIdParameters() 32 case spv::Decoration::HlslCounterBufferGOOGLE: in DecorationTakesIdParameters() 40 bool IsMemberDecorationOnly(spv::Decoration dec) { in IsMemberDecorationOnly() 42 case spv::Decoration::RowMajor: in IsMemberDecorationOnly() 43 case spv::Decoration::ColMajor: in IsMemberDecorationOnly() 44 case spv::Decoration::MatrixStride: in IsMemberDecorationOnly() 47 // case spv::Decoration in IsMemberDecorationOnly() [all...] |
H A D | validate_decorations.cpp | 67 if (spv::Decoration::ArrayStride == decoration.dec_type()) { in GetArrayStride() 78 [](const Decoration& d) { in isBuiltInVar() 79 return spv::Decoration::BuiltIn == d.dec_type(); in isBuiltInVar() 88 decorations.begin(), decorations.end(), [](const Decoration& d) { in isBuiltInStruct() 89 return spv::Decoration::BuiltIn == d.dec_type() && in isBuiltInStruct() 90 Decoration::kInvalidMember != d.struct_member_index(); in isBuiltInStruct() 98 [](const Decoration& d) { in isBlock() 99 return spv::Decoration::Block == d.dec_type(); in isBlock() 107 decorations.begin(), decorations.end(), [](const Decoration& d) { in hasImportLinkageAttribute() 108 return spv::Decoration in hasImportLinkageAttribute() [all...] |
H A D | validate_builtins.cpp | 59 const Decoration& decoration, in GetUnderlyingType() 62 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetUnderlyingType() 261 spv_result_t ValidateSingleBuiltInAtDefinition(const Decoration& decoration, 270 const Decoration& decoration, const Instruction& inst); 271 spv_result_t ValidateFragCoordAtDefinition(const Decoration& decoration, 273 spv_result_t ValidateFragDepthAtDefinition(const Decoration& decoration, 275 spv_result_t ValidateFrontFacingAtDefinition(const Decoration& decoration, 278 const Decoration& decoration, const Instruction& inst); 279 spv_result_t ValidateInvocationIdAtDefinition(const Decoration& decoration, 281 spv_result_t ValidateInstanceIndexAtDefinition(const Decoration [all...] |
H A D | decoration.h | 32 // A Decoration object contains the decoration type (an enum), associated 34 // to a struct member, then the index is kInvalidIndex. A Decoration object does 40 // Example 1: Decoration for an object<id> with no parameters: 42 // dec_type_ = spv::Decoration::Flat 46 // Example 2: Decoration for an object<id> with two parameters: 48 // dec_type_ = spv::Decoration::LinkageAttributes 52 // Example 3: Decoration for a member of a structure with one parameter: 54 // dec_type_ = spv::Decoration::Offset 58 class Decoration { class 61 Decoration(sp function in spvtools::val::Decoration [all...] |
H A D | validation_state.h | 392 void RegisterDecorationForId(uint32_t id, const Decoration& dec) { in RegisterDecorationForId() 400 std::set<Decoration>& cur_decs = id_decorations_[id]; in RegisterDecorationsForId() 410 std::set<Decoration>& cur_decs = id_decorations_[struct_id]; in RegisterDecorationsForStructMember() 412 Decoration dec = *iter; in RegisterDecorationsForStructMember() 421 std::set<Decoration>& id_decorations(uint32_t id) { in id_decorations() 427 std::set<Decoration>::const_iterator begin; 428 std::set<Decoration>::const_iterator end; 436 Decoration min_decoration((spv::Decoration)0, {}, member_index); in id_member_decorations() 437 Decoration max_decoratio in id_member_decorations() [all...] |
H A D | validate_interfaces.cpp | 158 if (_.HasDecoration(type->id(), spv::Decoration::Location)) { in NumConsumedLocations() 265 if (dec.dec_type() == spv::Decoration::Location) { in GetLocationsForVariable() 272 } else if (dec.dec_type() == spv::Decoration::Component) { in GetLocationsForVariable() 279 } else if (dec.dec_type() == spv::Decoration::Index) { in GetLocationsForVariable() 290 } else if (dec.dec_type() == spv::Decoration::BuiltIn) { in GetLocationsForVariable() 293 } else if (dec.dec_type() == spv::Decoration::Patch) { in GetLocationsForVariable() 295 } else if (dec.dec_type() == spv::Decoration::PerTaskNV) { in GetLocationsForVariable() 297 } else if (dec.dec_type() == spv::Decoration::PerVertexKHR) { in GetLocationsForVariable() 357 if (_.HasDecoration(type_id, spv::Decoration::BuiltIn)) return SPV_SUCCESS; in GetLocationsForVariable() 361 const bool is_block = _.HasDecoration(type_id, spv::Decoration in GetLocationsForVariable() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_builtins.cpp | 61 const Decoration& decoration, in GetUnderlyingType() 64 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetUnderlyingType() 259 spv_result_t ValidateSingleBuiltInAtDefinition(const Decoration& decoration, 268 const Decoration& decoration, const Instruction& inst); 269 spv_result_t ValidateFragCoordAtDefinition(const Decoration& decoration, 271 spv_result_t ValidateFragDepthAtDefinition(const Decoration& decoration, 273 spv_result_t ValidateFrontFacingAtDefinition(const Decoration& decoration, 276 const Decoration& decoration, const Instruction& inst); 277 spv_result_t ValidateInvocationIdAtDefinition(const Decoration& decoration, 279 spv_result_t ValidateInstanceIndexAtDefinition(const Decoration [all...] |
H A D | decoration.h | 32 // A Decoration object contains the decoration type (an enum), associated 34 // to a struct member, then the index is kInvalidIndex. A Decoration object does 40 // Example 1: Decoration for an object<id> with no parameters: 46 // Example 2: Decoration for an object<id> with two parameters: 52 // Example 3: Decoration for a member of a structure with one parameter: 58 class Decoration { class 61 Decoration(SpvDecoration t, in Decoration() function in spvtools::val::Decoration 72 inline bool operator==(const Decoration& rhs) const { in operator ==()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_builtins.cpp | 61 const Decoration& decoration, in GetUnderlyingType() 64 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetUnderlyingType() 259 spv_result_t ValidateSingleBuiltInAtDefinition(const Decoration& decoration, 268 const Decoration& decoration, const Instruction& inst); 269 spv_result_t ValidateFragCoordAtDefinition(const Decoration& decoration, 271 spv_result_t ValidateFragDepthAtDefinition(const Decoration& decoration, 273 spv_result_t ValidateFrontFacingAtDefinition(const Decoration& decoration, 276 const Decoration& decoration, const Instruction& inst); 277 spv_result_t ValidateInvocationIdAtDefinition(const Decoration& decoration, 279 spv_result_t ValidateInstanceIndexAtDefinition(const Decoration [all...] |
H A D | decoration.h | 32 // A Decoration object contains the decoration type (an enum), associated 34 // to a struct member, then the index is kInvalidIndex. A Decoration object does 40 // Example 1: Decoration for an object<id> with no parameters: 46 // Example 2: Decoration for an object<id> with two parameters: 52 // Example 3: Decoration for a member of a structure with one parameter: 58 class Decoration { class 61 Decoration(SpvDecoration t, in Decoration() function in spvtools::val::Decoration 72 inline bool operator==(const Decoration& rhs) const { in operator ==()
|
/third_party/spirv-tools/source/opt/ |
H A D | strip_nonsemantic_info_pass.cpp | 35 if (spv::Decoration(inst.GetSingleWordInOperand(1)) == in Process() 36 spv::Decoration::HlslSemanticGOOGLE || in Process() 37 spv::Decoration(inst.GetSingleWordInOperand(1)) == in Process() 38 spv::Decoration::UserTypeGOOGLE) { in Process() 46 if (spv::Decoration(inst.GetSingleWordInOperand(2)) == in Process() 47 spv::Decoration::HlslSemanticGOOGLE || in Process() 48 spv::Decoration(inst.GetSingleWordInOperand(2)) == in Process() 49 spv::Decoration::UserTypeGOOGLE) { in Process() 57 if (spv::Decoration(inst.GetSingleWordInOperand(1)) == in Process() 58 spv::Decoration in Process() [all...] |
H A D | scalar_replacement_pass.cpp | 444 auto decoration = spv::Decoration(inst->GetSingleWordInOperand(1u)); in TransferAnnotations() 445 if (decoration == spv::Decoration::Invariant || in TransferAnnotations() 446 decoration == spv::Decoration::Restrict) { in TransferAnnotations() 681 switch (spv::Decoration(decoration)) { in CheckTypeAnnotations() 682 case spv::Decoration::RowMajor: in CheckTypeAnnotations() 683 case spv::Decoration::ColMajor: in CheckTypeAnnotations() 684 case spv::Decoration::ArrayStride: in CheckTypeAnnotations() 685 case spv::Decoration::MatrixStride: in CheckTypeAnnotations() 686 case spv::Decoration::CPacked: in CheckTypeAnnotations() 687 case spv::Decoration in CheckTypeAnnotations() [all...] |
H A D | inst_bindless_check_pass.cpp | 83 {uint32_t(spv::Decoration::LinkageAttributes)}}, in GenDescCheckFunctionId() 269 block_ty_id, uint32_t(spv::Decoration::Block), in AnalyzeDescriptorReference() 274 block_ty_id, uint32_t(spv::Decoration::BufferBlock), in AnalyzeDescriptorReference() 298 spv::Decoration d = spv::Decoration(deco->GetSingleWordInOperand(1u)); in AnalyzeDescriptorReference() 299 if (d == spv::Decoration::DescriptorSet) { in AnalyzeDescriptorReference() 301 } else if (d == spv::Decoration::Binding) { in AnalyzeDescriptorReference() 357 spv::Decoration d = spv::Decoration(deco->GetSingleWordInOperand(1u)); in AnalyzeDescriptorReference() 358 if (d == spv::Decoration in AnalyzeDescriptorReference() [all...] |
H A D | switch_descriptorset_pass.cpp | 33 spv::Decoration d = spv::Decoration(deco->GetSingleWordInOperand(1u)); in Process() 34 if (d == spv::Decoration::DescriptorSet && in Process()
|
H A D | upgrade_memory_model.cpp | 345 is_coherent |= HasDecoration(inst, 0, spv::Decoration::Coherent); in TraceInstruction() 346 is_volatile |= HasDecoration(inst, 0, spv::Decoration::Volatile); in TraceInstruction() 426 spv::Decoration::Coherent); in CheckType() 428 spv::Decoration::Volatile); in CheckType() 468 spv::Decoration::Coherent); in CheckAllTypes() 470 spv::Decoration::Volatile); in CheckAllTypes() 511 spv::Decoration decoration) { in HasDecoration() 597 if (spv::Decoration(dec.GetSingleWordInOperand(1u)) == in CleanupDecorations() 598 spv::Decoration::Coherent || in CleanupDecorations() 599 spv::Decoration(de in CleanupDecorations() [all...] |
H A D | eliminate_dead_output_stores_pass.cpp | 80 var_id, uint32_t(spv::Decoration::Location), in KillAllDeadStoresOfLocRef() 88 var_id, uint32_t(spv::Decoration::Patch), [](const Instruction& deco) { in KillAllDeadStoresOfLocRef() 121 var_id, uint32_t(spv::Decoration::BuiltIn), in KillAllDeadStoresOfBuiltinRef() 156 str_type_id, uint32_t(spv::Decoration::BuiltIn), in KillAllDeadStoresOfBuiltinRef() 200 if (deco_mgr->HasDecoration(var_id, uint32_t(spv::Decoration::BuiltIn))) { in DoDeadOutputStoreElimination() 212 uint32_t(spv::Decoration::BuiltIn))) in DoDeadOutputStoreElimination()
|
/third_party/skia/third_party/externals/spirv-cross/ |
H A D | spirv_cross_parsed_ir.hpp | 120 // Decoration handling methods. 126 void set_decoration(ID id, spv::Decoration decoration, uint32_t argument = 0); 127 void set_decoration_string(ID id, spv::Decoration decoration, const std::string &argument); 128 bool has_decoration(ID id, spv::Decoration decoration) const; 129 uint32_t get_decoration(ID id, spv::Decoration decoration) const; 130 const std::string &get_decoration_string(ID id, spv::Decoration decoration) const; 132 void unset_decoration(ID id, spv::Decoration decoration); 134 // Decoration handling methods (for members of a struct). 137 void set_member_decoration(TypeID id, uint32_t index, spv::Decoration decoration, uint32_t argument = 0); 138 void set_member_decoration_string(TypeID id, uint32_t index, spv::Decoration decoratio [all...] |
/third_party/spirv-tools/test/ |
H A D | operand_capabilities_test.cpp | 443 // See SPIR-V Section 3.20 Decoration 448 CASE1(DECORATION, Decoration::RelaxedPrecision, Shader), 450 CASE1(DECORATION, Decoration::Block, Shader), 451 CASE1(DECORATION, Decoration::BufferBlock, Shader), 452 CASE1(DECORATION, Decoration::RowMajor, Matrix), 453 CASE1(DECORATION, Decoration::ColMajor, Matrix), 454 CASE1(DECORATION, Decoration::ArrayStride, Shader), 455 CASE1(DECORATION, Decoration::MatrixStride, 457 CASE1(DECORATION, Decoration::GLSLShared, Shader), 458 CASE1(DECORATION, Decoration [all...] |
H A D | text_to_binary.annotation_test.cpp | 44 std::tuple<spv_target_env, EnumCase<spv::Decoration>>>>; 67 std::tuple<spv_target_env, EnumCase<spv::Decoration>>>>; 87 #define CASE(NAME) spv::Decoration::NAME, #NAME 91 ValuesIn(std::vector<EnumCase<spv::Decoration>>{ 137 Values(EnumCase<spv::Decoration>{ 143 ValuesIn(std::vector<EnumCase<spv::Decoration>>{ 150 ValuesIn(std::vector<EnumCase<spv::Decoration>>{ 206 { uint32_t(spv::BuiltIn::NAME), #NAME, uint32_t(spv::Decoration::BuiltIn), "BuiltIn" } 264 { uint32_t(spv::FunctionParameterAttribute::NAME), #NAME, uint32_t(spv::Decoration::FuncParamAttr), "FuncParamAttr" } 287 { uint32_t(spv::FPRoundingMode::NAME), #NAME, uint32_t(spv::Decoration [all...] |
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | parser_impl_get_decorations_test.cc | 58 UnorderedElementsAre(Decoration{SpvDecorationBlock})); in TEST_F() 73 UnorderedElementsAre(Decoration{SpvDecorationRelaxedPrecision}, in TEST_F() 74 Decoration{SpvDecorationLocation, 7})); in TEST_F() 119 UnorderedElementsAre(Decoration{SpvDecorationRelaxedPrecision})); in TEST_F() 137 UnorderedElementsAre(Decoration{SpvDecorationArrayStride, 12})); in TEST_F() 163 UnorderedElementsAre(Decoration{SpvDecorationRelaxedPrecision})); in TEST_F() 165 UnorderedElementsAre(Decoration{SpvDecorationColMajor}, in TEST_F() 166 Decoration{SpvDecorationMatrixStride, 8}, in TEST_F() 167 Decoration{SpvDecorationArrayStride, 16})); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | decoration.h | 27 class Decoration : public Castable<Decoration, Node> { class 29 ~Decoration() override; 38 Decoration(ProgramID pid, const Source& src) : Base(pid, src) {} in Decoration() function in tint::ast::Decoration 42 using DecorationList = std::vector<const Decoration*>;
|
H A D | decoration.cc | 17 TINT_INSTANTIATE_TYPEINFO(tint::ast::Decoration); variable 22 Decoration::~Decoration() = default;
|
/third_party/spirv-tools/source/reduce/ |
H A D | remove_unused_instruction_reduction_opportunity_finder.cpp | 163 switch (spv::Decoration(decoration)) { in IsIndependentlyRemovableDecoration() 164 case spv::Decoration::RelaxedPrecision: in IsIndependentlyRemovableDecoration() 165 case spv::Decoration::NoSignedWrap: in IsIndependentlyRemovableDecoration() 166 case spv::Decoration::NoContraction: in IsIndependentlyRemovableDecoration() 167 case spv::Decoration::NoUnsignedWrap: in IsIndependentlyRemovableDecoration() 168 case spv::Decoration::UserSemantic: in IsIndependentlyRemovableDecoration()
|
/third_party/glslang/SPIRV/ |
H A D | SpvBuilder.h | 395 void addDecoration(Id, Decoration, int num = -1); 396 void addDecoration(Id, Decoration, const char*); 397 void addDecoration(Id, Decoration, const std::vector<unsigned>& literals); 398 void addDecoration(Id, Decoration, const std::vector<const char*>& strings); 400 void addDecorationId(Id id, Decoration, Id idDecoration); 401 void addDecorationId(Id id, Decoration, const std::vector<Id>& operandIds); 402 void addMemberDecoration(Id, unsigned int member, Decoration, int num = -1); 403 void addMemberDecoration(Id, unsigned int member, Decoration, const char*); 404 void addMemberDecoration(Id, unsigned int member, Decoration, const std::vector<unsigned>& literals); 405 void addMemberDecoration(Id, unsigned int member, Decoration, cons [all...] |
/third_party/spirv-tools/test/opt/ |
H A D | decoration_manager_test.cpp | 120 // This parameter can be interpreted both as { spv::Decoration::Constant } in TEST_F() 123 static_cast<uint32_t>(spv::Decoration::Constant)}; in TEST_F() 140 // This parameter can be interpreted both as { spv::Decoration::Constant } in TEST_F() 143 static_cast<uint32_t>(spv::Decoration::Constant)}; in TEST_F() 163 {SPV_OPERAND_TYPE_DECORATION, {uint32_t(spv::Decoration::Constant)}}}); in TEST_F() 168 {SPV_OPERAND_TYPE_DECORATION, {uint32_t(spv::Decoration::Restrict)}}}); in TEST_F() 210 {SPV_OPERAND_TYPE_DECORATION, {uint32_t(spv::Decoration::Constant)}}}); in TEST_F() 215 {SPV_OPERAND_TYPE_DECORATION, {uint32_t(spv::Decoration::Constant)}}}); in TEST_F() 254 {SPV_OPERAND_TYPE_DECORATION, {uint32_t(spv::Decoration::Constant)}}}); in TEST_F() 259 {SPV_OPERAND_TYPE_DECORATION, {uint32_t(spv::Decoration in TEST_F() [all...] |