Set page table cloning on for event device allocs

Related-To: NEO-5968

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan
2022-02-23 21:42:23 +00:00
committed by Compute-Runtime-Automation
parent f5bb961e7c
commit e4a93f9870
2 changed files with 3 additions and 5 deletions

View File

@@ -439,7 +439,7 @@ TEST_F(MultiDeviceStorageInfoTest, givenGpuTimestampAllocationWhenUsingSingleTil
singleTileMask}; singleTileMask};
auto storageInfo = memoryManager->createStorageInfoFromProperties(properties); auto storageInfo = memoryManager->createStorageInfoFromProperties(properties);
EXPECT_EQ(singleTileMask, storageInfo.memoryBanks); EXPECT_EQ(singleTileMask, storageInfo.memoryBanks);
EXPECT_FALSE(storageInfo.cloningOfPageTables); EXPECT_TRUE(storageInfo.cloningOfPageTables);
EXPECT_FALSE(storageInfo.tileInstanced); EXPECT_FALSE(storageInfo.tileInstanced);
EXPECT_EQ(singleTileMask, storageInfo.pageTablesVisibility); EXPECT_EQ(singleTileMask, storageInfo.pageTablesVisibility);
} }

View File

@@ -102,11 +102,9 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
} }
break; break;
case AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER: case AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER:
if (properties.flags.multiOsContextCapable) { storageInfo.cloningOfPageTables = true;
storageInfo.cloningOfPageTables = true; if (!properties.flags.multiOsContextCapable) {
} else {
storageInfo.pageTablesVisibility = preferredTile; storageInfo.pageTablesVisibility = preferredTile;
storageInfo.cloningOfPageTables = false;
} }
break; break;
case AllocationType::BUFFER: case AllocationType::BUFFER: