We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d01d480 commit 02f786dCopy full SHA for 02f786d
libSPIRV/SPIRVType.h
@@ -281,7 +281,9 @@ class SPIRVTypeVector:public SPIRVType {
281
bool isValidIndex(SPIRVWord Index) const { return Index < CompCount;}
282
SPIRVCapVec getRequiredCapability() const {
283
SPIRVCapVec V(getComponentType()->getRequiredCapability());
284
- if (CompCount > 8)
+ // Even though the capability name is "Vector16", it describes
285
+ // usage of 8-component or 16-component vectors.
286
+ if (CompCount >= 8)
287
V.push_back(CapabilityVector16);
288
return std::move(V);
289
}
0 commit comments