Skip to content

Commit 98b05e5

Browse files
backport another ditt fix
1 parent a7c0b4c commit 98b05e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/asset/filters/CSwizzleAndConvertImageFilter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
namespace nbl::asset
1818
{
1919

20-
// TODO (devsh): remove Normalization states from these bases, doesn't really belong here, should stay in Blit
2120
namespace impl
2221
{
2322

@@ -57,7 +56,7 @@ class CSwizzleAndConvertImageFilterBase : public CSwizzleableAndDitherableFilter
5756
if constexpr (!std::is_void_v<Normalization>)
5857
{
5958
assert(kInFormat==EF_UNKNOWN || rInFormat==EF_UNKNOWN);
60-
state->normalization.template initialize<decodeBufferType>();
59+
state->normalization.template initialize<encodeBufferType>();
6160
auto perOutputRegion = [policy,&blockDims,&state,rInFormat](const CMatchedSizeInOutImageFilterCommon::CommonExecuteData& commonExecuteData, CBasicImageFilterCommon::clip_region_functor_t& clip) -> bool
6261
{
6362
auto normalizePrepass = [&commonExecuteData,&blockDims,&state,rInFormat](uint32_t readBlockArrayOffset, core::vectorSIMDu32 readBlockPos)
@@ -83,6 +82,7 @@ class CSwizzleAndConvertImageFilterBase : public CSwizzleableAndDitherableFilter
8382
return true;
8483
};
8584
CMatchedSizeInOutImageFilterCommon::commonExecute(state,perOutputRegion);
85+
state->normalization.finalize<encodeBufferType>();
8686
}
8787
}
8888
};

0 commit comments

Comments
 (0)