mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Add unit test helper function to set pipe control hdc flush
Separate unit test helper definitions bdw_and_later / xe_hp_and_later Related-To: NEO-6466 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fc224202d6
commit
e5a18177c5
@@ -313,11 +313,13 @@ void MemorySynchronizationCommands<GfxFamily>::setPipeControl(typename GfxFamily
|
||||
pipeControl.setStateCacheInvalidationEnable(args.stateCacheInvalidationEnable);
|
||||
pipeControl.setTextureCacheInvalidationEnable(args.textureCacheInvalidationEnable);
|
||||
pipeControl.setVfCacheInvalidationEnable(args.vfCacheInvalidationEnable);
|
||||
pipeControl.setGenericMediaStateClear(args.genericMediaStateClear);
|
||||
pipeControl.setTlbInvalidate(args.tlbInvalidation);
|
||||
pipeControl.setNotifyEnable(args.notifyEnable);
|
||||
pipeControl.setDcFlushEnable(args.dcFlushEnable);
|
||||
|
||||
if constexpr (GfxFamily::isUsingGenericMediaStateClear) {
|
||||
pipeControl.setGenericMediaStateClear(args.genericMediaStateClear);
|
||||
}
|
||||
setPipeControlExtraProperties(pipeControl, args);
|
||||
|
||||
if (DebugManager.flags.FlushAllCaches.get()) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -45,8 +45,8 @@ inline void MemorySynchronizationCommands<GfxFamily>::setCacheFlushExtraProperti
|
||||
args.unTypedDataPortCacheFlush = true;
|
||||
}
|
||||
|
||||
template <>
|
||||
void MemorySynchronizationCommands<Family>::setPipeControlWAFlags(PIPE_CONTROL &pipeControl) {
|
||||
template <typename GfxFamily>
|
||||
void MemorySynchronizationCommands<GfxFamily>::setPipeControlWAFlags(PIPE_CONTROL &pipeControl) {
|
||||
pipeControl.setCommandStreamerStallEnable(true);
|
||||
pipeControl.setHdcPipelineFlush(true);
|
||||
pipeControl.setUnTypedDataPortCacheFlush(true);
|
||||
|
||||
Reference in New Issue
Block a user