summaryrefslogtreecommitdiff
path: root/tests/bugs
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2024-10-15 19:11:53 +0300
committerGitHub <noreply@github.com>2024-10-15 09:11:53 -0700
commit9e3b0367cfd63f21a0519b61b6fd13e94dac1c51 (patch)
treef35a6d53c25bb2b45cb295548361ca248e66e146 /tests/bugs
parentbe42eeed7d9e510fea93922c615f1801bc54f336 (diff)
Enable WebGPU tests in CI (#5239)
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/atomic-coerce.slang1
-rw-r--r--tests/bugs/buffer-swizzle-store.slang1
-rw-r--r--tests/bugs/dxbc-double-problem.slang1
-rw-r--r--tests/bugs/frexp-double.slang1
-rw-r--r--tests/bugs/frexp.slang1
-rw-r--r--tests/bugs/generic-type-duplication.slang1
-rw-r--r--tests/bugs/gh-2959.slang1
-rw-r--r--tests/bugs/gh-3980.slang1
-rw-r--r--tests/bugs/gh-471.slang1
-rw-r--r--tests/bugs/gh-518.slang1
-rw-r--r--tests/bugs/gh-566.slang1
-rw-r--r--tests/bugs/inf-float-literal.slang1
-rw-r--r--tests/bugs/mutating/resource-specialization-inout.slang1
-rw-r--r--tests/bugs/nested-switch.slang1
-rw-r--r--tests/bugs/obfuscate-specialization-naming.slang1
-rw-r--r--tests/bugs/op-assignment-unify-mat.slang1
-rw-r--r--tests/bugs/shadowed-lookup.slang1
-rw-r--r--tests/bugs/specialize-function-array-args.slang1
-rw-r--r--tests/bugs/static-var.slang1
-rw-r--r--tests/bugs/user-attribute-lookup.slang1
20 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs/atomic-coerce.slang b/tests/bugs/atomic-coerce.slang
index bfb0eeb63..eeb6a79a5 100644
--- a/tests/bugs/atomic-coerce.slang
+++ b/tests/bugs/atomic-coerce.slang
@@ -1,6 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 0 0 0 ], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
diff --git a/tests/bugs/buffer-swizzle-store.slang b/tests/bugs/buffer-swizzle-store.slang
index 3cfcf6e59..b9951dc3b 100644
--- a/tests/bugs/buffer-swizzle-store.slang
+++ b/tests/bugs/buffer-swizzle-store.slang
@@ -1,6 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT: RWTexture2D(format=R16G16_FLOAT, size=4, content = one, mipMaps = 1):name g_test
[format("rg16f")]
diff --git a/tests/bugs/dxbc-double-problem.slang b/tests/bugs/dxbc-double-problem.slang
index 9daa28a9f..502164f25 100644
--- a/tests/bugs/dxbc-double-problem.slang
+++ b/tests/bugs/dxbc-double-problem.slang
@@ -4,6 +4,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -use-dxil -output-using-type -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -output-using-type -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// The problem this test shows is around handling of double with dxbc on D3D12. In that combination
// this code does not write the correct value into the first element - it appears as 0, where
diff --git a/tests/bugs/frexp-double.slang b/tests/bugs/frexp-double.slang
index c2b4f21c7..4af50bee6 100644
--- a/tests/bugs/frexp-double.slang
+++ b/tests/bugs/frexp-double.slang
@@ -6,6 +6,7 @@
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-cuda -output-using-type
//metal currently does not support `double`
//DISABLE_TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-slang -shaderobj -mtl -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// BUF: type: int32_t
// BUF-NEXT: 1
diff --git a/tests/bugs/frexp.slang b/tests/bugs/frexp.slang
index 60912297c..38b4b3933 100644
--- a/tests/bugs/frexp.slang
+++ b/tests/bugs/frexp.slang
@@ -5,6 +5,7 @@
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -emit-spirv-directly -output-using-type
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-cuda -output-using-type
//TEST(smoke,compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-slang -shaderobj -mtl -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// BUF: type: int32_t
// BUF-NEXT: 1
diff --git a/tests/bugs/generic-type-duplication.slang b/tests/bugs/generic-type-duplication.slang
index 4117a7f81..9c5a0ae67 100644
--- a/tests/bugs/generic-type-duplication.slang
+++ b/tests/bugs/generic-type-duplication.slang
@@ -2,6 +2,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
struct MyGeneric<let addOne: bool>
{
diff --git a/tests/bugs/gh-2959.slang b/tests/bugs/gh-2959.slang
index 056900b95..3d2e24bc6 100644
--- a/tests/bugs/gh-2959.slang
+++ b/tests/bugs/gh-2959.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF): -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-slang -shaderobj -mtl
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<uint> outputBuffer;
diff --git a/tests/bugs/gh-3980.slang b/tests/bugs/gh-3980.slang
index 57cd28dbe..4ea99c66d 100644
--- a/tests/bugs/gh-3980.slang
+++ b/tests/bugs/gh-3980.slang
@@ -5,6 +5,7 @@
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cpu -compute -output-using-type
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cuda -compute -output-using-type
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-slang -shaderobj -mtl -output-using-type
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// Slang removes parentheses characters for the bitwise operators when they are not needed.
// DXC prints warning messages even when the expression is correct.
diff --git a/tests/bugs/gh-471.slang b/tests/bugs/gh-471.slang
index e7b09760b..3d70a38c5 100644
--- a/tests/bugs/gh-471.slang
+++ b/tests/bugs/gh-471.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):out,name outputBuffer
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// Test that "operator comma" works as expected
diff --git a/tests/bugs/gh-518.slang b/tests/bugs/gh-518.slang
index 16189ca9b..b6cf90405 100644
--- a/tests/bugs/gh-518.slang
+++ b/tests/bugs/gh-518.slang
@@ -1,6 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -shaderobj
//TEST_DISABLED(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// Note: can't actually test this on Vulkan right now because
// the support in render-test isn't good enough.
diff --git a/tests/bugs/gh-566.slang b/tests/bugs/gh-566.slang
index f1e53ba9a..e7db85ee0 100644
--- a/tests/bugs/gh-566.slang
+++ b/tests/bugs/gh-566.slang
@@ -3,6 +3,7 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
//TEST_INPUT:ubuffer(data=[4 3 2 1], stride=4):name inputBuffer
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
RWStructuredBuffer<uint> outputBuffer;
diff --git a/tests/bugs/inf-float-literal.slang b/tests/bugs/inf-float-literal.slang
index f40a4e8d4..b523329df 100644
--- a/tests/bugs/inf-float-literal.slang
+++ b/tests/bugs/inf-float-literal.slang
@@ -1,6 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-cpu -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
diff --git a/tests/bugs/mutating/resource-specialization-inout.slang b/tests/bugs/mutating/resource-specialization-inout.slang
index d2f9a3b9e..78e8f44fc 100644
--- a/tests/bugs/mutating/resource-specialization-inout.slang
+++ b/tests/bugs/mutating/resource-specialization-inout.slang
@@ -1,6 +1,7 @@
// Bug related to resource specialization on unused resource typed fields.
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT: Texture2D(size=4, content = one):name t2D
Texture2D t2D;
diff --git a/tests/bugs/nested-switch.slang b/tests/bugs/nested-switch.slang
index 3cfc0758b..485a83e1f 100644
--- a/tests/bugs/nested-switch.slang
+++ b/tests/bugs/nested-switch.slang
@@ -3,6 +3,7 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
//TEST(compute):COMPARE_COMPUTE:-vk -shaderobj
//TEST(compute):COMPARE_COMPUTE:-cpu -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
int test(int t, int r)
{
diff --git a/tests/bugs/obfuscate-specialization-naming.slang b/tests/bugs/obfuscate-specialization-naming.slang
index 2511adbea..28dc91eb6 100644
--- a/tests/bugs/obfuscate-specialization-naming.slang
+++ b/tests/bugs/obfuscate-specialization-naming.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -compile-arg -obfuscate -shaderobj
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -compile-arg -obfuscate -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 1 2 3], stride=4):name a
RWStructuredBuffer<int> a;
diff --git a/tests/bugs/op-assignment-unify-mat.slang b/tests/bugs/op-assignment-unify-mat.slang
index 5ee3897c3..6c1697ee3 100644
--- a/tests/bugs/op-assignment-unify-mat.slang
+++ b/tests/bugs/op-assignment-unify-mat.slang
@@ -3,6 +3,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -cpu
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<uint> outputBuffer;
diff --git a/tests/bugs/shadowed-lookup.slang b/tests/bugs/shadowed-lookup.slang
index ed4ab7893..7a4b2eb70 100644
--- a/tests/bugs/shadowed-lookup.slang
+++ b/tests/bugs/shadowed-lookup.slang
@@ -1,4 +1,5 @@
//TEST:COMPARE_COMPUTE_EX: -slang -compute
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
RWStructuredBuffer<float> outputBuffer;
diff --git a/tests/bugs/specialize-function-array-args.slang b/tests/bugs/specialize-function-array-args.slang
index 8a572eda4..83dd20863 100644
--- a/tests/bugs/specialize-function-array-args.slang
+++ b/tests/bugs/specialize-function-array-args.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// When a function is passed a parameter that contains an array, it specialized it as a performance
// improvement for VK. If the struct contained a structured buffer, though it meant that the
diff --git a/tests/bugs/static-var.slang b/tests/bugs/static-var.slang
index 004567466..7960774e0 100644
--- a/tests/bugs/static-var.slang
+++ b/tests/bugs/static-var.slang
@@ -1,5 +1,6 @@
// gh-775-ext.slang
//TEST(compute):COMPARE_COMPUTE: -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
int test(int inVal)
{
diff --git a/tests/bugs/user-attribute-lookup.slang b/tests/bugs/user-attribute-lookup.slang
index 96cd3ad19..6fabe585d 100644
--- a/tests/bugs/user-attribute-lookup.slang
+++ b/tests/bugs/user-attribute-lookup.slang
@@ -1,5 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//TEST(compute,vulkan):COMPARE_COMPUTE_EX:-vk -slang -compute -shaderobj
+//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;