mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9a280892f8
commit
3685852ce0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user