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 <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng 2020-01-06 19:42:47 +00:00 committed by Commit Bot service account
parent 96f79f6db5
commit d08a14b709
1 changed files with 2 additions and 1 deletions

View File

@ -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 =