summaryrefslogtreecommitdiffstats
path: root/thirdparty/oidn/core/autoencoder.cpp
diff options
context:
space:
mode:
authorjfons <joan.fonssanchez@gmail.com>2020-06-06 19:03:16 +0200
committerjfons <joan.fonssanchez@gmail.com>2020-06-06 19:03:16 +0200
commitdd79d1ce7847e7631ac56d28ca018c48bfae5af3 (patch)
tree71ff39b3c4da1710d0eef35b84e00ce8050611a7 /thirdparty/oidn/core/autoencoder.cpp
parentdc67d0737b86c7a6cab66752b96631c59c703997 (diff)
downloadredot-engine-dd79d1ce7847e7631ac56d28ca018c48bfae5af3.tar.gz
Upgrade OpenImageDenoise to v1.1.0
Upgrade OIDN to 1.1.0, the latest stable version that doesn't need the ISPC compiler. Documented the changes made during the removal of TBB and added a patch file for them.
Diffstat (limited to 'thirdparty/oidn/core/autoencoder.cpp')
-rw-r--r--thirdparty/oidn/core/autoencoder.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/thirdparty/oidn/core/autoencoder.cpp b/thirdparty/oidn/core/autoencoder.cpp
index 8ae2421fa6..d8da684cb8 100644
--- a/thirdparty/oidn/core/autoencoder.cpp
+++ b/thirdparty/oidn/core/autoencoder.cpp
@@ -90,12 +90,19 @@ namespace oidn {
if (!dirty)
return;
- {
+ // -- GODOT start --
+ //device->executeTask([&]()
+ //{
+ // GODOT end --
+
if (mayiuse(avx512_common))
net = buildNet<16>();
else
net = buildNet<8>();
- }
+
+ // GODOT start --
+ //});
+ // GODOT end --
dirty = false;
}
@@ -107,8 +114,10 @@ namespace oidn {
if (!net)
return;
-
- {
+ // -- GODOT start --
+ //device->executeTask([&]()
+ //{
+ // -- GODOT end --
Progress progress;
progress.func = progressFunc;
progress.userPtr = progressUserPtr;
@@ -154,7 +163,9 @@ namespace oidn {
tileIndex++;
}
}
- }
+ // -- GODOT start --
+ //});
+ // -- GODOT end --
}
void AutoencoderFilter::computeTileSize()
@@ -462,8 +473,11 @@ namespace oidn {
return std::make_shared<GammaTransferFunction>();
}
+// -- GODOT start --
// Godot doesn't need Raytracing filters. Removing them saves space in the weights files.
#if 0
+// -- GODOT end --
+
// --------------------------------------------------------------------------
// RTFilter
// --------------------------------------------------------------------------
@@ -491,7 +505,9 @@ namespace oidn {
weightData.hdr_alb = weights::rt_hdr_alb;
weightData.hdr_alb_nrm = weights::rt_hdr_alb_nrm;
}
+// -- GODOT start --
#endif
+// -- GODOT end --
// --------------------------------------------------------------------------
// RTLightmapFilter