diff options
| author | OatmealDome <julian@oatmealdome.me> | 2025-04-01 15:21:02 -0400 |
|---|---|---|
| committer | OatmealDome <julian@oatmealdome.me> | 2025-04-21 00:24:58 -0400 |
| commit | 53b66be47d41369821d7c91ccff7494d7b21e404 (patch) | |
| tree | 69733bb089baa07a9b8d8bec7a9de28cedf87c3c /Source/Core/VideoBackends | |
| parent | 0bc33fb6df9890569d370c9ccbcfa2e0d0333e42 (diff) | |
MTLUtil: Remove availability checks for macOS 10.15 and iOS 13
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/Metal/MTLUtil.mm | 13 |
1 files 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; } |
