From fd06944d154d41a8f12282fef652fb616d242cdd Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Mon, 6 Jan 2025 14:12:22 +0100 Subject: [PATCH] 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 --- intern/cycles/device/metal/kernel.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/device/metal/kernel.mm b/intern/cycles/device/metal/kernel.mm index 554f282f0e5..c5ac5ce433b 100644 --- a/intern/cycles/device/metal/kernel.mm +++ b/intern/cycles/device/metal/kernel.mm @@ -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. */