mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: remove not needed code
Related-To: NEO-7067 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
98bf872fdd
commit
6cb07b9d1c
@@ -227,9 +227,7 @@ void EventPool::initializeSizeParameters(uint32_t numDevices, ze_device_handle_t
|
||||
maxKernelCount = driver.getEventMaxKernelCount(numDevices, deviceHandles);
|
||||
}
|
||||
|
||||
const uint32_t minimalPacketCount = isEventPoolTimestampFlagSet() ? 2 : 1;
|
||||
|
||||
auto eventSize = std::max(eventPackets, minimalPacketCount) * gfxCoreHelper.getSingleTimestampPacketSize();
|
||||
auto eventSize = eventPackets * gfxCoreHelper.getSingleTimestampPacketSize();
|
||||
if (eventPoolFlags & ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP) {
|
||||
eventSize += sizeof(NEO::TimeStampData);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ std::unique_ptr<NEO::TagAllocatorBase> L0GfxCoreHelperHw<Family>::getInOrderTime
|
||||
using TimestampPacketType = typename Family::TimestampPacketType;
|
||||
using TimestampPacketsT = NEO::TimestampPackets<TimestampPacketType, 1>;
|
||||
|
||||
size_t size = sizeof(TimestampPacketsT) * std::max(packetsCountPerElement, size_t(2));
|
||||
size_t size = sizeof(TimestampPacketsT) * packetsCountPerElement;
|
||||
|
||||
return std::make_unique<NEO::TagAllocator<TimestampPacketsT>>(rootDeviceIndices, memoryManager, initialTagCount, tagAlignment, size, Event::State::STATE_CLEARED, false, true, deviceBitfield);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user