Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2019-09-30 15:44:22 +0300
committerPatrick Mours <pmours@nvidia.com>2019-09-30 16:38:07 +0300
commitb89a1687ce8987e6a077bf861bbc9054c27544ea (patch)
treef1908efa46b3b963c257678a9df8f0d457f38dbe /intern/cycles
parent61efeb6df986075713745d585bbfd881a2fbfda7 (diff)
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
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/denoising.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}