summaryrefslogtreecommitdiffstats
path: root/tests/compute
diff options
context:
space:
mode:
authorvenkataram-nv <vedavamadath@nvidia.com>2025-07-30 09:27:38 -0700
committerGitHub <noreply@github.com>2025-07-30 16:27:38 +0000
commit92ee2927d0012dd454dff7bb53b900f5240073d5 (patch)
treed0a648fbb1e6b08c6eec90fadb23435731c1eefe /tests/compute
parent42dc521f7817328a20e40b3352ae667dfd124edb (diff)
Lowering unsupported matrix types for GLSL/WGSL/Metal targets (#7936)
* Add emit cases for WGSL and GLSL * Fix compilation warnings Modify short cutting test to reflect change in emit logic Lower matrix for metal as well Add emit matrix logic for metal Fix compiler warning Brace initializer for lowered matrices Fix compiler warnings * Tests for metal * Fix mult, any, and determinant * Fix matrix-matrix multiplication * Fix mat mul to be element-wise * Fix compiler warning * Move makeMatrix to legalization * Move unary and binary arithmetic operator lowering to legalization * Remove emit logic and move final comparison operators to legalization * Handle vector/matrix negation for WGSL * Restore older SPIR-V emit logic * Address PR comments * Revert to zero minus for negation * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests/compute')
-rw-r--r--tests/compute/logic-no-short-circuit-evaluation.slang4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/compute/logic-no-short-circuit-evaluation.slang b/tests/compute/logic-no-short-circuit-evaluation.slang
index ea2b7a0c3..342a11f28 100644
--- a/tests/compute/logic-no-short-circuit-evaluation.slang
+++ b/tests/compute/logic-no-short-circuit-evaluation.slang
@@ -32,7 +32,7 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
//SM5:(all({{.*}}&&
//HLSL2018:(all({{.*}}&&
//SM6:(all(and(
- //WGS:(all(select(vec2<bool>(false),
+ //WGS:(all((select(vec2<bool>(false),
//MTL:(all({{.*}}&&
if (all(bool2(index >= 1) && assignFunc(index)))
{
@@ -54,7 +54,7 @@ void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
//SM5:(all({{.*}}?{{.*}}:
//HLSL2018:(all({{.*}}?{{.*}}:
//SM6:(all(select(
- //WGS:(all(select(vec2<bool>(false),
+ //WGS:(all((select(vec2<bool>(false),
//MTL:(all(select(bool2(false)
if (all(bool2(index >= 3) ? assignFunc(index) : bool2(false)))
{