Remove use of deprecated MTLGPUFamilyMac1
This was used to check for BC texture compression support, which is
always available on macOS anyway.
Bug: None
Change-Id: Ife71e1ca347cb4805ff970bdba04689bf501ddf9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/184384
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
diff --git a/src/dawn/native/metal/BackendMTL.mm b/src/dawn/native/metal/BackendMTL.mm
index 92b247e..133cd7b 100644
--- a/src/dawn/native/metal/BackendMTL.mm
+++ b/src/dawn/native/metal/BackendMTL.mm
@@ -497,15 +497,7 @@
EnableFeature(Feature::TextureCompressionBC);
}
#elif DAWN_PLATFORM_IS(MACOS)
- if (@available(macOS 10.15, *)) {
- if ([*mDevice supportsFamily:MTLGPUFamilyMac1]) {
- EnableFeature(Feature::TextureCompressionBC);
- }
- } else {
- if ([*mDevice supportsFeatureSet:MTLFeatureSet_macOS_GPUFamily1_v1]) {
- EnableFeature(Feature::TextureCompressionBC);
- }
- }
+ EnableFeature(Feature::TextureCompressionBC);
#endif
#if DAWN_PLATFORM_IS(IOS) && \
@@ -710,7 +702,6 @@
Apple5,
Apple6,
Apple7,
- Mac1,
Mac2,
};
@@ -722,9 +713,6 @@
if ([*mDevice supportsFamily:MTLGPUFamilyMac2]) {
return MTLGPUFamily::Mac2;
}
- if ([*mDevice supportsFamily:MTLGPUFamilyMac1]) {
- return MTLGPUFamily::Mac1;
- }
#endif
if ([*mDevice supportsFamily:MTLGPUFamilyApple7]) {
return MTLGPUFamily::Apple7;