diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-07-06 18:32:32 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-07-06 18:33:04 +0300 |
commit | 1562c9f031538219da30404a64e2a187560e5e3c (patch) | |
tree | c4495cd883eae069045a38f692e6623576084258 /intern | |
parent | aabfd2fb9bbd5f7b64a7a800d1be00161497e745 (diff) |
Fix OptiX viewport denoising not working when rendering scene (without OptiX) that uses unsupported features
Denoising devices do not need to load the full feature set of kernels, so only activate the denoising
feature for them (so that it is possible to use features that are supported by the render devices, but
not the denoising devices).
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/device/device_multi.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/device/device_multi.cpp b/intern/cycles/device/device_multi.cpp index fd14bbdccc5..d38cbfccb6f 100644 --- a/intern/cycles/device/device_multi.cpp +++ b/intern/cycles/device/device_multi.cpp @@ -177,8 +177,11 @@ class MultiDevice : public Device { return false; if (requested_features.use_denoising) { + /* Only need denoising feature, everything else is unused. */ + DeviceRequestedFeatures denoising_features; + denoising_features.use_denoising = true; foreach (SubDevice &sub, denoising_devices) - if (!sub.device->load_kernels(requested_features)) + if (!sub.device->load_kernels(denoising_features)) return false; } |