diff options
| author | venkataram-nv <vedavamadath@nvidia.com> | 2025-07-18 09:38:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 16:38:00 +0000 |
| commit | 48b6e2432ea28c06d04931fccd633e31eed6d995 (patch) | |
| tree | b976380fd3464b231275e0ae2c1c6ac8af1bb6c3 /source/slang/slang-ir-util.cpp | |
| parent | 85edfb178cd243134f4bb3d35ad71f154d76c81c (diff) | |
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>
Diffstat (limited to 'source/slang/slang-ir-util.cpp')
| -rw-r--r-- | source/slang/slang-ir-util.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
