mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Add tlb invalidation.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
db66afb574
commit
b5ba5028d7
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user