forked from bartvdbraak/blender
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:
parent
61efeb6df9
commit
b89a1687ce
@ -866,8 +866,10 @@ Denoiser::Denoiser(DeviceInfo &device_info)
|
|||||||
TaskScheduler::init();
|
TaskScheduler::init();
|
||||||
|
|
||||||
/* Initialize device. */
|
/* Initialize device. */
|
||||||
DeviceRequestedFeatures req;
|
|
||||||
device = Device::create(device_info, stats, profiler, true);
|
device = Device::create(device_info, stats, profiler, true);
|
||||||
|
|
||||||
|
DeviceRequestedFeatures req;
|
||||||
|
req.use_denoising = true;
|
||||||
device->load_kernels(req);
|
device->load_kernels(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user