New method to return TimestampPacket alignment

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-04-01 10:15:17 +00:00
committed by Compute-Runtime-Automation
parent e93dc9c61a
commit da9d039dd6
5 changed files with 36 additions and 18 deletions

View File

@@ -1282,10 +1282,15 @@ TagAllocatorBase *CommandStreamReceiverHw<GfxFamily>::getTimestampPacketAllocato
using TimestampPacketsT = TimestampPackets<typename GfxFamily::TimestampPacketType>;
timestampPacketAllocator = std::make_unique<TagAllocator<TimestampPacketsT>>(
rootDeviceIndex, getMemoryManager(), getPreferredTagPoolSize(), MemoryConstants::cacheLineSize * 4,
rootDeviceIndex, getMemoryManager(), getPreferredTagPoolSize(), getTimestampPacketAllocatorAlignment(),
sizeof(TimestampPacketsT), doNotReleaseNodes, osContext->getDeviceBitfield());
}
return timestampPacketAllocator.get();
}
template <typename GfxFamily>
size_t CommandStreamReceiverHw<GfxFamily>::getTimestampPacketAllocatorAlignment() const {
return MemoryConstants::cacheLineSize * 4;
}
} // namespace NEO