|
@@ -1097,6 +1097,11 @@ bool isOrContainsNonFpColMajorMatrix(const ASTContext &astContext,
|
|
|
if (isMxNMatrix(arrayType->getElementType(), &elemType) &&
|
|
|
!elemType->isFloatingType())
|
|
|
return isColMajorDecl(decl);
|
|
|
+ if (const auto *structType = arrayType->getElementType()->getAs<RecordType>()) {
|
|
|
+ return isOrContainsNonFpColMajorMatrix(astContext, spirvOptions,
|
|
|
+ arrayType->getElementType(),
|
|
|
+ structType->getDecl());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (const auto *structType = type->getAs<RecordType>()) {
|