Allow to query memory info with prelim ioctl

If prelims are supported, query memory info with
specific ioctl.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-12-28 15:56:13 +00:00
committed by Compute-Runtime-Automation
parent df2e31dbb0
commit e07b27c0e2
8 changed files with 42 additions and 22 deletions

View File

@@ -134,11 +134,3 @@ TEST(DrmQueryTest, givenDrmAllocationWhenShouldAllocationFaultIsCalledThenReturn
MockDrmAllocation allocation(GraphicsAllocation::AllocationType::BUFFER, MemoryPool::MemoryNull);
EXPECT_FALSE(allocation.shouldAllocationPageFault(&drm));
}
TEST(DrmQueryTest, givenDrmWhenGettingMemoryRegionsThenReturnNull) {
auto executionEnvironment = std::make_unique<ExecutionEnvironment>();
executionEnvironment->prepareRootDeviceEnvironments(1);
DrmMock drm{*executionEnvironment->rootDeviceEnvironments[0]};
EXPECT_TRUE(drm.getMemoryRegions().empty());
}