Fix #118016: OpenImageDenoise not using GPU for CPU + GPU render
Thanks to Alaska for pointing out the cause of the problem.
This commit is contained in:
committed by
Brecht Van Lommel
parent
c4bf2d43e7
commit
f278e4138c
@@ -30,6 +30,14 @@ CCL_NAMESPACE_BEGIN
|
||||
|
||||
bool OIDNDenoiserGPU::is_device_supported(const DeviceInfo &device)
|
||||
{
|
||||
if (device.type == DEVICE_MULTI) {
|
||||
for (const DeviceInfo &multi_device : device.multi_devices) {
|
||||
if (multi_device.type != DEVICE_CPU && is_device_supported(multi_device)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int device_type = OIDN_DEVICE_TYPE_DEFAULT;
|
||||
switch (device.type) {
|
||||
# ifdef OIDN_DEVICE_SYCL
|
||||
|
||||
Reference in New Issue
Block a user