summaryrefslogtreecommitdiffstats
path: root/tests/spirv
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2025-04-17 02:02:55 -0600
committerGitHub <noreply@github.com>2025-04-17 08:02:55 +0000
commit297417c754961d2c1c3f8a2e94126c668e4574bc (patch)
treefeeb275ff50974abf7f32bf29c89989c6f3f7bb0 /tests/spirv
parent8b2327b77110b6e5955ffc7fa181091cacc5674a (diff)
Fix SV_InstanceID for emit-spirv-via-glsl path (#6848)
Diffstat (limited to 'tests/spirv')
-rw-r--r--tests/spirv/sv_instance.slang3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/spirv/sv_instance.slang b/tests/spirv/sv_instance.slang
index e71c6c7fa..34f63d3ed 100644
--- a/tests/spirv/sv_instance.slang
+++ b/tests/spirv/sv_instance.slang
@@ -1,5 +1,6 @@
//TEST:SIMPLE(filecheck=GLSL): -target glsl -entry vertMain -stage vertex
//TEST:SIMPLE(filecheck=CHECK): -target spirv
+//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-via-glsl
// CHECK-DAG: %[[REG1:[0-9a-zA-Z_]+]] = OpLoad %int %gl_BaseInstance
// CHECK-DAG: %[[REG2:[0-9a-zA-Z_]+]] = OpLoad %int %gl_InstanceIndex
@@ -11,4 +12,4 @@
float4 vertMain(int i : SV_InstanceID) : SV_Position
{
return i;
-} \ No newline at end of file
+}