Remove info.compatibilityMode in webgpu_test.cc
Bug: 395855516 Change-Id: I9f35717a7d85f737203e5e950a983628f045358e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6349621 Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/main@{#1431761}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
1c44ce70bc
commit
eacdc6d0f1
@ -467,10 +467,8 @@ TEST_F(WebGPUTest, CompatibilityMode) {
|
||||
// Compatibility adapter should be available.
|
||||
EXPECT_NE(adapter_, nullptr);
|
||||
|
||||
wgpu::AdapterInfo info;
|
||||
adapter_.GetInfo(&info);
|
||||
|
||||
EXPECT_TRUE(info.compatibilityMode);
|
||||
// A compat defaulting adapter could optionally have the CoreFeaturesAndLimits
|
||||
// feature.
|
||||
}
|
||||
|
||||
TEST_F(WebGPUTest, NonCompatibilityMode) {
|
||||
@ -483,10 +481,8 @@ TEST_F(WebGPUTest, NonCompatibilityMode) {
|
||||
// Non-compatibility adapter should be available.
|
||||
EXPECT_NE(adapter_, nullptr);
|
||||
|
||||
wgpu::AdapterInfo info;
|
||||
adapter_.GetInfo(&info);
|
||||
|
||||
EXPECT_FALSE(info.compatibilityMode);
|
||||
// A core defaulting adapter must have the CoreFeaturesAndLimits feature.
|
||||
EXPECT_TRUE(adapter_.HasFeature(wgpu::FeatureName::CoreFeaturesAndLimits));
|
||||
}
|
||||
|
||||
} // namespace gpu
|
||||
|
Reference in New Issue
Block a user