Skip to content

Commit 81bb882

Browse files
used utility func
1 parent 6182633 commit 81bb882

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/nbl/asset/utils/ICPUVirtualTexture.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ class ICPUVirtualTexture final : public IVirtualTexture<ICPUImageView, ICPUSampl
145145
blit.scratchMemoryByteSize = blit_filter_t::getRequiredScratchByteSize(&blit);
146146
blit.scratchMemory = reinterpret_cast<uint8_t*>(_NBL_ALIGNED_MALLOC(blit.scratchMemoryByteSize, _NBL_SIMD_ALIGNMENT));
147147

148-
const core::vectorSIMDu32 inExtent(blit.inExtent.width, blit.inExtent.height, blit.inExtent.depth, 1);
149-
const core::vectorSIMDu32 outExtent(blit.outExtent.width, blit.outExtent.height, blit.outExtent.depth, 1);
150-
if (!blit_filter_t::blit_utils_t::computeScaledKernelPhasedLUT(blit.scratchMemory + blit_filter_t::getScratchOffset(&blit, blit_filter_t::ESU_SCALED_KERNEL_PHASED_LUT), inExtent, outExtent, blit.inImage->getCreationParameters().type, blit.kernelX, blit.kernelY, blit.kernelZ))
148+
if (!blit.recomputeScaledKernelPhasedLUT())
151149
return nullptr;
152150

153151
const bool blit_succeeded = blit_filter_t::execute(&blit);

0 commit comments

Comments
 (0)