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
commit 7752e247f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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));