Commit: e20fa176083af9577d7e94c26c9f8b2b3ba31abf
Author: Sergey Sharybin
Date:   Wed Aug 4 11:59:13 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBe20fa176083af9577d7e94c26c9f8b2b3ba31abf

Cycles X: Log OIDN error

Ideally would communicate this to the interface, but those errors
are mainly useful for development and should happen in the release
builds.

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

M       intern/cycles/integrator/denoiser_oidn.cpp

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

diff --git a/intern/cycles/integrator/denoiser_oidn.cpp 
b/intern/cycles/integrator/denoiser_oidn.cpp
index b148eb1d951..a93bc79940d 100644
--- a/intern/cycles/integrator/denoiser_oidn.cpp
+++ b/intern/cycles/integrator/denoiser_oidn.cpp
@@ -187,6 +187,12 @@ class OIDNDenoiseContext {
     /* Filter the beauty image. */
     oidn_filter.execute();
 
+    /* Check for errors. */
+    const char *error_message;
+    if (oidn_device.getError(error_message) != oidn::Error::None) {
+      LOG(ERROR) << "OpenImageDenoise error: " << error_message;
+    }
+
     postprocess_output(oidn_color_pass, oidn_output_pass);
   }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to