Merge pull request #11911 from TellowKrinkle/MTLParallelCompilation

VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when available
This commit is contained in:
OatmealDome
2023-06-10 19:39:24 +02:00
committed by GitHub

View File

@ -95,6 +95,11 @@ bool Metal::VideoBackend::Initialize(const WindowSystemInfo& wsi)
MRCOwned<id<MTLDevice>> adapter = std::move(devs[selected_adapter_index]);
Util::PopulateBackendInfoFeatures(&g_Config, adapter);
#if TARGET_OS_OSX
if (@available(macOS 13.3, *))
[adapter setShouldMaximizeConcurrentCompilation:YES];
#endif
UpdateActiveConfig();
MRCOwned<CAMetalLayer*> layer = MRCRetain(static_cast<CAMetalLayer*>(wsi.render_surface));