From d08a14b70982a90423f4965ae5625847316de09e Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Mon, 6 Jan 2020 19:42:47 +0000 Subject: [PATCH] Use Swiftshader by default when fuzzing Note: This still requires Chromium to have set dawn_swiftshader_dir to take effect. Bug: dawn:295 Change-Id: I0c953196630dd2694f68d290e6f3f1e427c20a2f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14821 Reviewed-by: Corentin Wallez Reviewed-by: Kai Ninomiya Commit-Queue: Austin Eng --- scripts/dawn_features.gni | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dawn_features.gni b/scripts/dawn_features.gni index 7cbb82f444..f2e95860cc 100644 --- a/scripts/dawn_features.gni +++ b/scripts/dawn_features.gni @@ -56,7 +56,8 @@ declare_args() { # dawn_swiftshader_dir variable in build_overrides/dawn.gni # Because of how the Vulkan loader works, setting this make Dawn only able # to find the Swiftshader ICD and not the others. - dawn_use_swiftshader = false + # Enabled by default when fuzzing. + dawn_use_swiftshader = build_with_chromium && use_fuzzing_engine # Enables error injection for faking failures to native API calls dawn_enable_error_injection =