From 48b6e2432ea28c06d04931fccd633e31eed6d995 Mon Sep 17 00:00:00 2001 From: venkataram-nv Date: Fri, 18 Jul 2025 09:38:00 -0700 Subject: Lower int/uint/bool matrices to arrays for SPIRV (#7687) * Add tests for expected behaviour * Allow matrix types in logical or/and * Legalize int/bool matrix types and construction with makeMatrix * Legalize uint matrices and operations * Limit testing to only SPIRV * Better tests for int and bool * Add test for uint * Remove GLSL tests * Remove old test for diagnosing int matrices * Emit SPIRV directly in tests * format code * Address PR comments * Improve testing * Address PR comments * format code * Add tests for matrix intrinsic operations * Move matrix lowering to dedicated legalization pass * Fix compiler warning * Remove signal again * Reorder matrix and vector legalization * Fix formatting * Add shift and comparison tests --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/slang/slang-ir-util.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/slang/slang-ir-util.cpp') diff --git a/source/slang/slang-ir-util.cpp b/source/slang/slang-ir-util.cpp index 1b11f8165..a1d043dff 100644 --- a/source/slang/slang-ir-util.cpp +++ b/source/slang/slang-ir-util.cpp @@ -453,6 +453,9 @@ void getTypeNameHint(StringBuilder& sb, IRInst* type) switch (type->getOp()) { + case kIROp_BoolType: + sb << "bool"; + break; case kIROp_FloatType: sb << "float"; break; -- cgit v1.2.3