mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +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:
@@ -419,7 +419,7 @@ TEST_F(CreateAllocationForHostSurfaceTest, givenReadOnlyHostPointerWhenAllocatio
|
||||
size_t size = sizeof(memory);
|
||||
HostPtrSurface surface(const_cast<char *>(memory), size, true);
|
||||
|
||||
if (device->isFullRangeSvm() && gmockMemoryManager->isHostPointerTrackingEnabled()) {
|
||||
if (device->isFullRangeSvm()) {
|
||||
EXPECT_CALL(*gmockMemoryManager, populateOsHandles(::testing::_))
|
||||
.Times(1)
|
||||
.WillOnce(::testing::Return(MemoryManager::AllocationStatus::InvalidHostPointer));
|
||||
@@ -446,7 +446,7 @@ TEST_F(CreateAllocationForHostSurfaceTest, givenReadOnlyHostPointerWhenAllocatio
|
||||
size_t size = sizeof(memory);
|
||||
HostPtrSurface surface(const_cast<char *>(memory), size, false);
|
||||
|
||||
if (device->isFullRangeSvm() && gmockMemoryManager->isHostPointerTrackingEnabled()) {
|
||||
if (device->isFullRangeSvm()) {
|
||||
EXPECT_CALL(*gmockMemoryManager, populateOsHandles(::testing::_))
|
||||
.Times(1)
|
||||
.WillOnce(::testing::Return(MemoryManager::AllocationStatus::InvalidHostPointer));
|
||||
|
||||
@@ -1183,7 +1183,7 @@ TEST_P(OsAgnosticMemoryManagerWithParams, givenFullGpuAddressSpaceWhenAllocateGr
|
||||
bool requiresL3Flush = GetParam();
|
||||
MockExecutionEnvironment executionEnvironment(*platformDevices);
|
||||
executionEnvironment.setHwInfo(platformDevices[0]);
|
||||
if (!executionEnvironment.isFullRangeSvm() || !executionEnvironment.getHardwareInfo()->capabilityTable.hostPtrTrackingEnabled) {
|
||||
if (!executionEnvironment.isFullRangeSvm()) {
|
||||
return;
|
||||
}
|
||||
OsAgnosticMemoryManager memoryManager(executionEnvironment);
|
||||
@@ -1201,7 +1201,7 @@ TEST_P(OsAgnosticMemoryManagerWithParams, givenFullGpuAddressSpaceWhenAllocateGr
|
||||
|
||||
TEST_P(OsAgnosticMemoryManagerWithParams, givenDisabledHostPtrTrackingWhenAllocateGraphicsMemoryForHostPtrIsCalledThenAllocationWithoutFragmentsIsCreated) {
|
||||
DebugManagerStateRestore restore;
|
||||
DebugManager.flags.EnableHostPtrTracking.set(0);
|
||||
DebugManager.flags.EnableHostPtrTracking.set(false);
|
||||
|
||||
bool requiresL3Flush = GetParam();
|
||||
MockExecutionEnvironment executionEnvironment(*platformDevices);
|
||||
@@ -1945,23 +1945,3 @@ TEST(MemoryManagerTest, whenMemoryManagerReturnsNullptrThenAllocateGlobalsSurfac
|
||||
allocation = allocateGlobalsSurface(&context, &device, 1024, false, true, nullptr);
|
||||
EXPECT_EQ(nullptr, allocation);
|
||||
}
|
||||
|
||||
HWTEST_F(MemoryAllocatorTest, givenMemoryManagerWhenEnableHostPtrTrackingFlagIsSetTo0ThenHostPointerTrackingIsDisabled) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.EnableHostPtrTracking.set(0);
|
||||
EXPECT_FALSE(memoryManager->isHostPointerTrackingEnabled());
|
||||
}
|
||||
|
||||
HWTEST_F(MemoryAllocatorTest, givenMemoryManagerWhenEnableHostPtrTrackingFlagIsNotSetTo1ThenHostPointerTrackingIsEnabled) {
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.EnableHostPtrTracking.set(1);
|
||||
EXPECT_TRUE(memoryManager->isHostPointerTrackingEnabled());
|
||||
}
|
||||
|
||||
HWTEST_F(MemoryAllocatorTest, givenMemoryManagerWhenEnableHostPtrTrackingFlagIsSetNotSetThenHostPointerTrackingDependsOnCapabilityTable) {
|
||||
if (is32bit) {
|
||||
EXPECT_TRUE(memoryManager->isHostPointerTrackingEnabled());
|
||||
} else {
|
||||
EXPECT_EQ(executionEnvironment->getHardwareInfo()->capabilityTable.hostPtrTrackingEnabled, memoryManager->isHostPointerTrackingEnabled());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ RenderCompressedBuffersEnabled = -1
|
||||
AUBDumpAllocsOnEnqueueReadOnly = 0
|
||||
AUBDumpForceAllToLocalMemory = 0
|
||||
EnableCacheFlushAfterWalker = -1
|
||||
EnableHostPtrTracking = -1
|
||||
EnableHostPtrTracking = 1
|
||||
DisableDcFlushInEpilogue = 0
|
||||
OverrideInvalidEngineWithDefault = 0
|
||||
EnableFormatQuery = 0
|
||||
|
||||
Reference in New Issue
Block a user