|
@@ -10318,8 +10318,7 @@ SpirvInstruction *SpirvEmitter::processIntrinsicDot(const CallExpr *callExpr) {
|
|
assert(arg0isScalarOrVec && arg1isScalarOrVec);
|
|
assert(arg0isScalarOrVec && arg1isScalarOrVec);
|
|
// The result type must be a scalar.
|
|
// The result type must be a scalar.
|
|
assert(returnIsScalar);
|
|
assert(returnIsScalar);
|
|
- // The element type of each argument and the return type must be the same.
|
|
|
|
- assert(returnType == vec1ComponentType);
|
|
|
|
|
|
+ // The element type of each argument must be the same.
|
|
assert(vec0ComponentType == vec1ComponentType);
|
|
assert(vec0ComponentType == vec1ComponentType);
|
|
// The size of the two arguments must be equal.
|
|
// The size of the two arguments must be equal.
|
|
assert(vec0Size == vec1Size);
|
|
assert(vec0Size == vec1Size);
|