[Bf-blender-cvs] [e20fa176083] cycles-x: Cycles X: Log OIDN error
Sergey Sharybin
noreply at git.blender.org
Wed Aug 4 12:30:13 CEST 2021
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);
}
More information about the Bf-blender-cvs
mailing list