SPV: Implement composite comparisons (reductions across hierchical compare).
diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp
index f1d6255..c17b2b3 100755
--- a/SPIRV/GlslangToSpv.cpp
+++ b/SPIRV/GlslangToSpv.cpp
@@ -2274,7 +2274,7 @@
if (reduceComparison && (builder.isVector(left) || builder.isMatrix(left) || builder.isAggregate(left))) {
assert(op == glslang::EOpEqual || op == glslang::EOpNotEqual);
- return builder.createCompare(precision, left, right, op == glslang::EOpEqual);
+ return builder.createCompositeCompare(precision, left, right, op == glslang::EOpEqual);
}
switch (op) {