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
This commit is contained in:
Patrick Mours 2019-09-30 14:44:22 +02:00
parent 61efeb6df9
commit b89a1687ce

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