Skip to content
Snippets Groups Projects
Commit f13c01f4 authored by Michael Jones's avatar Michael Jones Committed by Brecht Van Lommel
Browse files

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
parent 0a569f13
No related branches found
No related tags found
No related merge requests found
...@@ -394,7 +394,7 @@ MetalKernelPipeline *ShaderCache::get_best_pipeline(DeviceKernel kernel, const M ...@@ -394,7 +394,7 @@ MetalKernelPipeline *ShaderCache::get_best_pipeline(DeviceKernel kernel, const M
bool MetalKernelPipeline::should_use_binary_archive() const bool MetalKernelPipeline::should_use_binary_archive() const
{ {
/* Issues with binary archives in older macOS versions. */ /* 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 (auto str = getenv("CYCLES_METAL_DISABLE_BINARY_ARCHIVES")) {
if (atoi(str) != 0) { if (atoi(str) != 0) {
/* Don't archive if we have opted out by env var. */ /* Don't archive if we have opted out by env var. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment