From f1de1817ca10e34ec6a844100f10f0de3340c9f2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 23 Apr 2024 12:14:21 -0700 Subject: Switch to direct-to-spirv backend as default. (#4002) * Switch to direct-to-spirv backend as default. * Fix slang-test. * Fix. * Fix. --- tests/cross-compile/glsl-generic-in.slang | 11 +++++++---- tests/cross-compile/glslang-error.glsl | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/cross-compile') diff --git a/tests/cross-compile/glsl-generic-in.slang b/tests/cross-compile/glsl-generic-in.slang index a43f33c21..a743c32cb 100644 --- a/tests/cross-compile/glsl-generic-in.slang +++ b/tests/cross-compile/glsl-generic-in.slang @@ -1,7 +1,10 @@ -//TEST:SIMPLE(filecheck=CHECK): -target spirv-assembly -entry main -profile vs_5_0 -// CHECK: vIn_field_v0_0 = OpVariable %_ptr_Input_v4float Input -// CHECK: %vIn_field_v1_0 = OpVariable %_ptr_Input_v2float Input -// CHECK: %vIn_p0_0 = OpVariable %_ptr_Input_v3float Input +//TEST:SIMPLE(filecheck=CHECK): -target spirv-assembly -entry main -profile vs_5_0 -emit-spirv-directly +//TEST:SIMPLE(filecheck=CHECK): -target spirv-assembly -entry main -profile vs_5_0 -emit-spirv-via-glsl + +// CHECK: vIn_field_v0{{.*}} = OpVariable %_ptr_Input_v4float Input +// CHECK: %vIn_field_v1{{.*}}= OpVariable %_ptr_Input_v2float Input +// CHECK: %vIn_p0{{.*}}= OpVariable %_ptr_Input_v3float Input + interface IField { float get(); diff --git a/tests/cross-compile/glslang-error.glsl b/tests/cross-compile/glslang-error.glsl index c7d709442..eb59b72f6 100644 --- a/tests/cross-compile/glslang-error.glsl +++ b/tests/cross-compile/glslang-error.glsl @@ -1,4 +1,4 @@ -//TEST(glslang):SIMPLE:-pass-through glslang -target spirv -entry compute -stage compute -profile sm_5_1 +//TEST(glslang):SIMPLE:-pass-through glslang -target spirv -entry compute -stage compute -profile sm_5_1 -emit-spirv-via-glsl #version 450 void main() -- cgit v1.2.3