refactor: improve PostSync helper methods

Related-To: NEO-8210

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-12-09 19:26:30 +00:00
committed by Compute-Runtime-Automation
parent 7cd08edd57
commit 58323bfb12
11 changed files with 13 additions and 29 deletions

View File

@@ -104,15 +104,13 @@ void GpgpuWalkerHelper<GfxFamily>::setupTimestampPacket(LinearStream *cmdStream,
const RootDeviceEnvironment &rootDeviceEnvironment) {
using POSTSYNC_DATA = std::remove_reference_t<std::invoke_result_t<decltype(&WalkerType::getPostSync), WalkerType &>>;
const auto &hwInfo = *rootDeviceEnvironment.getHardwareInfo();
auto &postSyncData = walkerCmd->getPostSync();
postSyncData.setDataportPipelineFlush(true);
postSyncData.setDataportSubsliceCacheFlush(true);
EncodeDispatchKernel<GfxFamily>::template setupPostSyncMocs<WalkerType>(*walkerCmd, rootDeviceEnvironment,
MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable(true, rootDeviceEnvironment));
EncodeDispatchKernel<GfxFamily>::template adjustTimestampPacket<WalkerType>(*walkerCmd, hwInfo);
if (debugManager.flags.UseImmDataWriteModeOnPostSyncOperation.get()) {
postSyncData.setOperation(POSTSYNC_DATA::OPERATION::OPERATION_WRITE_IMMEDIATE_DATA);
auto contextEndAddress = TimestampPacketHelper::getContextEndGpuAddress(*timestampPacketNode);