Skip to content

Commit 16c3117

Browse files
Fix test for internal heap base address of wddm memory manager
Change-Id: Ia6879ad9637ad38b3d641b0b4522dd1e85b0fb50 Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent 3c47c41 commit 16c3117

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unit_tests/os_interface/windows/wddm_memory_manager_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,12 +1152,12 @@ TEST_F(WddmMemoryManagerWithAsyncDeleterTest, givenMemoryManagerWithoutAsyncDele
11521152
EXPECT_EQ(1u, wddm->createAllocationResult.called);
11531153
}
11541154

1155-
TEST(WddmMemoryManagerDefaults, givenDefaultWddmMemoryManagerWhenItIsQueriedForInternalHeapBaseThenHeap1BaseIsReturned) {
1155+
TEST(WddmMemoryManagerDefaults, givenDefaultWddmMemoryManagerWhenItIsQueriedForInternalHeapBaseThenHeapInternalDeviceMemoryBaseIsReturned) {
11561156
ExecutionEnvironment executionEnvironment;
11571157
auto wddm = std::make_unique<WddmMock>();
1158-
wddm->callBaseDestroyAllocations = false;
1158+
wddm->init(PreemptionHelper::getDefaultPreemptionMode(*platformDevices[0]));
11591159
MockWddmMemoryManager memoryManager(wddm.get(), executionEnvironment);
1160-
auto heapBase = wddm->getGfxPartition().Heap32[1].Base;
1160+
auto heapBase = wddm->getGfxPartition().Heap32[static_cast<uint32_t>(HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY)].Base;
11611161
EXPECT_EQ(heapBase, memoryManager.getInternalHeapBaseAddress());
11621162
}
11631163

0 commit comments

Comments
 (0)