Fix #131458: Cycles Metal workaround for binary archives crash

There is a macOS bug that causes `[binaryArchive serializeToURL]` to crash sometimes. The fix is coming in macOS 15.4.

Pull Request: https://projects.blender.org/blender/blender/pulls/132688
This commit is contained in:
Michael Jones
2025-01-06 14:12:22 +01:00
committed by Michael Jones (Apple)
parent c6d6efaaa2
commit fd06944d15
+1 -1
View File
@@ -402,7 +402,7 @@ MetalKernelPipeline *ShaderCache::get_best_pipeline(DeviceKernel kernel, const M
bool MetalKernelPipeline::should_use_binary_archive() const
{
/* Issues with binary archives in older macOS versions. */
if (@available(macOS 13.0, *)) {
if (@available(macOS 15.4, *)) {
if (auto *str = getenv("CYCLES_METAL_DISABLE_BINARY_ARCHIVES")) {
if (atoi(str) != 0) {
/* Don't archive if we have opted out by env var. */