From 8c43a19d2fd8f9d1bd9d5854a4b1e64d5231bc41 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 11 Oct 2022 21:41:28 -0700 Subject: Ignore d3d12 tests on x86. (#2439) --- tools/slang-test/slang-test-main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools') diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 8a8686a6b..59c16c88b 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -3972,6 +3972,11 @@ static void _disableCPPBackends(TestContext* context) } } +static void _disableD3D12Backend(TestContext* context) +{ + context->options.enabledApis &= ~(RenderApiFlag::D3D12); +} + static TestResult _asTestResult(ToolReturnCode retCode) { switch (retCode) @@ -4211,6 +4216,11 @@ SlangResult innerMain(int argc, char** argv) #endif } +#if SLANG_PROCESSOR_X86 + // Disable d3d12 tests on x86 right now since dxc for 32-bit windows doesn't seem to recognize sm_6_6. + _disableD3D12Backend(&context); +#endif + if (options.subCommand.getLength()) { // Get the function from the tool -- cgit v1.2.3