mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
fix: enable TimestampPoolAllocator on hw mode
Related-To: NEO-12287 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
42fbe388fb
commit
74d12b7f27
@@ -11,6 +11,7 @@
|
||||
#include "shared/source/helpers/aligned_memory.h"
|
||||
#include "shared/source/memory_manager/allocation_properties.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/device_factory.h"
|
||||
#include "shared/source/utilities/buffer_pool_allocator.inl"
|
||||
|
||||
namespace NEO {
|
||||
@@ -62,7 +63,7 @@ bool TimestampPoolAllocator::isEnabled() const {
|
||||
return NEO::debugManager.flags.EnableTimestampPoolAllocator.get();
|
||||
}
|
||||
|
||||
return false;
|
||||
return NEO::DeviceFactory::isHwModeSelected() && device->getProductHelper().is2MBLocalMemAlignmentEnabled();
|
||||
}
|
||||
|
||||
SharedTimestampAllocation *TimestampPoolAllocator::requestGraphicsAllocationForTimestamp(size_t size) {
|
||||
|
||||
Reference in New Issue
Block a user