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:
authorSergey Sharybin <sergey@blender.org>2022-01-28 15:25:23 +0300
committerSergey Sharybin <sergey@blender.org>2022-01-28 16:28:04 +0300
commit430f71fce289e876602178330ac725c46c043abf (patch)
tree103e8c8a5067ac36ecf0416a0c1b72282489c1a6 /intern/cycles/integrator/denoiser_oidn.h
parent29a1d8b1d3fbf5bc6cc77906ded2178b5d77793b (diff)
Fix insufficient CPU flags checks for Cycles OIDN
Sometime throughout development some checks got lost during refactor. This change makes it so that if OIDN is not supported on the current CPU Cycles will report an error and stop rendering. This behavior is similar to when an OptiX denoiser is requested and there is no OptiX compatible device available. The easiest way to verify this change is to force return false from the `openimagedenoise_supported()`. Fixes Cycles part of the T94127. Differential Revision: https://developer.blender.org/D13944
Diffstat (limited to 'intern/cycles/integrator/denoiser_oidn.h')
-rw-r--r--intern/cycles/integrator/denoiser_oidn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/integrator/denoiser_oidn.h b/intern/cycles/integrator/denoiser_oidn.h
index a0ec3e26b9c..2b815be973e 100644
--- a/intern/cycles/integrator/denoiser_oidn.h
+++ b/intern/cycles/integrator/denoiser_oidn.h
@@ -38,6 +38,7 @@ class OIDNDenoiser : public Denoiser {
protected:
virtual uint get_device_type_mask() const override;
+ virtual Device *ensure_denoiser_device(Progress *progress) override;
/* We only perform one denoising at a time, since OpenImageDenoise itself is multithreaded.
* Use this mutex whenever images are passed to the OIDN and needs to be denoised. */