ULT fix: use fixed address instead of address from malloc
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
parent
d2c218efe3
commit
53399e6b01
|
@ -1104,8 +1104,7 @@ TEST_F(WddmMemoryManagerTest, GivenOffsetsWhenAllocatingGpuMemHostThenAllocatedO
|
||||||
}
|
}
|
||||||
MockWddmAllocation alloc(rootDeviceEnvironment->getGmmHelper()), allocOffseted(rootDeviceEnvironment->getGmmHelper());
|
MockWddmAllocation alloc(rootDeviceEnvironment->getGmmHelper()), allocOffseted(rootDeviceEnvironment->getGmmHelper());
|
||||||
// three pages
|
// three pages
|
||||||
void *ptr = alignedMalloc(4 * 4096, 4096);
|
void *ptr = reinterpret_cast<void *>(0x200000);
|
||||||
ASSERT_NE(nullptr, ptr);
|
|
||||||
|
|
||||||
size_t baseOffset = 1024;
|
size_t baseOffset = 1024;
|
||||||
// misaligned buffer spanning across 3 pages
|
// misaligned buffer spanning across 3 pages
|
||||||
|
@ -1150,8 +1149,6 @@ TEST_F(WddmMemoryManagerTest, GivenOffsetsWhenAllocatingGpuMemHostThenAllocatedO
|
||||||
|
|
||||||
fragment4 = hostPtrManager->getFragment({ptr, rootDeviceIndex});
|
fragment4 = hostPtrManager->getFragment({ptr, rootDeviceIndex});
|
||||||
EXPECT_EQ(nullptr, fragment4);
|
EXPECT_EQ(nullptr, fragment4);
|
||||||
|
|
||||||
alignedFree(ptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(WddmMemoryManagerTest, WhenAllocatingGpuMemThenOsInternalStorageIsPopulatedCorrectly) {
|
TEST_F(WddmMemoryManagerTest, WhenAllocatingGpuMemThenOsInternalStorageIsPopulatedCorrectly) {
|
||||||
|
|
Loading…
Reference in New Issue