From fc7de92000aa378da32c830ad0999eb46729ad43 Mon Sep 17 00:00:00 2001 From: cheneym2 Date: Tue, 5 Nov 2024 13:39:14 -0500 Subject: Update slang-rhi and fix error handling (#5485) Update slang-rhi to pick up a fix in webgpu compilation error handling. In doRenderComparisonTestRun(), only return TestResult::Pass if the shader is ran actually compiled. A similar check is in place elsewhere in slang-test-main, but was missed in doRenderComparisonTestRun(). Add two tests to the github CI skiplist, and use the skiplist in one additional CI config that was running without it. Closes 5291 --- .github/workflows/ci.yml | 3 ++- external/slang-rhi | 2 +- tests/expected-failure-github.txt | 2 ++ tools/slang-test/slang-test-main.cpp | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56e1df6b0..0491bbdc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -145,7 +145,8 @@ jobs: -use-test-server \ -server-count 8 \ -category ${{ matrix.test-category }} \ - -api all-cpu + -api all-cpu \ + -expected-failure-list tests/expected-failure-github.txt elif [[ "${{matrix.has-gpu}}" == "true" ]]; then "$bin_dir/slang-test" \ -use-test-server \ diff --git a/external/slang-rhi b/external/slang-rhi index 10ab9c69f..db40464b1 160000 --- a/external/slang-rhi +++ b/external/slang-rhi @@ -1 +1 @@ -Subproject commit 10ab9c69fb0f1e3f476c7fd66ca7f3bedffebe55 +Subproject commit db40464b1a84c671824472acbff83402959f9db6 diff --git a/tests/expected-failure-github.txt b/tests/expected-failure-github.txt index 3c318993a..9fe6d72f7 100644 --- a/tests/expected-failure-github.txt +++ b/tests/expected-failure-github.txt @@ -17,6 +17,7 @@ tests/autodiff/global-param-hoisting.slang.4 syn (wgpu) tests/autodiff/material/diff-bwd-falcor-material-system.slang.2 syn (wgpu) tests/autodiff/material2/diff-bwd-falcor-material-system.slang.2 syn (wgpu) tests/autodiff/matrix-arithmetic-fwd.slang.2 syn (wgpu) +tests/autodiff/no-diff-strip.slang.3 syn (wgpu) tests/autodiff/reverse-loop-checkpoint-test.slang.3 syn (wgpu) tests/bindings/nested-parameter-block-2.slang.4 syn (wgpu) tests/bindings/nested-parameter-block-3.slang.4 syn (wgpu) @@ -39,6 +40,7 @@ tests/bugs/op-assignment-unify-mat.slang.4 syn (wgpu) tests/bugs/shadowed-lookup.slang.1 syn (wgpu) tests/bugs/specialize-function-array-args.slang.2 syn (wgpu) tests/bugs/static-var.slang.1 syn (wgpu) +tests/bugs/texture2d-gather.hlsl.2 syn (wgpu) tests/bugs/user-attribute-lookup.slang.2 syn (wgpu) tests/compute/atomics (wgpu) tests/compute/atomics-buffer (wgpu) diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index fccba8fd8..bdc7a082b 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -3583,6 +3583,11 @@ TestResult doRenderComparisonTestRun( *outOutput = output; + // Always fail if the compilation produced a failure. + if (exeRes.resultCode != 0) + { + return TestResult::Fail; + } return TestResult::Pass; } -- cgit v1.2.3