You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
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.
This commit is contained in:
26
thirdparty/oidn/core/autoencoder.cpp
vendored
26
thirdparty/oidn/core/autoencoder.cpp
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user