Update TimestampPacket alignment

Change-Id: Iaf30c2cca8a32cc17b838d96366ebe25491afc42
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2020-05-06 13:57:54 +02:00
committed by sys_ocldev
parent 8b896bf864
commit 78d5704c51
2 changed files with 6 additions and 1 deletions

View File

@ -327,6 +327,11 @@ HWTEST_F(CommandStreamReceiverTest, givenTimestampPacketAllocatorWhenAskingForTa
EXPECT_NE(nullptr, node1);
EXPECT_NE(nullptr, node2);
EXPECT_NE(node1, node2);
constexpr auto tagAlignment = MemoryConstants::cacheLineSize * 4;
EXPECT_TRUE(isAligned(node1->getGpuAddress(), tagAlignment));
EXPECT_TRUE(isAligned(node2->getGpuAddress(), tagAlignment));
}
HWTEST_F(CommandStreamReceiverTest, givenUltCommandStreamReceiverWhenAddAubCommentIsCalledThenCallAddAubCommentOnCsr) {

View File

@ -475,7 +475,7 @@ TagAllocator<TimestampPacketStorage> *CommandStreamReceiver::getTimestampPacketA
DebugManager.flags.DisableTimestampPacketOptimizations.get();
timestampPacketAllocator = std::make_unique<TagAllocator<TimestampPacketStorage>>(
rootDeviceIndex, getMemoryManager(), getPreferredTagPoolSize(), MemoryConstants::cacheLineSize,
rootDeviceIndex, getMemoryManager(), getPreferredTagPoolSize(), MemoryConstants::cacheLineSize * 4,
sizeof(TimestampPacketStorage), doNotReleaseNodes, osContext->getDeviceBitfield());
}
return timestampPacketAllocator.get();