Add tlb invalidation.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2021-03-22 15:16:16 +00:00
committed by Compute-Runtime-Automation
parent db66afb574
commit b5ba5028d7
3 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 Intel Corporation
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -18,6 +18,7 @@ struct PipeControlArgsBase {
bool stateCacheInvalidationEnable = false;
bool genericMediaStateClear = false;
bool hdcPipelineFlush = false;
bool tlbInvalidation = false;
protected:
PipeControlArgsBase() = default;

View File

@@ -243,6 +243,7 @@ void MemorySynchronizationCommands<GfxFamily>::setPipeControl(typename GfxFamily
pipeControl.setTextureCacheInvalidationEnable(args.textureCacheInvalidationEnable);
pipeControl.setVfCacheInvalidationEnable(args.vfCacheInvalidationEnable);
pipeControl.setGenericMediaStateClear(args.genericMediaStateClear);
pipeControl.setTlbInvalidate(args.tlbInvalidation);
setPipeControlExtraProperties(pipeControl, args);
@@ -487,6 +488,7 @@ void MemorySynchronizationCommands<GfxFamily>::addFullCacheFlush(LinearStream &c
args.pipeControlFlushEnable = true;
args.constantCacheInvalidationEnable = true;
args.stateCacheInvalidationEnable = true;
args.tlbInvalidation = true;
MemorySynchronizationCommands<GfxFamily>::setCacheFlushExtraProperties(args);
MemorySynchronizationCommands<GfxFamily>::setPipeControl(cmd, args);
*pipeControl = cmd;