From 53b66be47d41369821d7c91ccff7494d7b21e404 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Tue, 1 Apr 2025 15:21:02 -0400 Subject: [PATCH] MTLUtil: Remove availability checks for macOS 10.15 and iOS 13 --- Source/Core/VideoBackends/Metal/MTLUtil.mm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Source/Core/VideoBackends/Metal/MTLUtil.mm b/Source/Core/VideoBackends/Metal/MTLUtil.mm index 326b89a765..cc42b9039b 100644 --- a/Source/Core/VideoBackends/Metal/MTLUtil.mm +++ b/Source/Core/VideoBackends/Metal/MTLUtil.mm @@ -304,14 +304,8 @@ void Metal::Util::PopulateBackendInfoFeatures(const VideoConfig& config, Backend break; } - g_features.subgroup_ops = false; - if (@available(macOS 10.15, iOS 13, *)) - { - // Requires SIMD-scoped reduction operations - g_features.subgroup_ops = - [device supportsFamily:MTLGPUFamilyMac2] || [device supportsFamily:MTLGPUFamilyApple7]; - backend_info->bSupportsFramebufferFetch = [device supportsFamily:MTLGPUFamilyApple1]; - } + g_features.subgroup_ops = + [device supportsFamily:MTLGPUFamilyMac2] || [device supportsFamily:MTLGPUFamilyApple7]; if (g_features.subgroup_ops) { DetectionResult result = DetectInvertedIsHelper(device); @@ -322,10 +316,13 @@ void Metal::Util::PopulateBackendInfoFeatures(const VideoConfig& config, Backend DriverDetails::OverrideBug(DriverDetails::BUG_INVERTED_IS_HELPER, is_helper_inverted); } } + + backend_info->bSupportsFramebufferFetch = [device supportsFamily:MTLGPUFamilyApple1]; #if TARGET_OS_OSX if (vendor == DriverDetails::VENDOR_INTEL) backend_info->bSupportsFramebufferFetch |= DetectIntelGPUFBFetch(device); #endif + if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_DYNAMIC_SAMPLER_INDEXING)) backend_info->bSupportsDynamicSamplerIndexing = false; }