From 297417c754961d2c1c3f8a2e94126c668e4574bc Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Thu, 17 Apr 2025 02:02:55 -0600 Subject: Fix SV_InstanceID for emit-spirv-via-glsl path (#6848) --- tests/spirv/sv_instance.slang | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 +} -- cgit v1.2.3