Revert "performance: device usm sets localOnly...

Required"

This reverts commit a479afdbc8.

Related-To: NEO-12879

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-10-07 10:26:14 +00:00
committed by Compute-Runtime-Automation
parent 9a280892f8
commit 3685852ce0
4 changed files with 2 additions and 27 deletions

View File

@@ -133,9 +133,7 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
storageInfo.cloningOfPageTables = false;
storageInfo.tileInstanced = true;
}
if (!releaseHelper ||
releaseHelper->isLocalOnlyAllowed() ||
properties.flags.isUSMDeviceAllocation) {
if (!releaseHelper || releaseHelper->isLocalOnlyAllowed()) {
storageInfo.localOnlyRequired = true;
}

View File

@@ -614,9 +614,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
case AllocationType::buffer:
case AllocationType::svmGpu:
case AllocationType::image:
if (false == allocationData.flags.uncacheable &&
useLocalPreferredForCacheableBuffers &&
false == allocationData.flags.isUSMDeviceMemory) {
if (false == allocationData.flags.uncacheable && useLocalPreferredForCacheableBuffers) {
if (!allocationData.flags.preferCompressed) {
allocationData.storageInfo.localOnlyRequired = false;
}