Home
last modified time | relevance | path

Searched refs:Decoration (Results 1 – 25 of 91) sorted by relevance

1234

/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_builtins.cpp59 const Decoration& decoration, in GetUnderlyingType()
62 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetUnderlyingType()
122 spv_result_t ValidateSingleBuiltInAtDefinition(const Decoration& decoration,
131 const Decoration& decoration, const Instruction& inst);
132 spv_result_t ValidateFragCoordAtDefinition(const Decoration& decoration,
134 spv_result_t ValidateFragDepthAtDefinition(const Decoration& decoration,
136 spv_result_t ValidateFrontFacingAtDefinition(const Decoration& decoration,
139 const Decoration& decoration, const Instruction& inst);
140 spv_result_t ValidateInvocationIdAtDefinition(const Decoration& decoration,
142 spv_result_t ValidateInstanceIndexAtDefinition(const Decoration& decoration,
[all …]
Ddecoration.h58 class Decoration {
61 Decoration(SpvDecoration t,
72 inline bool operator==(const Decoration& rhs) const {
Dvalidation_state.h361 void RegisterDecorationForId(uint32_t id, const Decoration& dec) { in RegisterDecorationForId()
368 std::vector<Decoration>& cur_decs = id_decorations_[id]; in RegisterDecorationsForId()
387 std::vector<Decoration>& id_decorations(uint32_t id) { in id_decorations()
390 const std::vector<Decoration>& id_decorations(uint32_t id) const { in id_decorations()
397 const std::map<uint32_t, std::vector<Decoration>>& id_decorations() const { in id_decorations()
647 std::map<uint32_t, std::vector<Decoration>> id_decorations_;
Dvalidate_annotation.cpp172 _.RegisterDecorationForId(target_id, Decoration(dec_type, dec_params)); in RegisterDecorations()
185 Decoration(dec_type, dec_params, index)); in RegisterDecorations()
197 std::vector<Decoration>& group_decorations = in RegisterDecorations()
211 std::vector<Decoration>& group_decorations = in RegisterDecorations()
Dvalidate_memory.cpp37 bool HasConflictingMemberOffsets(const std::vector<Decoration>&,
38 const std::vector<Decoration>&);
107 const std::vector<Decoration>& type1_decorations = in HaveSameLayoutDecorations()
109 const std::vector<Decoration>& type2_decorations = in HaveSameLayoutDecorations()
122 const std::vector<Decoration>& type1_decorations, in HasConflictingMemberOffsets()
123 const std::vector<Decoration>& type2_decorations) { in HasConflictingMemberOffsets()
132 for (const Decoration& decoration : type1_decorations) { in HasConflictingMemberOffsets()
137 auto compare = [&decoration](const Decoration& rhs) { in HasConflictingMemberOffsets()
166 for (const Decoration& decoration : _.id_decorations(storage->id())) { in ContainsInvalidBool()
383 for (const Decoration& decoration : _.id_decorations(inst->id())) { in ValidateVariable()
Dvalidate_decorations.cpp85 [](const Decoration& d) { return SpvDecorationBuiltIn == d.dec_type(); }); in isBuiltInVar()
93 decorations.begin(), decorations.end(), [](const Decoration& d) { in isBuiltInStruct()
95 Decoration::kInvalidMember != d.struct_member_index(); in isBuiltInStruct()
103 [](const Decoration& d) { in hasImportLinkageAttribute()
137 Decoration::kInvalidMember != decoration.struct_member_index()) { in isMissingOffsetInStruct()
1072 if (member != Decoration::kInvalidMember) { in CheckVulkanMemoryModelDeprecatedDecorations()
1147 const Decoration&) { in CheckUniformDecoration() argument
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_builtins.cpp59 const Decoration& decoration, in GetUnderlyingType()
62 if (decoration.struct_member_index() != Decoration::kInvalidMember) { in GetUnderlyingType()
122 spv_result_t ValidateSingleBuiltInAtDefinition(const Decoration& decoration,
131 const Decoration& decoration, const Instruction& inst);
132 spv_result_t ValidateFragCoordAtDefinition(const Decoration& decoration,
134 spv_result_t ValidateFragDepthAtDefinition(const Decoration& decoration,
136 spv_result_t ValidateFrontFacingAtDefinition(const Decoration& decoration,
139 const Decoration& decoration, const Instruction& inst);
140 spv_result_t ValidateInvocationIdAtDefinition(const Decoration& decoration,
142 spv_result_t ValidateInstanceIndexAtDefinition(const Decoration& decoration,
[all …]
Ddecoration.h58 class Decoration {
61 Decoration(SpvDecoration t,
72 inline bool operator==(const Decoration& rhs) const {
Dvalidation_state.h371 void RegisterDecorationForId(uint32_t id, const Decoration& dec) { in RegisterDecorationForId()
378 std::vector<Decoration>& cur_decs = id_decorations_[id]; in RegisterDecorationsForId()
397 std::vector<Decoration>& id_decorations(uint32_t id) { in id_decorations()
402 const std::map<uint32_t, std::vector<Decoration>>& id_decorations() const { in id_decorations()
414 [dec](const Decoration& d) { return dec == d.dec_type(); }); in HasDecoration()
663 std::map<uint32_t, std::vector<Decoration>> id_decorations_;
Dvalidate_function.cpp130 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
135 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
162 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
167 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
Dvalidate_annotation.cpp172 _.RegisterDecorationForId(target_id, Decoration(dec_type, dec_params)); in RegisterDecorations()
185 Decoration(dec_type, dec_params, index)); in RegisterDecorations()
197 std::vector<Decoration>& group_decorations = in RegisterDecorations()
211 std::vector<Decoration>& group_decorations = in RegisterDecorations()
Dvalidate_memory.cpp37 bool HasConflictingMemberOffsets(const std::vector<Decoration>&,
38 const std::vector<Decoration>&);
107 const std::vector<Decoration>& type1_decorations = in HaveSameLayoutDecorations()
109 const std::vector<Decoration>& type2_decorations = in HaveSameLayoutDecorations()
122 const std::vector<Decoration>& type1_decorations, in HasConflictingMemberOffsets()
123 const std::vector<Decoration>& type2_decorations) { in HasConflictingMemberOffsets()
132 for (const Decoration& decoration : type1_decorations) { in HasConflictingMemberOffsets()
137 auto compare = [&decoration](const Decoration& rhs) { in HasConflictingMemberOffsets()
166 for (const Decoration& decoration : _.id_decorations(storage->id())) { in ContainsInvalidBool()
420 for (const Decoration& decoration : _.id_decorations(inst->id())) { in ValidateVariable()
Dvalidate_decorations.cpp85 [](const Decoration& d) { return SpvDecorationBuiltIn == d.dec_type(); }); in isBuiltInVar()
93 decorations.begin(), decorations.end(), [](const Decoration& d) { in isBuiltInStruct()
95 Decoration::kInvalidMember != d.struct_member_index(); in isBuiltInStruct()
103 [](const Decoration& d) { in hasImportLinkageAttribute()
137 Decoration::kInvalidMember != decoration.struct_member_index()) { in isMissingOffsetInStruct()
1081 if (member != Decoration::kInvalidMember) { in CheckVulkanMemoryModelDeprecatedDecorations()
1157 const Decoration&) { in CheckUniformDecoration() argument
1189 const Decoration& decoration) { in CheckIntegerWrapDecoration()
/external/clang/lib/Format/
DBreakableToken.cpp268 Decoration = "* "; in BreakableBlockComment()
275 Decoration = ""; in BreakableBlockComment()
277 for (size_t i = 1, e = Lines.size(); i < e && !Decoration.empty(); ++i) { in BreakableBlockComment()
281 if (!Lines[i].empty() && i + 1 != e && Decoration.startswith(Lines[i])) in BreakableBlockComment()
283 while (!Lines[i].startswith(Decoration)) in BreakableBlockComment()
284 Decoration = Decoration.substr(0, Decoration.size() - 1); in BreakableBlockComment()
296 } else if (Decoration.empty()) { in BreakableBlockComment()
308 Decoration.startswith(Lines[i]) ? Lines[i].size() : Decoration.size(); in BreakableBlockComment()
312 if (!Decoration.startswith(Lines[i])) in BreakableBlockComment()
316 IndentAtLineBreak = std::max<unsigned>(IndentAtLineBreak, Decoration.size()); in BreakableBlockComment()
[all …]
/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVDecorate.h55 SPIRVDecorateGeneric(Op OC, SPIRVWord WC, Decoration TheDec,
58 SPIRVDecorateGeneric(Op OC, SPIRVWord WC, Decoration TheDec,
64 Decoration getDecorateKind() const;
103 Decoration Dec;
132 SPIRVDecorate(Decoration TheDec, SPIRVEntry *TheTarget) in SPIRVDecorate()
135 SPIRVDecorate(Decoration TheDec, SPIRVEntry *TheTarget, SPIRVWord V) in SPIRVDecorate()
202 SPIRVMemberDecorate(Decoration TheDec, SPIRVWord Member, in SPIRVMemberDecorate()
208 SPIRVMemberDecorate(Decoration TheDec, SPIRVWord Member, in SPIRVMemberDecorate()
217 std::pair<SPIRVWord, Decoration> getPair() const { in getPair()
DSPIRVEntry.cpp265 SPIRVEntry::addDecorate(Decoration Kind) { in addDecorate()
270 SPIRVEntry::addDecorate(Decoration Kind, SPIRVWord Literal) { in addDecorate()
275 SPIRVEntry::eraseDecorate(Decoration Dec){ in eraseDecorate()
311 SPIRVEntry::addMemberDecorate(SPIRVWord MemberNumber, Decoration Kind) { in addMemberDecorate()
316 SPIRVEntry::addMemberDecorate(SPIRVWord MemberNumber, Decoration Kind, in addMemberDecorate()
322 SPIRVEntry::eraseMemberDecorate(SPIRVWord MemberNumber, Decoration Dec){ in eraseMemberDecorate()
345 SPIRVEntry::hasDecorate(Decoration Kind, size_t Index, SPIRVWord *Result)const { in hasDecorate()
356 SPIRVEntry::getDecorate(Decoration Kind, size_t Index) const { in getDecorate()
DSPIRVEntry.h252 bool hasDecorate(Decoration Kind, size_t Index = 0,
254 std::set<SPIRVWord> getDecorate(Decoration Kind, size_t Index = 0)const;
276 void addDecorate(Decoration Kind);
277 void addDecorate(Decoration Kind, SPIRVWord Literal);
278 void eraseDecorate(Decoration);
280 void addMemberDecorate(SPIRVWord MemberNumber, Decoration Kind);
281 void addMemberDecorate(SPIRVWord MemberNumber, Decoration Kind,
283 void eraseMemberDecorate(SPIRVWord MemberNumber, Decoration Kind);
342 typedef std::multimap<Decoration, const SPIRVDecorate*> DecorateMapType;
343 typedef std::map<std::pair<SPIRVWord, Decoration>,
DSPIRVDecorate.cpp55 Decoration TheDec, in SPIRVDecorateGeneric()
65 Decoration TheDec, in SPIRVDecorateGeneric()
80 Decoration
/external/deqp-deps/glslang/SPIRV/
DSpvBuilder.h269 void addDecoration(Id, Decoration, int num = -1);
270 void addDecoration(Id, Decoration, const char*);
271 void addDecorationId(Id id, Decoration, Id idDecoration);
272 void addMemberDecoration(Id, unsigned int member, Decoration, int num = -1);
273 void addMemberDecoration(Id, unsigned int member, Decoration, const char*);
286 …Function* makeFunctionEntry(Decoration precision, Id returnType, const char* name, const std::vect…
287 … const std::vector<std::vector<Decoration>>& precisions, Block **entry = 0);
342 …Id createRvalueSwizzle(Decoration precision, Id typeId, Id source, const std::vector<unsigned>& ch…
353 Id setPrecision(Id id, Decoration precision) in setPrecision()
373 void promoteScalar(Decoration precision, Id& left, Id& right);
[all …]
DGLSL.ext.NV.h31 enum Decoration;
DSpvBuilder.cpp1125 void Builder::addDecoration(Id id, Decoration decoration, int num) in addDecoration()
1139 void Builder::addDecoration(Id id, Decoration decoration, const char* s) in addDecoration()
1152 void Builder::addDecorationId(Id id, Decoration decoration, Id idDecoration) in addDecorationId()
1165 void Builder::addMemberDecoration(Id id, unsigned int member, Decoration decoration, int num) in addMemberDecoration()
1180 void Builder::addMemberDecoration(Id id, unsigned int member, Decoration decoration, const char *s) in addMemberDecoration()
1201 std::vector<std::vector<Decoration>> decorations; in makeEntryPoint()
1209 Function* Builder::makeFunctionEntry(Decoration precision, Id returnType, const char* name, in makeFunctionEntry()
1210 …const std::vector<Id>& paramTypes, const std::vector<std::vector<Decoration>>& decorations, Block … in makeFunctionEntry()
1644 Id Builder::createRvalueSwizzle(Decoration precision, Id typeId, Id source, const std::vector<unsig… in createRvalueSwizzle()
1699 void Builder::promoteScalar(Decoration precision, Id& left, Id& right) in promoteScalar()
[all …]
DSPVRemapper.h187 spv::Decoration asDecoration(unsigned word) const { return spv::Decoration(spv[word]); } in asDecoration()
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_decoration_test.cpp51 Eq(std::vector<Decoration>{Decoration(SpvDecorationArrayStride, {4}), in TEST_F()
52 Decoration(SpvDecorationRelaxedPrecision)})); in TEST_F()
77 Eq(std::vector<Decoration>{Decoration(SpvDecorationArrayStride, {4})})); in TEST_F()
83 Eq(std::vector<Decoration>{Decoration(SpvDecorationNonReadable, {}, 2), in TEST_F()
84 Decoration(SpvDecorationOffset, {2}, 2), in TEST_F()
85 Decoration(SpvDecorationBufferBlock)})); in TEST_F()
139 auto expected_decorations = std::vector<Decoration>{ in TEST_F()
140 Decoration(SpvDecorationDescriptorSet, {0}), in TEST_F()
141 Decoration(SpvDecorationNonWritable), Decoration(SpvDecorationRestrict)}; in TEST_F()
207 std::vector<Decoration>{Decoration(SpvDecorationOffset, {3}, 3)}; in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_decoration_test.cpp51 Eq(std::vector<Decoration>{Decoration(SpvDecorationArrayStride, {4}), in TEST_F()
52 Decoration(SpvDecorationRelaxedPrecision)})); in TEST_F()
77 Eq(std::vector<Decoration>{Decoration(SpvDecorationArrayStride, {4})})); in TEST_F()
83 Eq(std::vector<Decoration>{Decoration(SpvDecorationNonReadable, {}, 2), in TEST_F()
84 Decoration(SpvDecorationOffset, {2}, 2), in TEST_F()
85 Decoration(SpvDecorationBufferBlock)})); in TEST_F()
139 auto expected_decorations = std::vector<Decoration>{ in TEST_F()
140 Decoration(SpvDecorationDescriptorSet, {0}), in TEST_F()
141 Decoration(SpvDecorationNonWritable), Decoration(SpvDecorationRestrict)}; in TEST_F()
207 std::vector<Decoration>{Decoration(SpvDecorationOffset, {3}, 3)}; in TEST_F()
/external/swiftshader/src/Pipeline/
DSpirvShader.cpp46 static_cast<spv::Decoration>(insn.word(2)),
59 static_cast<spv::Decoration>(insn.word(3)),
440 void SpirvShader::Decorations::Apply(spv::Decoration decoration, uint32_t arg) in Apply()

1234