Cycles: Properly default to Metal-RT off unless GPU is a M3 or newer #120299

Merged
Sergey Sharybin merged 1 commits from Alaska/blender:default-to-metal-rt-off into main 2024-04-09 16:19:37 +02:00
1 changed files with 6 additions and 2 deletions

View File

@ -77,8 +77,12 @@ void device_metal_info(vector<DeviceInfo> &devices)
if (@available(macos 14.0, *)) {
info.use_hardware_raytracing = device.supportsRaytracing;
/* Use hardware raytracing for faster rendering on architectures that support it. */
info.use_metalrt_by_default = (MetalInfo::get_apple_gpu_architecture(device) >= APPLE_M3);
info.use_metalrt_by_default = false;
if (vendor == METAL_GPU_APPLE) {
/* Use hardware raytracing for faster rendering on architectures that support it. */
info.use_metalrt_by_default = (MetalInfo::get_apple_gpu_architecture(device) >=
APPLE_M3);
}
}
}
# endif