summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-06-13 14:54:58 -0400
committerGitHub <noreply@github.com>2024-06-13 14:54:58 -0400
commitecc6ecb3a25a28eb5e85cfdb2bf170448ab9a4e7 (patch)
tree5bdb6d9d846eb3e8e1890958b173dcee33528138 /tests
parent0bf0bf77ac697d2a0fc7d90ec2899c6393b4306a (diff)
Fix cuda/cpp/metal crash for when using GLSL style shader inputs (#4378)
Decorations were not expected as an input, this causes a crash.
Diffstat (limited to 'tests')
-rw-r--r--tests/glsl/matrix-mul.slang13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/glsl/matrix-mul.slang b/tests/glsl/matrix-mul.slang
index c87c8ad18..156673b87 100644
--- a/tests/glsl/matrix-mul.slang
+++ b/tests/glsl/matrix-mul.slang
@@ -1,5 +1,6 @@
-//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage vertex -entry main -allow-glsl -emit-spirv-directly
-//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage vertex -entry main -allow-glsl
+//TEST:SIMPLE(filecheck=SPIRV): -target spirv -stage vertex -entry main -allow-glsl -emit-spirv-directly
+//TEST:SIMPLE(filecheck=SPIRV): -target spirv -stage vertex -entry main -allow-glsl
+//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry main -allow-glsl
#version 310 es
layout(location = 0) in highp vec4 a_position;
@@ -13,8 +14,10 @@ void main()
{
gl_Position = m1 * m2 * a_position;
- // CHECK: OpEntryPoint
- // CHECK: OpMatrixTimesMatrix
- // CHECK: OpMatrixTimesVector
+ // SPIRV: OpEntryPoint
+ // SPIRV: OpMatrixTimesMatrix
+ // SPIRV: OpMatrixTimesVector
+
+ // METAL: {{.*}}m1{{.*}}*{{.*}}m2{{.*}}*{{.*}}a_position{{.*}}
}