mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
refactor: improve PostSync helper methods
Related-To: NEO-8210 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7cd08edd57
commit
58323bfb12
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user