summaryrefslogtreecommitdiffstats
path: root/tests/compute
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-01-24 15:36:49 -0800
committerGitHub <noreply@github.com>2024-01-24 15:36:49 -0800
commite7b6de334f320429462a0257e2191ccf3cbc9a0d (patch)
tree7e2f6802a2f6fa5217903948efbd994b51e103b7 /tests/compute
parentdd57306d951dbcaf6471659fcd1d2c37738f36d0 (diff)
[SPIRV] Support `globallycoherent` and `[vk::index()]`. (#3488)
* [SPIRV] Support `globallycoherent` modifier. * Fix. * Disable executable cooperative vector tests. * Update expected failure. * [SPIRV] Emit varying output index decoration. * Add test. * Update tests. * Fix test. * Emit `SpvExecutionModeEarlyFragmentTests`. * Lower `StructuredBuffer<bool>`. * Support globallycoherent on ByteAddressBuffer. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/compute')
-rw-r--r--tests/compute/half-texture.slang10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/compute/half-texture.slang b/tests/compute/half-texture.slang
index c87f4359c..bdf98cb77 100644
--- a/tests/compute/half-texture.slang
+++ b/tests/compute/half-texture.slang
@@ -1,4 +1,4 @@
-//TEST:CROSS_COMPILE: -target spirv -entry computeMain -profile cs_6_2
+//TEST:SIMPLE(filecheck=CHECK): -target spirv -entry computeMain -profile cs_6_2
//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,8 +26,14 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
half2 h2 = halfTexture2.Sample(s, uv);
half4 h4 = halfTexture4.Sample(s, uv);
#else
- half h = halfTexture[pos2];
+ // CHECK: {{.*}} = OpImageRead
+ // CHECK: {{.*}} = OpFConvert %half
+ half h = halfTexture[pos2];
+ // CHECK: {{.*}} = OpImageRead
+ // CHECK: {{.*}} = OpFConvert %v2half
half2 h2 = halfTexture2[pos2];
+ // CHECK: {{.*}} = OpImageRead
+ // CHECK: {{.*}} = OpFConvert %v4half
half4 h4 = halfTexture4[pos2];
#endif
// Store a results