dolphin-emulator/Source/Core
Pierre de La Morinerie 0ecfaf3b9e
Metal: enable concurrent compilation only if available
Bug: https://bugs.dolphin-emu.org/issues/13404

On macOS 13.6 / Intel HD 5000, Dolphin crashes with this message:

> -[MTLIGAccelDevice setShouldMaximizeConcurrentCompilation:]: unrecognized selector

This should be available on all macOS 13.3+ systems – but when using OCLP drivers,
some devices use an older version of Metal.framework, which doesn't expose the selector.

This concerns Intel Ivy Bridge, Haswell and Nvidia Kepler when using OCLP on macOS 13.3
or newer.
(See
34676702f4/docs/PATCHEXPLAIN.md (L354C1-L354C83))

As the behavior is an optional optimization anyway, perform a dynamic
detection to avoid crashing if the feature is not available.
2023-11-24 15:09:25 +01:00
..
AudioCommon Use structs for config callback IDs 2023-08-17 19:19:26 +02:00
Common Netplay: Fix building on clang 17. 2023-11-03 16:15:04 +01:00
Core IOS: fix crash when closing invalid file descriptor 2023-11-21 12:00:34 +00:00
DiscIO DiscIO: Remove unintentional use of comma operator 2023-11-05 09:24:49 +01:00
DolphinNoGUI Merge pull request #11873 from AdmiralCurtiss/pause-and-lock-host 2023-06-06 13:50:20 +02:00
DolphinQt Merge pull request #12238 from AdmiralCurtiss/achievementheaderwidget-unused-variables 2023-11-12 21:24:17 +00:00
DolphinTool Merge pull request #11960 from Minty-Meeo/dolphin-tool-code-review-4 2023-06-17 14:18:21 +02:00
InputCommon SDL: Add default case to switch statement 2023-11-10 12:05:20 -08:00
MacUpdater CMake: Fix storyboard copying 2023-04-29 16:10:38 -05:00
UICommon Use structs for config callback IDs 2023-08-17 19:19:26 +02:00
UpdaterCommon CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
VideoBackends Metal: enable concurrent compilation only if available 2023-11-24 15:09:25 +01:00
VideoCommon Fix accidental fallthrough in BPStructs 2023-11-12 10:39:56 -08:00
WinUpdater StringUtil: Move CommandLineToUtf8Argv() into Common namespace 2023-05-16 14:23:21 -04:00
CMakeLists.txt
DolphinLib.ARM64.props
DolphinLib.props Merge pull request #12133 from mandar1jn/skylanders-improved-generation 2023-11-05 18:29:19 +01:00
DolphinLib.vcxproj Add lz4 submodule 2023-10-02 17:28:23 -04:00
DolphinLib.vcxproj.user
DolphinLib.x64.props