From 8406244e27c142ea56c7a934b09e0b1cdace6afd Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 20 Oct 2021 07:18:03 -0700 Subject: Re-enable swiftshader. (#1984) Ignore some gfx unit tests when using swiftshader. Co-authored-by: Yong He --- tools/gfx-unit-test/get-cmd-buffer-handle-test.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/gfx-unit-test/get-cmd-buffer-handle-test.cpp') diff --git a/tools/gfx-unit-test/get-cmd-buffer-handle-test.cpp b/tools/gfx-unit-test/get-cmd-buffer-handle-test.cpp index 62a00c3c2..97cb9a808 100644 --- a/tools/gfx-unit-test/get-cmd-buffer-handle-test.cpp +++ b/tools/gfx-unit-test/get-cmd-buffer-handle-test.cpp @@ -81,7 +81,12 @@ namespace gfx_test { SLANG_IGNORE_TEST; } - + // Ignore this test on swiftshader. Swiftshader seems to have a bug that causes the test + // to crash. + if (Slang::String(device->getDeviceInfo().adapterName).toLower().contains("swiftshader")) + { + SLANG_IGNORE_TEST; + } getBufferHandleTestImpl(device, context); } -- cgit v1.2.3