forked from bartvdbraak/blender
Fix #100066: Cycles hangs when MSL->AIR compilation fails
This fixes [#100066](https://projects.blender.org/blender/blender/issues/100066) by failing hard when front-end MSL->AIR compilation errors are encountered. Pull Request #105122
This commit is contained in:
parent
626c233dd2
commit
82ff277528
@ -902,6 +902,11 @@ void MetalDevice::cancel()
|
||||
|
||||
bool MetalDevice::is_ready(string &status) const
|
||||
{
|
||||
if (!error_msg.empty()) {
|
||||
/* Avoid hanging if we had an error. */
|
||||
return true;
|
||||
}
|
||||
|
||||
int num_loaded = MetalDeviceKernels::get_loaded_kernel_count(this, PSO_GENERIC);
|
||||
if (num_loaded < DEVICE_KERNEL_NUM) {
|
||||
status = string_printf("%d / %d render kernels loaded (may take a few minutes the first time)",
|
||||
|
Loading…
Reference in New Issue
Block a user