Switch on a support for multi-storage resources on Linux

Related-To: NEO-2493

Change-Id: Ieb96ed309d2e1abbe349c372e0b0aabb37dc9c7f
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek 2019-12-17 12:47:21 +01:00
parent 8803b4cd4e
commit 74a38386a4
2 changed files with 1 additions and 2 deletions

View File

@ -36,7 +36,6 @@ DrmMemoryManager::DrmMemoryManager(gemCloseWorkerMode mode,
drm(executionEnvironment.osInterface->get()->getDrm()),
forcePinEnabled(forcePinAllowed),
validateHostPtrMemory(validateHostPtrMemory) {
supportsMultiStorageResources = false;
for (uint32_t rootDeviceIndex = 0; rootDeviceIndex < gfxPartitions.size(); ++rootDeviceIndex) {
getGfxPartition(rootDeviceIndex)->init(platformDevices[0]->capabilityTable.gpuAddressSpace, getSizeToReserve(), rootDeviceIndex);
}

View File

@ -56,7 +56,7 @@ typedef Test<DrmMemoryManagerFixture> DrmMemoryManagerTest;
typedef Test<DrmMemoryManagerFixtureWithoutQuietIoctlExpectation> DrmMemoryManagerWithExplicitExpectationsTest;
TEST_F(DrmMemoryManagerTest, whenCreatingDrmMemoryManagerThenSupportsMultiStorageResourcesFlagIsSetToFalse) {
EXPECT_FALSE(memoryManager->supportsMultiStorageResources);
EXPECT_TRUE(memoryManager->supportsMultiStorageResources);
}
TEST_F(DrmMemoryManagerTest, GivenGraphicsAllocationWhenAddAndRemoveAllocationToHostPtrManagerThenfragmentHasCorrectValues) {