[Bf-blender-cvs] [b89a1687ce8] master: Fix "denoise_animation" tests with OptiX in Cycles

Patrick Mours noreply at git.blender.org
Mon Sep 30 15:38:25 CEST 2019


Commit: b89a1687ce8987e6a077bf861bbc9054c27544ea
Author: Patrick Mours
Date:   Mon Sep 30 14:44:22 2019 +0200
Branches: master
https://developer.blender.org/rBb89a1687ce8987e6a077bf861bbc9054c27544ea

Fix "denoise_animation" tests with OptiX in Cycles

The OptiX device only loads the denoising kernels when the "use_denoising" feature is active. This was not set by the calling code however and therefore they were never loaded and attempting to launch them failed (see T69801).

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D5946

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

M	intern/cycles/render/denoising.cpp

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

diff --git a/intern/cycles/render/denoising.cpp b/intern/cycles/render/denoising.cpp
index 39bd8ce00c2..4d819d1119e 100644
--- a/intern/cycles/render/denoising.cpp
+++ b/intern/cycles/render/denoising.cpp
@@ -866,8 +866,10 @@ Denoiser::Denoiser(DeviceInfo &device_info)
   TaskScheduler::init();
 
   /* Initialize device. */
-  DeviceRequestedFeatures req;
   device = Device::create(device_info, stats, profiler, true);
+
+  DeviceRequestedFeatures req;
+  req.use_denoising = true;
   device->load_kernels(req);
 }



More information about the Bf-blender-cvs mailing list