mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
df2e31dbb0
commit
e07b27c0e2
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user