Allow using swiftshader with the Vulkan backend

This adds swiftshader as a dependency of Dawn, and when it is present
dawn_use_swiftshader=true will force usage of it. (due to a Vulkan
loader limitation we can't have both regular drivers and swiftshader in
the same VkInstance).

BUG=dawn:283

Change-Id: Ib94f4dcca652eb380e994f007cdcfb145b1a5102
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13440
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2019-11-26 18:21:51 +00:00
committed by Commit Bot service account
parent 80d71ecd12
commit 74cebd6879
8 changed files with 74 additions and 8 deletions

1
.gitignore vendored
View File

@@ -19,6 +19,7 @@ third_party/jsoncpp/
third_party/llvm-build
third_party/markupsafe/
third_party/shaderc/
third_party/swiftshader/
third_party/spirv-cross/
third_party/spirv-headers/
third_party/vulkan-headers/