mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Fix test for internal heap base address of wddm memory manager
Change-Id: Ia6879ad9637ad38b3d641b0b4522dd1e85b0fb50 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
3c47c418a9
commit
16c3117b09
@@ -1152,12 +1152,12 @@ TEST_F(WddmMemoryManagerWithAsyncDeleterTest, givenMemoryManagerWithoutAsyncDele
|
||||
EXPECT_EQ(1u, wddm->createAllocationResult.called);
|
||||
}
|
||||
|
||||
TEST(WddmMemoryManagerDefaults, givenDefaultWddmMemoryManagerWhenItIsQueriedForInternalHeapBaseThenHeap1BaseIsReturned) {
|
||||
TEST(WddmMemoryManagerDefaults, givenDefaultWddmMemoryManagerWhenItIsQueriedForInternalHeapBaseThenHeapInternalDeviceMemoryBaseIsReturned) {
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
auto wddm = std::make_unique<WddmMock>();
|
||||
wddm->callBaseDestroyAllocations = false;
|
||||
wddm->init(PreemptionHelper::getDefaultPreemptionMode(*platformDevices[0]));
|
||||
MockWddmMemoryManager memoryManager(wddm.get(), executionEnvironment);
|
||||
auto heapBase = wddm->getGfxPartition().Heap32[1].Base;
|
||||
auto heapBase = wddm->getGfxPartition().Heap32[static_cast<uint32_t>(HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY)].Base;
|
||||
EXPECT_EQ(heapBase, memoryManager.getInternalHeapBaseAddress());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user