[Bf-blender-cvs] [1562c9f0315] master: Fix OptiX viewport denoising not working when rendering scene (without OptiX) that uses unsupported features

Patrick Mours noreply at git.blender.org
Mon Jul 6 17:34:03 CEST 2020


Commit: 1562c9f031538219da30404a64e2a187560e5e3c
Author: Patrick Mours
Date:   Mon Jul 6 17:32:32 2020 +0200
Branches: master
https://developer.blender.org/rB1562c9f031538219da30404a64e2a187560e5e3c

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).

===================================================================

M	intern/cycles/device/device_multi.cpp

===================================================================

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;
     }



More information about the Bf-blender-cvs mailing list