|
@@ -8251,10 +8251,6 @@ clang::QualType HLSLExternalSource::CheckVectorConditional(
|
|
|
rightObjectKind == AR_TOBJ_BASIC || rightObjectKind == AR_TOBJ_VECTOR ||
|
|
|
rightObjectKind == AR_TOBJ_MATRIX;
|
|
|
|
|
|
-
|
|
|
- UINT rowCount, colCount;
|
|
|
- GetRowsAndColsForAny(ResultTy, rowCount, colCount);
|
|
|
-
|
|
|
if (!leftIsSimple || !rightIsSimple) {
|
|
|
if (leftObjectKind == AR_TOBJ_OBJECT && leftObjectKind == AR_TOBJ_OBJECT) {
|
|
|
if (leftType == rightType) {
|
|
@@ -8285,6 +8281,9 @@ clang::QualType HLSLExternalSource::CheckVectorConditional(
|
|
|
return QualType();
|
|
|
}
|
|
|
|
|
|
+ UINT rowCount, colCount;
|
|
|
+ GetRowsAndColsForAny(ResultTy, rowCount, colCount);
|
|
|
+
|
|
|
// If result is scalar, use condition dimensions.
|
|
|
// Otherwise, condition must either match or is scalar, then use result dimensions
|
|
|
if (rowCount * colCount == 1) {
|