mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
MTLUtil: Remove availability checks for macOS 10.15 and iOS 13
This commit is contained in:
parent
0bc33fb6df
commit
53b66be47d
1 changed files with 5 additions and 8 deletions
|
@ -304,14 +304,8 @@ void Metal::Util::PopulateBackendInfoFeatures(const VideoConfig& config, Backend
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_features.subgroup_ops = false;
|
g_features.subgroup_ops =
|
||||||
if (@available(macOS 10.15, iOS 13, *))
|
[device supportsFamily:MTLGPUFamilyMac2] || [device supportsFamily:MTLGPUFamilyApple7];
|
||||||
{
|
|
||||||
// Requires SIMD-scoped reduction operations
|
|
||||||
g_features.subgroup_ops =
|
|
||||||
[device supportsFamily:MTLGPUFamilyMac2] || [device supportsFamily:MTLGPUFamilyApple7];
|
|
||||||
backend_info->bSupportsFramebufferFetch = [device supportsFamily:MTLGPUFamilyApple1];
|
|
||||||
}
|
|
||||||
if (g_features.subgroup_ops)
|
if (g_features.subgroup_ops)
|
||||||
{
|
{
|
||||||
DetectionResult result = DetectInvertedIsHelper(device);
|
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);
|
DriverDetails::OverrideBug(DriverDetails::BUG_INVERTED_IS_HELPER, is_helper_inverted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
backend_info->bSupportsFramebufferFetch = [device supportsFamily:MTLGPUFamilyApple1];
|
||||||
#if TARGET_OS_OSX
|
#if TARGET_OS_OSX
|
||||||
if (vendor == DriverDetails::VENDOR_INTEL)
|
if (vendor == DriverDetails::VENDOR_INTEL)
|
||||||
backend_info->bSupportsFramebufferFetch |= DetectIntelGPUFBFetch(device);
|
backend_info->bSupportsFramebufferFetch |= DetectIntelGPUFBFetch(device);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_DYNAMIC_SAMPLER_INDEXING))
|
if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_DYNAMIC_SAMPLER_INDEXING))
|
||||||
backend_info->bSupportsDynamicSamplerIndexing = false;
|
backend_info->bSupportsDynamicSamplerIndexing = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue