From a43b3c4d0ad03172dd45c2a785cade76dacb1e30 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Wed, 20 Nov 2024 11:40:18 +0200 Subject: [PATCH] Fix WGPU test by provding TEST_INPUT for outputBuffer (#5611) This makes tests/bugs/shadowed-lookup.slang pass on WGPU. The underlying issue seems similar to #5277. --- tests/bugs/shadowed-lookup.slang | 2 +- tests/expected-failure-github.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/bugs/shadowed-lookup.slang b/tests/bugs/shadowed-lookup.slang index 7a4b2eb707..73f739095c 100644 --- a/tests/bugs/shadowed-lookup.slang +++ b/tests/bugs/shadowed-lookup.slang @@ -1,6 +1,6 @@ //TEST:COMPARE_COMPUTE_EX: -slang -compute -//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer RWStructuredBuffer outputBuffer; struct SomeType diff --git a/tests/expected-failure-github.txt b/tests/expected-failure-github.txt index 5d345b9e4c..c49b3b5744 100644 --- a/tests/expected-failure-github.txt +++ b/tests/expected-failure-github.txt @@ -13,7 +13,6 @@ tests/bugs/frexp-double.slang.7 syn (wgpu) tests/bugs/gh-3980.slang.7 syn (wgpu) tests/bugs/gh-518.slang.2 syn (wgpu) tests/bugs/op-assignment-unify-mat.slang.4 syn (wgpu) -tests/bugs/shadowed-lookup.slang.1 syn (wgpu) tests/bugs/user-attribute-lookup.slang.2 syn (wgpu) tests/compute/atomics (wgpu) tests/compute/atomics-buffer (wgpu)