mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "Disable host ptr tracking for GEN12LP+"
Related-To: NEO-3661
This reverts commit 8f6a390a2f.
Change-Id: Ib17543e2c2c7e47c92bbc010d376dd53c6116b59
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
@@ -341,7 +341,7 @@ GraphicsAllocation *MemoryManager::allocateGraphicsMemory(const AllocationData &
|
||||
return allocateGraphicsMemoryForImage(allocationData);
|
||||
}
|
||||
if (allocationData.type == GraphicsAllocation::AllocationType::EXTERNAL_HOST_PTR &&
|
||||
(!peekExecutionEnvironment().isFullRangeSvm() || !isHostPointerTrackingEnabled())) {
|
||||
(!peekExecutionEnvironment().isFullRangeSvm() || !DebugManager.flags.EnableHostPtrTracking.get())) {
|
||||
auto allocation = allocateGraphicsMemoryForNonSvmHostPtr(allocationData);
|
||||
if (allocation) {
|
||||
allocation->setFlushL3Required(allocationData.flags.flushL3);
|
||||
@@ -486,11 +486,4 @@ void *MemoryManager::getReservedMemory(size_t size, size_t alignment) {
|
||||
return reservedMemory;
|
||||
}
|
||||
|
||||
bool MemoryManager::isHostPointerTrackingEnabled() {
|
||||
if (DebugManager.flags.EnableHostPtrTracking.get() != -1) {
|
||||
return !!DebugManager.flags.EnableHostPtrTracking.get();
|
||||
}
|
||||
return (peekExecutionEnvironment().getHardwareInfo()->capabilityTable.hostPtrTrackingEnabled | is32bit);
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -144,8 +144,6 @@ class MemoryManager {
|
||||
::alignedFree(ptr);
|
||||
}
|
||||
|
||||
MOCKABLE_VIRTUAL bool isHostPointerTrackingEnabled();
|
||||
|
||||
const ExecutionEnvironment &peekExecutionEnvironment() const { return executionEnvironment; }
|
||||
|
||||
OsContext *createAndRegisterOsContext(CommandStreamReceiver *commandStreamReceiver, aub_stream::EngineType engineType,
|
||||
|
||||
Reference in New Issue
Block a user