mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Add debug flag to disable cache flush
Related-To: NEO-5144 Change-Id: I29590d840a641dfcf3fc4d099ca84f196c8fdc1f Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
78feb47d6c
commit
5af3a46662
@@ -220,12 +220,19 @@ std::string HwHelperHw<Family>::getExtensions() const {
|
||||
template <>
|
||||
inline void MemorySynchronizationCommands<Family>::setPipeControlExtraProperties(PIPE_CONTROL &pipeControl, PipeControlArgs &args) {
|
||||
pipeControl.setHdcPipelineFlush(args.hdcPipelineFlush);
|
||||
|
||||
if (DebugManager.flags.FlushAllCaches.get()) {
|
||||
pipeControl.setHdcPipelineFlush(true);
|
||||
}
|
||||
if (DebugManager.flags.DoNotFlushCaches.get()) {
|
||||
pipeControl.setHdcPipelineFlush(false);
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
void MemorySynchronizationCommands<Family>::setCacheFlushExtraProperties(Family::PIPE_CONTROL &pipeControl) {
|
||||
pipeControl.setHdcPipelineFlush(true);
|
||||
pipeControl.setConstantCacheInvalidationEnable(false);
|
||||
void MemorySynchronizationCommands<Family>::setCacheFlushExtraProperties(PipeControlArgs &args) {
|
||||
args.hdcPipelineFlush = true;
|
||||
args.constantCacheInvalidationEnable = false;
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user