From 7c2ff54758d26b73074fd14143ecd843ba685e0d Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 4 Nov 2024 17:37:50 -0800 Subject: 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> --- tests/autodiff/matrix-arithmetic-fwd.slang | 2 +- tests/autodiff/reverse-loop-checkpoint-test.slang | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/autodiff') 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 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 -- cgit v1.2.3