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:
Zbigniew Zdanowicz
2020-09-30 15:06:42 +02:00
committed by sys_ocldev
parent 78feb47d6c
commit 5af3a46662
10 changed files with 129 additions and 19 deletions

View File

@@ -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 <>