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/compute/half-texture.slang | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tests/compute/half-texture.slang') diff --git a/tests/compute/half-texture.slang b/tests/compute/half-texture.slang index bdf98cb77..ca51df3cc 100644 --- a/tests/compute/half-texture.slang +++ b/tests/compute/half-texture.slang @@ -1,4 +1,5 @@ -//TEST:SIMPLE(filecheck=CHECK): -target spirv -entry computeMain -profile cs_6_2 +//TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -entry computeMain -profile cs_6_2 -emit-spirv-via-glsl +//TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -entry computeMain -profile cs_6_2 -emit-spirv-directly //TEST:CROSS_COMPILE: -target dxil-assembly -entry computeMain -profile cs_6_2 //TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out @@ -26,14 +27,14 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) half2 h2 = halfTexture2.Sample(s, uv); half4 h4 = halfTexture4.Sample(s, uv); #else - // CHECK: {{.*}} = OpImageRead - // CHECK: {{.*}} = OpFConvert %half + // CHECK_SPIRV: {{.*}} = OpImageRead + // CHECK_SPIRV: {{.*}} = OpFConvert half h = halfTexture[pos2]; - // CHECK: {{.*}} = OpImageRead - // CHECK: {{.*}} = OpFConvert %v2half + // CHECK_SPIRV: {{.*}} = OpImageRead + // CHECK_SPIRV: {{.*}} = OpFConvert half2 h2 = halfTexture2[pos2]; - // CHECK: {{.*}} = OpImageRead - // CHECK: {{.*}} = OpFConvert %v4half + // CHECK_SPIRV: {{.*}} = OpImageRead + // CHECK_SPIRV: {{.*}} = OpFConvert half4 h4 = halfTexture4[pos2]; #endif // Store a results -- cgit v1.2.3