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:
Brecht Van Lommel
2024-03-08 14:56:32 +01:00
committed by Brecht Van Lommel
parent c4bf2d43e7
commit f278e4138c

View File

@@ -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