fix: size estimation for tlb flush before copy

Related-To: HSD-18036669673

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2024-02-19 09:46:07 +00:00
committed by Compute-Runtime-Automation
parent 2100d57ce3
commit f31c88d05f
4 changed files with 116 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -169,6 +169,10 @@ size_t BlitCommandsHelper<GfxFamily>::estimateBlitCommandsSize(const BlitPropert
size += 2 * EncodeSetMMIO<GfxFamily>::sizeREG;
}
if (debugManager.flags.FlushTlbBeforeCopy.get() == 1) {
size += EncodeMiFlushDW<GfxFamily>::getCommandSizeWithWa(waArgs);
}
return alignUp(size, MemoryConstants::cacheLineSize);
}