From d7aacdda1119d419ce886f9ba4b9401de2834bed Mon Sep 17 00:00:00 2001 From: Stephen White Date: Fri, 29 Jan 2021 22:39:45 +0000 Subject: [PATCH] Set the default ANGLE backend to SwiftShader for dawn tests. This will apply to the bots (once they're running the ES backend) as well as developer builds. Bug: dawn:580 dawn:447 Change-Id: I0cb7864c094d6bbd636f91734ca299de51a9f0e5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/39420 Reviewed-by: Austin Eng Reviewed-by: Corentin Wallez Commit-Queue: Stephen White --- src/tests/DawnTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/DawnTest.cpp b/src/tests/DawnTest.cpp index 2db8691234..b680edd74e 100644 --- a/src/tests/DawnTest.cpp +++ b/src/tests/DawnTest.cpp @@ -365,6 +365,8 @@ std::unique_ptr DawnTestEnvironment::CreateInstanceAndDis adapterOptions.getProc = reinterpret_cast(glfwGetProcAddress); instance->DiscoverAdapters(&adapterOptions); + SetEnvironmentVar("ANGLE_DEFAULT_PLATFORM", "swiftshader"); + glfwDefaultWindowHints(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);