forked from bartvdbraak/blender
FIX #108019: Detect absence of ray tracing support on late 2015 iMac
On an iMac (Retina 5K, 27-inch, Late 2015) it crashed when rendering using Cycles. This was due to the fact that it incorrectly detected that the machine supported ray tracing. This uses the device.supportsRaytracing flag to fill in the use_hardware_raytracing flag for the device.
This commit is contained in:
parent
12240499ac
commit
215925e04c
@ -59,7 +59,13 @@ void device_metal_info(vector<DeviceInfo> &devices)
|
||||
|
||||
info.has_nanovdb = vendor == METAL_GPU_APPLE;
|
||||
info.has_light_tree = vendor != METAL_GPU_AMD;
|
||||
|
||||
info.use_hardware_raytracing = vendor != METAL_GPU_INTEL;
|
||||
if (info.use_hardware_raytracing) {
|
||||
if (@available(macos 11.0, *)) {
|
||||
info.use_hardware_raytracing = device.supportsRaytracing;
|
||||
}
|
||||
}
|
||||
|
||||
devices.push_back(info);
|
||||
device_index++;
|
||||
|
Loading…
Reference in New Issue
Block a user