Enable testing of compat in dawn_end2end_tests only on GLES

Change-Id: I049bc6499f22ddb359b9d4701eaa5df31f5a652a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/134340
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Austin Eng 2023-05-24 21:31:36 +00:00 committed by Dawn LUCI CQ
parent 13f8bf205e
commit 817c076eb8
1 changed files with 5 additions and 1 deletions

View File

@ -446,7 +446,11 @@ void DawnTestEnvironment::SelectPreferredAdapterProperties(const dawn::native::I
wgpu::AdapterProperties properties;
adapter.GetProperties(&properties);
if (properties.compatibilityMode) {
// Skip non-OpenGLES compat adapters. Metal/Vulkan/D3D12 support
// core WebGPU.
// D3D11 is in an experimental state where it may support core.
// See crbug.com/dawn/1820 for determining d3d11 capabilities.
if (properties.compatibilityMode && properties.backendType != wgpu::BackendType::OpenGLES) {
continue;
}