mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
Default dawn_use_swiftshader to true
SwiftShader is required to implement WebGPU fallback adapters. Perf tests are skipped for CPU adapters since they easily timeout for intensive benchmarks. Bug: chromium:1266550 Change-Id: Ib6e91da1128baae1770c797a69cf9ad605ea324d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/76421 Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -115,6 +115,13 @@ class DawnPerfTestWithParams : public DawnTestWithParams<Params>, public DawnPer
|
||||
: DawnTestWithParams<Params>(),
|
||||
DawnPerfTestBase(this, iterationsPerStep, maxStepsInFlight) {
|
||||
}
|
||||
void SetUp() override {
|
||||
DawnTestWithParams<Params>::SetUp();
|
||||
|
||||
wgpu::AdapterProperties properties;
|
||||
this->GetAdapter().GetProperties(&properties);
|
||||
DAWN_TEST_UNSUPPORTED_IF(properties.adapterType == wgpu::AdapterType::CPU);
|
||||
}
|
||||
~DawnPerfTestWithParams() override = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user