summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-11-04 17:37:50 -0800
committerGitHub <noreply@github.com>2024-11-04 17:37:50 -0800
commit7c2ff54758d26b73074fd14143ecd843ba685e0d (patch)
tree0abe5c4f11de2bdb1e960a3fef441c36d420966e /tests
parent2c8dacfa471903a802a252905ec108420ee25d63 (diff)
Various WGSL fixes. (#5490)
* [WGSL] make sure switch has a default label. * Various WGSL fixes. * Update rhi submodule commit * format code * Remove unnecessary DISABLE_TEST directive on not applicable test. * Matrix comp mul + `select`. * Legalize binary ops for wgsl. --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/autodiff-dstdlib/dstdlib-abs.slang2
-rw-r--r--tests/autodiff/matrix-arithmetic-fwd.slang2
-rw-r--r--tests/autodiff/reverse-loop-checkpoint-test.slang1
-rw-r--r--tests/bugs/nested-switch.slang2
-rw-r--r--tests/hlsl-intrinsic/sampler-feedback/compute-sampler-feedback.slang1
-rw-r--r--tests/ir/string-literal-hash.slang2
-rw-r--r--tests/language-feature/constants/constexpr-loop.slang2
-rw-r--r--tests/library/linked.spirvbin816 -> 0 bytes
8 files changed, 6 insertions, 6 deletions
diff --git a/tests/autodiff-dstdlib/dstdlib-abs.slang b/tests/autodiff-dstdlib/dstdlib-abs.slang
index c0878bfb4..d11f06b31 100644
--- a/tests/autodiff-dstdlib/dstdlib-abs.slang
+++ b/tests/autodiff-dstdlib/dstdlib-abs.slang
@@ -1,6 +1,6 @@
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
-//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
+//TEST(compute):COMPARE_COMPUTE_EX:-wgpu -compute -output-using-type
//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0], stride=4):out,name=outputBuffer
RWStructuredBuffer<float> outputBuffer;
diff --git a/tests/autodiff/matrix-arithmetic-fwd.slang b/tests/autodiff/matrix-arithmetic-fwd.slang
index 0dd1936af..0c2db76e9 100644
--- a/tests/autodiff/matrix-arithmetic-fwd.slang
+++ b/tests/autodiff/matrix-arithmetic-fwd.slang
@@ -1,6 +1,6 @@
+//TEST(compute):COMPARE_COMPUTE_EX:-wgpu -compute -output-using-type
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
-//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer
RWStructuredBuffer<float> outputBuffer;
diff --git a/tests/autodiff/reverse-loop-checkpoint-test.slang b/tests/autodiff/reverse-loop-checkpoint-test.slang
index 19316a786..8191608fd 100644
--- a/tests/autodiff/reverse-loop-checkpoint-test.slang
+++ b/tests/autodiff/reverse-loop-checkpoint-test.slang
@@ -1,6 +1,7 @@
//TEST(compute):COMPARE_COMPUTE_EX:-dx12 -compute -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj -output-using-type
//TEST(compute):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
+//TEST(compute):COMPARE_COMPUTE_EX:-wgpu -compute -shaderobj -output-using-type
//TEST:SIMPLE(filecheck=CHECK): -target hlsl -profile cs_5_0 -entry computeMain -line-directive-mode none
//DISABLE_TEST:SIMPLE(filecheck=CHK):-target glsl -stage compute -entry computeMain -report-checkpoint-intermediates
diff --git a/tests/bugs/nested-switch.slang b/tests/bugs/nested-switch.slang
index 485a83e1f..90abe70d5 100644
--- a/tests/bugs/nested-switch.slang
+++ b/tests/bugs/nested-switch.slang
@@ -3,7 +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
+//TEST(compute):COMPARE_COMPUTE:-wgpu
int test(int t, int r)
{
diff --git a/tests/hlsl-intrinsic/sampler-feedback/compute-sampler-feedback.slang b/tests/hlsl-intrinsic/sampler-feedback/compute-sampler-feedback.slang
index a7fc8731c..77e7c2050 100644
--- a/tests/hlsl-intrinsic/sampler-feedback/compute-sampler-feedback.slang
+++ b/tests/hlsl-intrinsic/sampler-feedback/compute-sampler-feedback.slang
@@ -1,5 +1,4 @@
//TEST:COMPILE: -entry computeMain -stage compute -target callable tests/hlsl-intrinsic/sampler-feedback/compute-sampler-feedback.slang
-//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
// Not available on non PS shader
// dx.op.writeSamplerFeedback WriteSamplerFeedback
diff --git a/tests/ir/string-literal-hash.slang b/tests/ir/string-literal-hash.slang
index 678a8d9c7..2d61a84c1 100644
--- a/tests/ir/string-literal-hash.slang
+++ b/tests/ir/string-literal-hash.slang
@@ -1,6 +1,6 @@
//TEST(compute):COMPARE_COMPUTE: -shaderobj
//TEST(compute):COMPARE_COMPUTE: -vk -shaderobj
-//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
+//TEST(compute):COMPARE_COMPUTE:-wgpu
// Note: disabled on CPU target until we can fill
// in a more correct/complete `String` and `getStringHash`
diff --git a/tests/language-feature/constants/constexpr-loop.slang b/tests/language-feature/constants/constexpr-loop.slang
index 81b0a5c17..7af9c60b2 100644
--- a/tests/language-feature/constants/constexpr-loop.slang
+++ b/tests/language-feature/constants/constexpr-loop.slang
@@ -1,6 +1,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj -output-using-type
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
-//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
+//TEST(compute):COMPARE_COMPUTE_EX: -wgpu -compute -output-using-type
//TEST_INPUT: set g_texture = Texture2D(size=8, content = one)
//TEST_INPUT: set g_sampler = Sampler
diff --git a/tests/library/linked.spirv b/tests/library/linked.spirv
deleted file mode 100644
index 7ea385e71..000000000
--- a/tests/library/linked.spirv
+++ /dev/null
Binary files differ