mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Update TimestampPacket alignment
Change-Id: Iaf30c2cca8a32cc17b838d96366ebe25491afc42 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
8b896bf864
commit
78d5704c51
@ -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) {
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user