ULT fix: use fixed address instead of address from malloc

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2022-12-09 10:23:47 +00:00 committed by Compute-Runtime-Automation
parent d2c218efe3
commit 53399e6b01
1 changed files with 1 additions and 4 deletions

View File

@ -1104,8 +1104,7 @@ TEST_F(WddmMemoryManagerTest, GivenOffsetsWhenAllocatingGpuMemHostThenAllocatedO
}
MockWddmAllocation alloc(rootDeviceEnvironment->getGmmHelper()), allocOffseted(rootDeviceEnvironment->getGmmHelper());
// three pages
void *ptr = alignedMalloc(4 * 4096, 4096);
ASSERT_NE(nullptr, ptr);
void *ptr = reinterpret_cast<void *>(0x200000);
size_t baseOffset = 1024;
// misaligned buffer spanning across 3 pages
@ -1150,8 +1149,6 @@ TEST_F(WddmMemoryManagerTest, GivenOffsetsWhenAllocatingGpuMemHostThenAllocatedO
fragment4 = hostPtrManager->getFragment({ptr, rootDeviceIndex});
EXPECT_EQ(nullptr, fragment4);
alignedFree(ptr);
}
TEST_F(WddmMemoryManagerTest, WhenAllocatingGpuMemThenOsInternalStorageIsPopulatedCorrectly) {