Remove debug flag.

Change-Id: I013e1f27477d67fd33ba6c559dffb26d06a0db8b
This commit is contained in:
Mrozek, Michal
2019-01-14 09:44:32 +01:00
committed by sys_ocldev
parent ec03210687
commit 9cbfa3892d
7 changed files with 8 additions and 41 deletions

View File

@@ -1550,19 +1550,3 @@ TEST(ResidencyDataTest, givenResidencyDataWhenUpdateCompletionDataIsCalledThenIt
EXPECT_EQ(lastFenceValue3, residency.lastFenceValues[1]);
EXPECT_EQ(lastFenceValue3, residency.getFenceValueForContextId(osContext2.getContextId()));
}
TEST(Heap32AllocationTests, givenDebugModeWhenMallocIsUsedToCreateAllocationWhenAllocationIsCreatedThenItDoesntRequireCpuPointerCleanup) {
DebugManagerStateRestore restore;
DebugManager.flags.UseMallocToObtainHeap32Base.set(true);
ExecutionEnvironment executionEnvironment;
executionEnvironment.incRefInternal();
OsAgnosticMemoryManager memoryManager(true, true, executionEnvironment);
auto internalBase = memoryManager.allocator32Bit->getBase();
EXPECT_NE(0x40000000000ul, internalBase);
EXPECT_NE(0x80000000000ul, internalBase);
EXPECT_NE(0x0ul, internalBase);
auto allocation = static_cast<MemoryAllocation *>(memoryManager.allocate32BitGraphicsMemory(4096u, nullptr, AllocationOrigin::EXTERNAL_ALLOCATION));
EXPECT_EQ(nullptr, allocation->driverAllocatedCpuPointer);
memoryManager.freeGraphicsMemory(allocation);
}