summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/spirv/debug-variable-scope.slang (renamed from tests/spirv/debug-local-variable-scope.slang)4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/spirv/debug-local-variable-scope.slang b/tests/spirv/debug-variable-scope.slang
index 22f6aef2e..946c1a08b 100644
--- a/tests/spirv/debug-local-variable-scope.slang
+++ b/tests/spirv/debug-variable-scope.slang
@@ -1,4 +1,4 @@
-//TEST:SIMPLE(filecheck=CHECK):-target spirv -entry main -stage fragment -g2 -emit-spirv-directly
+//TEST:SIMPLE(filecheck=CHECK):-target spirv-asm -entry main -stage fragment -g2 -emit-spirv-directly
Texture2D testTex : register(t0);
SamplerState testSampler : register(s0);
@@ -17,5 +17,7 @@ float4 main(PSIn input) : SV_TARGET
return float4(colVal.xyz, 1.0);
}
+// CHECK: %[[COMPILATION_UNIT_ID:[0-9]+]] = OpExtInst %void {{.*}} DebugCompilationUnit
// CHECK: %[[FUNC_ID:[0-9]+]] = OpExtInst %void {{.*}} DebugFunction %{{[0-9]+}}
// CHECK: DebugLocalVariable %{{[0-9]+}} %{{[0-9]+}} %{{[0-9]+}} %{{.*}} %{{.*}} %[[FUNC_ID]]
+// CHECK: DebugGlobalVariable %{{[0-9]+}} %{{[0-9]+}} %{{[0-9]+}} %{{.*}} %{{.*}} %[[COMPILATION_UNIT_ID]]