d3d11: support FeatureLevel::Core if D3D11 FL 11.1 is supported

Bug: dawn:1820
Change-Id: Iba76d9aa519b555d10c6a9d6ffdf529268ac6737
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/134080
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Peng Huang <penghuang@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Peng Huang 2023-05-23 23:53:03 +00:00 committed by Dawn LUCI CQ
parent 89172687c1
commit 6197fd1468
1 changed files with 9 additions and 1 deletions

View File

@ -71,7 +71,15 @@ bool PhysicalDevice::SupportsExternalImages() const {
}
bool PhysicalDevice::SupportsFeatureLevel(FeatureLevel featureLevel) const {
return featureLevel == FeatureLevel::Compatibility;
// TODO(dawn:1820): compare D3D11 feature levels with Dawn feature levels.
switch (featureLevel) {
case FeatureLevel::Core: {
return mFeatureLevel >= D3D_FEATURE_LEVEL_11_1;
}
case FeatureLevel::Compatibility: {
return true;
}
}
}
const DeviceInfo& PhysicalDevice::GetDeviceInfo() const {