refactor: add check if event L3 flush is needed

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-03-05 15:46:03 +00:00
committed by Compute-Runtime-Automation
parent b5127eb1ea
commit 4c795027e3
25 changed files with 92 additions and 21 deletions

View File

@@ -89,6 +89,7 @@ struct EncodeDispatchKernelArgs {
bool interruptEvent = false;
bool immediateScratchAddressPatching = false;
bool makeCommandView = false;
bool isFlushL3AfterPostSyncEnabled = false;
bool requiresSystemMemoryFence() const {
return (isHostScopeSignalEvent && isKernelUsingSystemAllocation);
@@ -188,6 +189,9 @@ struct EncodeDispatchKernel {
template <typename WalkerType>
static void adjustTimestampPacket(WalkerType &walkerCmd, const EncodeDispatchKernelArgs &args);
template <typename WalkerType>
static void encodeL3FlushAfterPostSync(WalkerType &walkerCmd, const EncodeDispatchKernelArgs &args);
template <typename WalkerType>
static void setupPostSyncForRegularEvent(WalkerType &walkerCmd, const EncodeDispatchKernelArgs &args);